papermario/ver/us/asm/nonmatchings/si/si_skip_else.s
Ethan Roseman a1f7a21114
Rodata migration + other goodz (#208)
* rodata migration

* a5dd0 rodata migration

* e79b0 rodata migration

* more rodata migration

* more migration

* goombario rodata

* SetNpcCollision32

* removing old stuff

* oops

* UnkBackgroundFunc

* removing unnecessary files

* UnkBackgroundFunc2

* UnkStarFuncs

* .

* misc star decomp and AddHP

* oops

* AddFP

* fix offset, update symbol_addrs

* .

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "f602284b3e"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "f602284b3e"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* re-disasm

* fix effect disasm

* oops

* fix lullaby
2021-03-13 00:53:11 +09:00

41 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
.section .rodata
glabel D_802DA0F0
.word 0x802C89C0, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C8988, 0x802C89C8, 0x00000000
.section .text
glabel si_skip_else
/* ED328 802C8978 0000282D */ daddu $a1, $zero, $zero
/* ED32C 802C897C 8C840008 */ lw $a0, 8($a0)
/* ED330 802C8980 3C06802E */ lui $a2, %hi(D_802DA0F0)
/* ED334 802C8984 24C6A0F0 */ addiu $a2, $a2, %lo(D_802DA0F0)
.L802C8988:
/* ED338 802C8988 8C820000 */ lw $v0, ($a0)
/* ED33C 802C898C 24840004 */ addiu $a0, $a0, 4
/* ED340 802C8990 8C830000 */ lw $v1, ($a0)
/* ED344 802C8994 24840004 */ addiu $a0, $a0, 4
/* ED348 802C8998 00031880 */ sll $v1, $v1, 2
/* ED34C 802C899C 00832021 */ addu $a0, $a0, $v1
/* ED350 802C89A0 2443FFFF */ addiu $v1, $v0, -1
/* ED354 802C89A4 2C620013 */ sltiu $v0, $v1, 0x13
/* ED358 802C89A8 1040FFF7 */ beqz $v0, .L802C8988
/* ED35C 802C89AC 00031080 */ sll $v0, $v1, 2
/* ED360 802C89B0 00461021 */ addu $v0, $v0, $a2
/* ED364 802C89B4 8C420000 */ lw $v0, ($v0)
/* ED368 802C89B8 00400008 */ jr $v0
/* ED36C 802C89BC 00000000 */ nop
.L802C89C0:
/* ED370 802C89C0 080B2270 */ j .L802C89C0
/* ED374 802C89C4 00000000 */ nop
/* ED378 802C89C8 24A5FFFF */ addiu $a1, $a1, -1
/* ED37C 802C89CC 04A1FFEE */ bgez $a1, .L802C8988
/* ED380 802C89D0 0080102D */ daddu $v0, $a0, $zero
/* ED384 802C89D4 03E00008 */ jr $ra
/* ED388 802C89D8 00000000 */ nop
/* ED38C 802C89DC 080B2262 */ j .L802C8988
/* ED390 802C89E0 24A50001 */ addiu $a1, $a1, 1