papermario/ver/us/asm/nonmatchings/os/osGetThreadPri/osGetThreadPri.s
JoshDuMan f0585ec87c
Some Libultra data and decompilation work (#200)
* Move osWritebackDCacheAll.s to hasm

* Fix build

* Work on Libultra data and decompilation

* Fix Build

* Fix JP build

* Address comments
2021-03-10 14:06:53 +09:00

14 lines
530 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel osGetThreadPri
/* 41330 80065F30 14800003 */ bnez $a0, .L80065F40
/* 41334 80065F34 00000000 */ nop
/* 41338 80065F38 3C048009 */ lui $a0, %hi(__osRunningThread)
/* 4133C 80065F3C 8C844660 */ lw $a0, %lo(__osRunningThread)($a0)
.L80065F40:
/* 41340 80065F40 03E00008 */ jr $ra
/* 41344 80065F44 8C820004 */ lw $v0, 4($a0)
/* 41348 80065F48 00000000 */ nop
/* 4134C 80065F4C 00000000 */ nop