mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
19 lines
863 B
ArmAsm
19 lines
863 B
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel savercp
|
|
/* 45F34 8006AB34 3C09A430 */ lui $t1, 0xa430
|
|
/* 45F38 8006AB38 8D29000C */ lw $t1, 0xc($t1)
|
|
/* 45F3C 8006AB3C 1120000B */ beqz $t1, endrcp
|
|
/* 45F40 8006AB40 00000000 */ nop
|
|
/* 45F44 8006AB44 3C088009 */ lui $t0, 0x8009
|
|
/* 45F48 8006AB48 25085900 */ addiu $t0, $t0, 0x5900
|
|
/* 45F4C 8006AB4C 8D080000 */ lw $t0, ($t0)
|
|
/* 45F50 8006AB50 00084402 */ srl $t0, $t0, 0x10
|
|
/* 45F54 8006AB54 2401FFFF */ addiu $at, $zero, -1
|
|
/* 45F58 8006AB58 01014026 */ xor $t0, $t0, $at
|
|
/* 45F5C 8006AB5C 3108003F */ andi $t0, $t0, 0x3f
|
|
/* 45F60 8006AB60 8F4C0128 */ lw $t4, 0x128($k0)
|
|
/* 45F64 8006AB64 010C4024 */ and $t0, $t0, $t4
|
|
/* 45F68 8006AB68 01284825 */ or $t1, $t1, $t0
|