papermario/ver/us/asm/nonmatchings/crash/crash_delay_msec.s
alex 6da5c0e41b
Name many files (#302)
* get_spirits_rescued: use enum StoryProgress

* rename 6240_len_c00 to fio

* rename 1b40_len_20b0 to main_loop

* rename 3bf0_len_6f0 to input

* rename 42e0_len_1f60 to rumble

* rename 6e40_len_500 to curtains

* rename 7340_len_b00 crash

* match func_8002C890

* intro_logos and state_battle split

* rename e940_len_290 to state_startup

* split state_logos and state_pause

* state_file_select

* state_world, state_intro

* state_title_screen

* state_demo

* split game_modes and camera
2021-07-09 01:50:23 +09:00

37 lines
1.5 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .text
glabel crash_delay_msec
/* 7340 8002BF40 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 7344 8002BF44 3402B71B */ ori $v0, $zero, 0xb71b
/* 7348 8002BF48 00820018 */ mult $a0, $v0
/* 734C 8002BF4C 0000202D */ daddu $a0, $zero, $zero
/* 7350 8002BF50 0000282D */ daddu $a1, $zero, $zero
/* 7354 8002BF54 AFBF0018 */ sw $ra, 0x18($sp)
/* 7358 8002BF58 AFB10014 */ sw $s1, 0x14($sp)
/* 735C 8002BF5C AFB00010 */ sw $s0, 0x10($sp)
/* 7360 8002BF60 00008010 */ mfhi $s0
/* 7364 8002BF64 00008812 */ mflo $s1
/* 7368 8002BF68 0C0198CC */ jal osSetTime
/* 736C 8002BF6C 00000000 */ nop
.L8002BF70:
/* 7370 8002BF70 0C0198A8 */ jal osGetTime
/* 7374 8002BF74 00000000 */ nop
/* 7378 8002BF78 0040202D */ daddu $a0, $v0, $zero
/* 737C 8002BF7C 0060282D */ daddu $a1, $v1, $zero
/* 7380 8002BF80 0090102B */ sltu $v0, $a0, $s0
/* 7384 8002BF84 1440FFFA */ bnez $v0, .L8002BF70
/* 7388 8002BF88 00000000 */ nop
/* 738C 8002BF8C 16040003 */ bne $s0, $a0, .L8002BF9C
/* 7390 8002BF90 00B1102B */ sltu $v0, $a1, $s1
/* 7394 8002BF94 1440FFF6 */ bnez $v0, .L8002BF70
/* 7398 8002BF98 00000000 */ nop
.L8002BF9C:
/* 739C 8002BF9C 8FBF0018 */ lw $ra, 0x18($sp)
/* 73A0 8002BFA0 8FB10014 */ lw $s1, 0x14($sp)
/* 73A4 8002BFA4 8FB00010 */ lw $s0, 0x10($sp)
/* 73A8 8002BFA8 03E00008 */ jr $ra
/* 73AC 8002BFAC 27BD0020 */ addiu $sp, $sp, 0x20