papermario/ver/jp/asm/nonmatchings/20B80/func_80045B0C.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

26 lines
1.2 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80045B0C
/* 20F0C 80045B0C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 20F10 80045B10 24A5000B */ addiu $a1, $a1, 0xb
/* 20F14 80045B14 AFBF0018 */ sw $ra, 0x18($sp)
/* 20F18 80045B18 84830012 */ lh $v1, 0x12($a0)
/* 20F1C 80045B1C 28620002 */ slti $v0, $v1, 2
/* 20F20 80045B20 1040000B */ beqz $v0, .L80045B50
/* 20F24 80045B24 24C60006 */ addiu $a2, $a2, 6
/* 20F28 80045B28 04600009 */ bltz $v1, .L80045B50
/* 20F2C 80045B2C 00031080 */ sll $v0, $v1, 2
/* 20F30 80045B30 3C048008 */ lui $a0, %hi(D_80078130)
/* 20F34 80045B34 00822021 */ addu $a0, $a0, $v0
/* 20F38 80045B38 8C848130 */ lw $a0, %lo(D_80078130)($a0)
/* 20F3C 80045B3C 2402000F */ addiu $v0, $zero, 0xf
/* 20F40 80045B40 240700FF */ addiu $a3, $zero, 0xff
/* 20F44 80045B44 AFA20010 */ sw $v0, 0x10($sp)
/* 20F48 80045B48 0C04ADC4 */ jal func_8012B710
/* 20F4C 80045B4C AFA00014 */ sw $zero, 0x14($sp)
.L80045B50:
/* 20F50 80045B50 8FBF0018 */ lw $ra, 0x18($sp)
/* 20F54 80045B54 03E00008 */ jr $ra
/* 20F58 80045B58 27BD0020 */ addiu $sp, $sp, 0x20