mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
40 lines
1.7 KiB
ArmAsm
40 lines
1.7 KiB
ArmAsm
.include "macro.inc"
|
|
|
|
# assembler directives
|
|
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
.set gp=64 # allow use of 64-bit general purpose registers
|
|
|
|
.section .text, "ax"
|
|
|
|
glabel __osDisableInt
|
|
/* 46760 8006B360 3C0A8009 */ lui $t2, 0x8009
|
|
/* 46764 8006B364 254A5900 */ addiu $t2, $t2, 0x5900
|
|
/* 46768 8006B368 8D4B0000 */ lw $t3, ($t2)
|
|
/* 4676C 8006B36C 316BFF00 */ andi $t3, $t3, 0xff00
|
|
/* 46770 8006B370 40086000 */ mfc0 $t0, $12
|
|
/* 46774 8006B374 2401FFFE */ addiu $at, $zero, -2
|
|
/* 46778 8006B378 01014824 */ and $t1, $t0, $at
|
|
/* 4677C 8006B37C 40896000 */ mtc0 $t1, $12
|
|
/* 46780 8006B380 31020001 */ andi $v0, $t0, 1
|
|
/* 46784 8006B384 8D480000 */ lw $t0, ($t2)
|
|
/* 46788 8006B388 3108FF00 */ andi $t0, $t0, 0xff00
|
|
/* 4678C 8006B38C 110B000E */ beq $t0, $t3, .L8006B3C8
|
|
/* 46790 8006B390 3C0A8009 */ lui $t2, 0x8009
|
|
/* 46794 8006B394 254A4660 */ addiu $t2, $t2, 0x4660
|
|
/* 46798 8006B398 8D490118 */ lw $t1, 0x118($t2)
|
|
/* 4679C 8006B39C 312AFF00 */ andi $t2, $t1, 0xff00
|
|
/* 467A0 8006B3A0 01485024 */ and $t2, $t2, $t0
|
|
/* 467A4 8006B3A4 3C01FFFF */ lui $at, 0xffff
|
|
/* 467A8 8006B3A8 342100FF */ ori $at, $at, 0xff
|
|
/* 467AC 8006B3AC 01214824 */ and $t1, $t1, $at
|
|
/* 467B0 8006B3B0 012A4825 */ or $t1, $t1, $t2
|
|
/* 467B4 8006B3B4 2401FFFE */ addiu $at, $zero, -2
|
|
/* 467B8 8006B3B8 01214824 */ and $t1, $t1, $at
|
|
/* 467BC 8006B3BC 40896000 */ mtc0 $t1, $12
|
|
/* 467C0 8006B3C0 00000000 */ nop
|
|
/* 467C4 8006B3C4 00000000 */ nop
|
|
.L8006B3C8:
|
|
/* 467C8 8006B3C8 03E00008 */ jr $ra
|
|
/* 467CC 8006B3CC 00000000 */ nop
|