papermario/ver/us/asm/nonmatchings/20ec0_len_5040/func_80045B10.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

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

* git subrepo pull (merge) --force tools/splat

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

* Update symbol addrs

* git subrepo pull tools/splat

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

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

29 lines
1.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80045B10
/* 20F10 80045B10 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 20F14 80045B14 AFB10014 */ sw $s1, 0x14($sp)
/* 20F18 80045B18 0000882D */ daddu $s1, $zero, $zero
/* 20F1C 80045B1C AFB00010 */ sw $s0, 0x10($sp)
/* 20F20 80045B20 3C10800A */ lui $s0, %hi(D_800A0BC0)
/* 20F24 80045B24 26100BC0 */ addiu $s0, $s0, %lo(D_800A0BC0)
/* 20F28 80045B28 AFBF0018 */ sw $ra, 0x18($sp)
.L80045B2C:
/* 20F2C 80045B2C 8E040018 */ lw $a0, 0x18($s0)
/* 20F30 80045B30 50800004 */ beql $a0, $zero, .L80045B44
/* 20F34 80045B34 A6000010 */ sh $zero, 0x10($s0)
/* 20F38 80045B38 0C00AB4B */ jal heap_free
/* 20F3C 80045B3C 00000000 */ nop
/* 20F40 80045B40 A6000010 */ sh $zero, 0x10($s0)
.L80045B44:
/* 20F44 80045B44 26310001 */ addiu $s1, $s1, 1
/* 20F48 80045B48 2A220020 */ slti $v0, $s1, 0x20
/* 20F4C 80045B4C 1440FFF7 */ bnez $v0, .L80045B2C
/* 20F50 80045B50 2610001C */ addiu $s0, $s0, 0x1c
/* 20F54 80045B54 8FBF0018 */ lw $ra, 0x18($sp)
/* 20F58 80045B58 8FB10014 */ lw $s1, 0x14($sp)
/* 20F5C 80045B5C 8FB00010 */ lw $s0, 0x10($sp)
/* 20F60 80045B60 03E00008 */ jr $ra
/* 20F64 80045B64 27BD0020 */ addiu $sp, $sp, 0x20