mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
40 lines
1.9 KiB
ArmAsm
40 lines
1.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel start_rumble
|
|
/* 4308 80028F08 3C028007 */ lui $v0, %hi(gGameStatusPtr)
|
|
/* 430C 80028F0C 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
|
|
/* 4310 80028F10 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 4314 80028F14 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 4318 80028F18 0080882D */ daddu $s1, $a0, $zero
|
|
/* 431C 80028F1C AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 4320 80028F20 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 4324 80028F24 80420071 */ lb $v0, 0x71($v0)
|
|
/* 4328 80028F28 14400013 */ bnez $v0, .L80028F78
|
|
/* 432C 80028F2C 00A0802D */ daddu $s0, $a1, $zero
|
|
/* 4330 80028F30 3C038007 */ lui $v1, 0x8007
|
|
/* 4334 80028F34 24634260 */ addiu $v1, $v1, 0x4260
|
|
/* 4338 80028F38 94620000 */ lhu $v0, ($v1)
|
|
/* 433C 80028F3C 1040000E */ beqz $v0, .L80028F78
|
|
/* 4340 80028F40 00021840 */ sll $v1, $v0, 1
|
|
/* 4344 80028F44 0070102A */ slt $v0, $v1, $s0
|
|
/* 4348 80028F48 54400001 */ bnel $v0, $zero, .L80028F50
|
|
/* 434C 80028F4C 0060802D */ daddu $s0, $v1, $zero
|
|
.L80028F50:
|
|
/* 4350 80028F50 0C017FBC */ jal nuContRmbCheck
|
|
/* 4354 80028F54 0000202D */ daddu $a0, $zero, $zero
|
|
/* 4358 80028F58 14400007 */ bnez $v0, .L80028F78
|
|
/* 435C 80028F5C 0000202D */ daddu $a0, $zero, $zero
|
|
/* 4360 80028F60 0C017FE4 */ jal nuContRmbModeSet
|
|
/* 4364 80028F64 24050002 */ addiu $a1, $zero, 2
|
|
/* 4368 80028F68 0000202D */ daddu $a0, $zero, $zero
|
|
/* 436C 80028F6C 3225FFFF */ andi $a1, $s1, 0xffff
|
|
/* 4370 80028F70 0C017FA4 */ jal nuContRmbStart
|
|
/* 4374 80028F74 3206FFFF */ andi $a2, $s0, 0xffff
|
|
.L80028F78:
|
|
/* 4378 80028F78 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 437C 80028F7C 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 4380 80028F80 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 4384 80028F84 03E00008 */ jr $ra
|
|
/* 4388 80028F88 27BD0020 */ addiu $sp, $sp, 0x20
|