mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
30 lines
1.4 KiB
ArmAsm
30 lines
1.4 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel pause_badges_get_pos_x
|
||
|
/* 13A44C 8024710C 00041040 */ sll $v0, $a0, 1
|
||
|
/* 13A450 80247110 00441021 */ addu $v0, $v0, $a0
|
||
|
/* 13A454 80247114 00021080 */ sll $v0, $v0, 2
|
||
|
/* 13A458 80247118 3C018027 */ lui $at, 0x8027
|
||
|
/* 13A45C 8024711C 00220821 */ addu $at, $at, $v0
|
||
|
/* 13A460 80247120 9022028A */ lbu $v0, 0x28a($at)
|
||
|
/* 13A464 80247124 14400002 */ bnez $v0, .L80247130
|
||
|
/* 13A468 80247128 00A2001A */ div $zero, $a1, $v0
|
||
|
/* 13A46C 8024712C 0007000D */ break 7
|
||
|
.L80247130:
|
||
|
/* 13A470 80247130 2401FFFF */ addiu $at, $zero, -1
|
||
|
/* 13A474 80247134 14410004 */ bne $v0, $at, .L80247148
|
||
|
/* 13A478 80247138 3C018000 */ lui $at, 0x8000
|
||
|
/* 13A47C 8024713C 14A10002 */ bne $a1, $at, .L80247148
|
||
|
/* 13A480 80247140 00000000 */ nop
|
||
|
/* 13A484 80247144 0006000D */ break 6
|
||
|
.L80247148:
|
||
|
/* 13A488 80247148 00001810 */ mfhi $v1
|
||
|
/* 13A48C 8024714C 000310C0 */ sll $v0, $v1, 3
|
||
|
/* 13A490 80247150 00431021 */ addu $v0, $v0, $v1
|
||
|
/* 13A494 80247154 00021080 */ sll $v0, $v0, 2
|
||
|
/* 13A498 80247158 00431023 */ subu $v0, $v0, $v1
|
||
|
/* 13A49C 8024715C 00021080 */ sll $v0, $v0, 2
|
||
|
/* 13A4A0 80247160 03E00008 */ jr $ra
|
||
|
/* 13A4A4 80247164 00431021 */ addu $v0, $v0, $v1
|