mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
37 lines
1.6 KiB
ArmAsm
37 lines
1.6 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel SwitchMessage
|
||
|
/* 0F54AC 802D0AFC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||
|
/* 0F54B0 802D0B00 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 0F54B4 802D0B04 0080802D */ daddu $s0, $a0, $zero
|
||
|
/* 0F54B8 802D0B08 AFBF0014 */ sw $ra, 0x14($sp)
|
||
|
/* 0F54BC 802D0B0C 10A00007 */ beqz $a1, .L802D0B2C
|
||
|
/* 0F54C0 802D0B10 8E02000C */ lw $v0, 0xc($s0)
|
||
|
/* 0F54C4 802D0B14 0C0B1EAF */ jal get_variable
|
||
|
/* 0F54C8 802D0B18 8C450000 */ lw $a1, ($v0)
|
||
|
/* 0F54CC 802D0B1C 3C05802E */ lui $a1, 0x802e
|
||
|
/* 0F54D0 802D0B20 8CA5B260 */ lw $a1, -0x4da0($a1)
|
||
|
/* 0F54D4 802D0B24 0C04969A */ jal load_message_to_printer
|
||
|
/* 0F54D8 802D0B28 0040202D */ daddu $a0, $v0, $zero
|
||
|
.L802D0B2C:
|
||
|
/* 0F54DC 802D0B2C 3C04802E */ lui $a0, 0x802e
|
||
|
/* 0F54E0 802D0B30 8C84B260 */ lw $a0, -0x4da0($a0)
|
||
|
/* 0F54E4 802D0B34 8C8204FC */ lw $v0, 0x4fc($a0)
|
||
|
/* 0F54E8 802D0B38 30420040 */ andi $v0, $v0, 0x40
|
||
|
/* 0F54EC 802D0B3C 14400007 */ bnez $v0, .L802D0B5C
|
||
|
/* 0F54F0 802D0B40 24020001 */ addiu $v0, $zero, 1
|
||
|
/* 0F54F4 802D0B44 3C03802E */ lui $v1, 0x802e
|
||
|
/* 0F54F8 802D0B48 8C63B264 */ lw $v1, -0x4d9c($v1)
|
||
|
/* 0F54FC 802D0B4C 54620003 */ bnel $v1, $v0, .L802D0B5C
|
||
|
/* 0F5500 802D0B50 0000102D */ daddu $v0, $zero, $zero
|
||
|
/* 0F5504 802D0B54 908304E8 */ lbu $v1, 0x4e8($a0)
|
||
|
/* 0F5508 802D0B58 AE030084 */ sw $v1, 0x84($s0)
|
||
|
.L802D0B5C:
|
||
|
/* 0F550C 802D0B5C 8FBF0014 */ lw $ra, 0x14($sp)
|
||
|
/* 0F5510 802D0B60 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 0F5514 802D0B64 03E00008 */ jr $ra
|
||
|
/* 0F5518 802D0B68 27BD0018 */ addiu $sp, $sp, 0x18
|
||
|
|