mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 01:12:28 +01:00
40 lines
1.7 KiB
ArmAsm
40 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
.include "include/macro.inc"
|
|
|
|
glabel contReadData
|
|
/* 03BB38 80060738 27BDFFE8 */ addiu $sp, $sp, -0x18
|
|
/* 03BB3C 8006073C AFBF0014 */ sw $ra, 0x14($sp)
|
|
/* 03BB40 80060740 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 03BB44 80060744 8C90000C */ lw $s0, 0xc($a0)
|
|
/* 03BB48 80060748 3C04800E */ lui $a0, 0x800e
|
|
/* 03BB4C 8006074C 2484AC78 */ addiu $a0, $a0, -0x5388
|
|
/* 03BB50 80060750 0C018668 */ jal osContStartReadData
|
|
/* 03BB54 80060754 00000000 */ nop
|
|
/* 03BB58 80060758 14400012 */ bnez $v0, .L800607A4
|
|
/* 03BB5C 8006075C 0000282D */ daddu $a1, $zero, $zero
|
|
/* 03BB60 80060760 3C04800E */ lui $a0, 0x800e
|
|
/* 03BB64 80060764 2484AC78 */ addiu $a0, $a0, -0x5388
|
|
/* 03BB68 80060768 0C0195BC */ jal osRecvMesg
|
|
/* 03BB6C 8006076C 24060001 */ addiu $a2, $zero, 1
|
|
/* 03BB70 80060770 3C04800E */ lui $a0, 0x800e
|
|
/* 03BB74 80060774 2484C040 */ addiu $a0, $a0, -0x3fc0
|
|
/* 03BB78 80060778 0000282D */ daddu $a1, $zero, $zero
|
|
/* 03BB7C 8006077C 0C019608 */ jal osSendMesg
|
|
/* 03BB80 80060780 24060001 */ addiu $a2, $zero, 1
|
|
/* 03BB84 80060784 0C01868A */ jal osContGetReadData
|
|
/* 03BB88 80060788 0200202D */ daddu $a0, $s0, $zero
|
|
/* 03BB8C 8006078C 3C04800E */ lui $a0, 0x800e
|
|
/* 03BB90 80060790 2484C040 */ addiu $a0, $a0, -0x3fc0
|
|
/* 03BB94 80060794 0000282D */ daddu $a1, $zero, $zero
|
|
/* 03BB98 80060798 0C0195BC */ jal osRecvMesg
|
|
/* 03BB9C 8006079C 24060001 */ addiu $a2, $zero, 1
|
|
/* 03BBA0 800607A0 0000102D */ daddu $v0, $zero, $zero
|
|
.L800607A4:
|
|
/* 03BBA4 800607A4 8FBF0014 */ lw $ra, 0x14($sp)
|
|
/* 03BBA8 800607A8 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 03BBAC 800607AC 03E00008 */ jr $ra
|
|
/* 03BBB0 800607B0 27BD0018 */ addiu $sp, $sp, 0x18
|
|
|