You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
15 lines
427 B
ArmAsm
15 lines
427 B
ArmAsm
|
|
// Used as part of emulator detection. The dynarec core of PJ64 4.0 only updates
|
||
|
|
// the COUNT register in between recompiled functions, so this will return 0 on
|
||
|
|
// PJ64 4.0 dynarec, but will instead return the count factor on other versions.
|
||
|
|
|
||
|
|
.include "macros.inc"
|
||
|
|
.section .text, "ax"
|
||
|
|
.set noreorder
|
||
|
|
|
||
|
|
.balign 32
|
||
|
|
glabel pj64_get_count_factor_asm
|
||
|
|
mfc0 $t0, $9 // $9 is the COUNT register
|
||
|
|
mfc0 $t1, $9
|
||
|
|
jr $ra
|
||
|
|
subu $v0, $t1, $t0
|