mirror of
https://github.com/pmret/papermario.git
synced 2024-11-14 23:13:10 +01:00
6da5c0e41b
* 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
45 lines
1.7 KiB
ArmAsm
45 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
.section .rodata
|
|
|
|
glabel D_80098034
|
|
.ascii "F%02d:%+.3e\0"
|
|
|
|
glabel D_80098040
|
|
.ascii "F%02d:---------\0"
|
|
|
|
.section .text
|
|
|
|
glabel crash_print_fpr
|
|
/* 76B8 8002C2B8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 76BC 8002C2BC AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 76C0 8002C2C0 8CE30000 */ lw $v1, ($a3)
|
|
/* 76C4 8002C2C4 000315C2 */ srl $v0, $v1, 0x17
|
|
/* 76C8 8002C2C8 304200FF */ andi $v0, $v0, 0xff
|
|
/* 76CC 8002C2CC 2442FFFF */ addiu $v0, $v0, -1
|
|
/* 76D0 8002C2D0 2C4200FE */ sltiu $v0, $v0, 0xfe
|
|
/* 76D4 8002C2D4 14400003 */ bnez $v0, .L8002C2E4
|
|
/* 76D8 8002C2D8 00C0402D */ daddu $t0, $a2, $zero
|
|
/* 76DC 8002C2DC 1460000A */ bnez $v1, .L8002C308
|
|
/* 76E0 8002C2E0 00000000 */ nop
|
|
.L8002C2E4:
|
|
/* 76E4 8002C2E4 3C06800A */ lui $a2, %hi(D_80098034)
|
|
/* 76E8 8002C2E8 24C68034 */ addiu $a2, $a2, %lo(D_80098034)
|
|
/* 76EC 8002C2EC C4E00000 */ lwc1 $f0, ($a3)
|
|
/* 76F0 8002C2F0 46000021 */ cvt.d.s $f0, $f0
|
|
/* 76F4 8002C2F4 F7A00010 */ sdc1 $f0, 0x10($sp)
|
|
/* 76F8 8002C2F8 0C00B082 */ jal crash_printf_string
|
|
/* 76FC 8002C2FC 0100382D */ daddu $a3, $t0, $zero
|
|
/* 7700 8002C300 0800B0C6 */ j .L8002C318
|
|
/* 7704 8002C304 00000000 */ nop
|
|
.L8002C308:
|
|
/* 7708 8002C308 3C06800A */ lui $a2, %hi(D_80098040)
|
|
/* 770C 8002C30C 24C68040 */ addiu $a2, $a2, %lo(D_80098040)
|
|
/* 7710 8002C310 0C00B082 */ jal crash_printf_string
|
|
/* 7714 8002C314 0100382D */ daddu $a3, $t0, $zero
|
|
.L8002C318:
|
|
/* 7718 8002C318 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 771C 8002C31C 03E00008 */ jr $ra
|
|
/* 7720 8002C320 27BD0020 */ addiu $sp, $sp, 0x20
|