papermario/ver/us/asm/nonmatchings/code_E29470/func_802B6000_E29470.s
alex a4e1c2f522
Add versioning (#187)
* fix vscode cpp extension messing with files.associations

* move stuff

* it builds!

* symlink papermario.us.z64

* ci: put baserom in right place

* add jp

* fix splat dir

* ignore starrod dump

* .s deps

* update jenkins

* add dsl back

* configure.py versions

* wups

* fine ethan

* fix paths

* configure: default to only the version(s) with existing baseroms

* fix coverage

* fix progress.py

* progress.py verisoning

* remove format.sh from CONTRIBUTING

* update CONTRIBUTING

* fix first_diff

* diff.py: use ver/current/

* update splat.yaml

* trying to fix subrepo

* git subrepo pull tools/splat

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

* configure fix

* git subrepo pull tools/splat

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

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2021-02-22 18:21:23 +09:00

46 lines
2.3 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802B6000_E29470
/* E29470 802B6000 27BDFFB0 */ addiu $sp, $sp, -0x50
/* E29474 802B6004 3C048011 */ lui $a0, %hi(gPlayerStatus)
/* E29478 802B6008 2484EFC8 */ addiu $a0, $a0, %lo(gPlayerStatus)
/* E2947C 802B600C 27A50028 */ addiu $a1, $sp, 0x28
/* E29480 802B6010 27A6002C */ addiu $a2, $sp, 0x2c
/* E29484 802B6014 AFBF0048 */ sw $ra, 0x48($sp)
/* E29488 802B6018 848200B0 */ lh $v0, 0xb0($a0)
/* E2948C 802B601C 3C013FE0 */ lui $at, 0x3fe0
/* E29490 802B6020 44810800 */ mtc1 $at, $f1
/* E29494 802B6024 44800000 */ mtc1 $zero, $f0
/* E29498 802B6028 44823000 */ mtc1 $v0, $f6
/* E2949C 802B602C 00000000 */ nop
/* E294A0 802B6030 468031A0 */ cvt.s.w $f6, $f6
/* E294A4 802B6034 460030A1 */ cvt.d.s $f2, $f6
/* E294A8 802B6038 46201082 */ mul.d $f2, $f2, $f0
/* E294AC 802B603C 00000000 */ nop
/* E294B0 802B6040 27A70030 */ addiu $a3, $sp, 0x30
/* E294B4 802B6044 C4840028 */ lwc1 $f4, 0x28($a0)
/* E294B8 802B6048 C480002C */ lwc1 $f0, 0x2c($a0)
/* E294BC 802B604C 27A20034 */ addiu $v0, $sp, 0x34
/* E294C0 802B6050 E7A40028 */ swc1 $f4, 0x28($sp)
/* E294C4 802B6054 C4840030 */ lwc1 $f4, 0x30($a0)
/* E294C8 802B6058 46000021 */ cvt.d.s $f0, $f0
/* E294CC 802B605C 46220000 */ add.d $f0, $f0, $f2
/* E294D0 802B6060 E7A60034 */ swc1 $f6, 0x34($sp)
/* E294D4 802B6064 E7A40030 */ swc1 $f4, 0x30($sp)
/* E294D8 802B6068 46200020 */ cvt.s.d $f0, $f0
/* E294DC 802B606C E7A0002C */ swc1 $f0, 0x2c($sp)
/* E294E0 802B6070 AFA20010 */ sw $v0, 0x10($sp)
/* E294E4 802B6074 27A20038 */ addiu $v0, $sp, 0x38
/* E294E8 802B6078 AFA20014 */ sw $v0, 0x14($sp)
/* E294EC 802B607C 27A2003C */ addiu $v0, $sp, 0x3c
/* E294F0 802B6080 AFA20018 */ sw $v0, 0x18($sp)
/* E294F4 802B6084 27A20040 */ addiu $v0, $sp, 0x40
/* E294F8 802B6088 AFA2001C */ sw $v0, 0x1c($sp)
/* E294FC 802B608C 27A20044 */ addiu $v0, $sp, 0x44
/* E29500 802B6090 0C03791B */ jal func_800DE46C
/* E29504 802B6094 AFA20020 */ sw $v0, 0x20($sp)
/* E29508 802B6098 8FBF0048 */ lw $ra, 0x48($sp)
/* E2950C 802B609C 03E00008 */ jr $ra
/* E29510 802B60A0 27BD0050 */ addiu $sp, $sp, 0x50