mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
57 lines
2.9 KiB
ArmAsm
57 lines
2.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel osFlashReadStatus
|
|
/* 4A4B8 8006F0B8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 4A4BC 8006F0BC AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 4A4C0 8006F0C0 AFA40020 */ sw $a0, 0x20($sp)
|
|
/* 4A4C4 8006F0C4 3C04800B */ lui $a0, %hi(D_800B0C70)
|
|
/* 4A4C8 8006F0C8 24840C70 */ addiu $a0, $a0, %lo(D_800B0C70)
|
|
/* 4A4CC 8006F0CC 3C05800B */ lui $a1, %hi(D_800B0C7C)
|
|
/* 4A4D0 8006F0D0 8CA50C7C */ lw $a1, %lo(D_800B0C7C)($a1)
|
|
/* 4A4D4 8006F0D4 3C010001 */ lui $at, 1
|
|
/* 4A4D8 8006F0D8 00A17025 */ or $t6, $a1, $at
|
|
/* 4A4DC 8006F0DC 01C02825 */ or $a1, $t6, $zero
|
|
/* 4A4E0 8006F0E0 3C06D200 */ lui $a2, 0xd200
|
|
/* 4A4E4 8006F0E4 0C018358 */ jal osEPiWriteIo
|
|
/* 4A4E8 8006F0E8 00000000 */ nop
|
|
/* 4A4EC 8006F0EC 3C04800B */ lui $a0, %hi(D_800B0C70)
|
|
/* 4A4F0 8006F0F0 24840C70 */ addiu $a0, $a0, %lo(D_800B0C70)
|
|
/* 4A4F4 8006F0F4 3C05800B */ lui $a1, %hi(D_800B0C7C)
|
|
/* 4A4F8 8006F0F8 8CA50C7C */ lw $a1, %lo(D_800B0C7C)($a1)
|
|
/* 4A4FC 8006F0FC 27A6001C */ addiu $a2, $sp, 0x1c
|
|
/* 4A500 8006F100 0C018370 */ jal osEPiReadIo
|
|
/* 4A504 8006F104 00000000 */ nop
|
|
/* 4A508 8006F108 3C04800B */ lui $a0, %hi(D_800B0C70)
|
|
/* 4A50C 8006F10C 24840C70 */ addiu $a0, $a0, %lo(D_800B0C70)
|
|
/* 4A510 8006F110 3C05800B */ lui $a1, %hi(D_800B0C7C)
|
|
/* 4A514 8006F114 8CA50C7C */ lw $a1, %lo(D_800B0C7C)($a1)
|
|
/* 4A518 8006F118 3C010001 */ lui $at, 1
|
|
/* 4A51C 8006F11C 00A17825 */ or $t7, $a1, $at
|
|
/* 4A520 8006F120 01E02825 */ or $a1, $t7, $zero
|
|
/* 4A524 8006F124 3C06D200 */ lui $a2, 0xd200
|
|
/* 4A528 8006F128 0C018358 */ jal osEPiWriteIo
|
|
/* 4A52C 8006F12C 00000000 */ nop
|
|
/* 4A530 8006F130 3C04800B */ lui $a0, %hi(D_800B0C70)
|
|
/* 4A534 8006F134 24840C70 */ addiu $a0, $a0, %lo(D_800B0C70)
|
|
/* 4A538 8006F138 3C05800B */ lui $a1, %hi(D_800B0C7C)
|
|
/* 4A53C 8006F13C 8CA50C7C */ lw $a1, %lo(D_800B0C7C)($a1)
|
|
/* 4A540 8006F140 27A6001C */ addiu $a2, $sp, 0x1c
|
|
/* 4A544 8006F144 0C018370 */ jal osEPiReadIo
|
|
/* 4A548 8006F148 00000000 */ nop
|
|
/* 4A54C 8006F14C 8FB8001C */ lw $t8, 0x1c($sp)
|
|
/* 4A550 8006F150 00000000 */ nop
|
|
/* 4A554 8006F154 331900FF */ andi $t9, $t8, 0xff
|
|
/* 4A558 8006F158 8FA80020 */ lw $t0, 0x20($sp)
|
|
/* 4A55C 8006F15C 00000000 */ nop
|
|
/* 4A560 8006F160 A1190000 */ sb $t9, ($t0)
|
|
/* 4A564 8006F164 10000003 */ b .L8006F174
|
|
/* 4A568 8006F168 00000000 */ nop
|
|
/* 4A56C 8006F16C 10000001 */ b .L8006F174
|
|
/* 4A570 8006F170 00000000 */ nop
|
|
.L8006F174:
|
|
/* 4A574 8006F174 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 4A578 8006F178 27BD0020 */ addiu $sp, $sp, 0x20
|
|
/* 4A57C 8006F17C 03E00008 */ jr $ra
|
|
/* 4A580 8006F180 00000000 */ nop
|