papermario/ver/jp/asm/nonmatchings/42B0/func_800299BC.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

41 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800299BC
/* 4DBC 800299BC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 4DC0 800299C0 AFBF0010 */ sw $ra, 0x10($sp)
/* 4DC4 800299C4 04820001 */ bltzl $a0, .L800299CC
/* 4DC8 800299C8 00042023 */ negu $a0, $a0
.L800299CC:
/* 4DCC 800299CC 10800018 */ beqz $a0, .L80029A30
/* 4DD0 800299D0 0000102D */ daddu $v0, $zero, $zero
/* 4DD4 800299D4 24020001 */ addiu $v0, $zero, 1
/* 4DD8 800299D8 54820006 */ bnel $a0, $v0, .L800299F4
/* 4DDC 800299DC 24020064 */ addiu $v0, $zero, 0x64
/* 4DE0 800299E0 0C00A655 */ jal func_80029954
/* 4DE4 800299E4 240403E8 */ addiu $a0, $zero, 0x3e8
/* 4DE8 800299E8 284201F5 */ slti $v0, $v0, 0x1f5
/* 4DEC 800299EC 0800A68C */ j .L80029A30
/* 4DF0 800299F0 38420001 */ xori $v0, $v0, 1
.L800299F4:
/* 4DF4 800299F4 10820005 */ beq $a0, $v0, .L80029A0C
/* 4DF8 800299F8 00000000 */ nop
/* 4DFC 800299FC 0C00A655 */ jal func_80029954
/* 4E00 80029A00 00000000 */ nop
/* 4E04 80029A04 0800A68C */ j .L80029A30
/* 4E08 80029A08 00000000 */ nop
.L80029A0C:
/* 4E0C 80029A0C 0C00A655 */ jal func_80029954
/* 4E10 80029A10 240403F1 */ addiu $a0, $zero, 0x3f1
/* 4E14 80029A14 3C036666 */ lui $v1, 0x6666
/* 4E18 80029A18 34636667 */ ori $v1, $v1, 0x6667
/* 4E1C 80029A1C 00430018 */ mult $v0, $v1
/* 4E20 80029A20 000217C3 */ sra $v0, $v0, 0x1f
/* 4E24 80029A24 00002810 */ mfhi $a1
/* 4E28 80029A28 00051883 */ sra $v1, $a1, 2
/* 4E2C 80029A2C 00621023 */ subu $v0, $v1, $v0
.L80029A30:
/* 4E30 80029A30 8FBF0010 */ lw $ra, 0x10($sp)
/* 4E34 80029A34 03E00008 */ jr $ra
/* 4E38 80029A38 27BD0018 */ addiu $sp, $sp, 0x18