papermario/ver/jp/asm/nonmatchings/main_E860/func_80033488.s
Ethan Roseman 698cf99458
jp cod (Created the first segment's c files for jp) (#194)
* jp cod

* just have less code and it works

* oops

* removing splat cause subrepo is being dumb

* git subrepo clone https://github.com/ethteck/splat.git tools/splat

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

* move jp stuff + revert configure

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "c56195a9c5"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "c56195a9c5"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-02-27 00:36:33 +09:00

21 lines
907 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80033488
/* E888 80033488 3C058007 */ lui $a1, %hi(D_8007417C)
/* E88C 8003348C 8CA5417C */ lw $a1, %lo(D_8007417C)($a1)
/* E890 80033490 84A200B6 */ lh $v0, 0xb6($a1)
/* E894 80033494 94A300B6 */ lhu $v1, 0xb6($a1)
/* E898 80033498 14400003 */ bnez $v0, .L800334A8
/* E89C 8003349C 00641023 */ subu $v0, $v1, $a0
/* E8A0 800334A0 03E00008 */ jr $ra
/* E8A4 800334A4 24020001 */ addiu $v0, $zero, 1
.L800334A8:
/* E8A8 800334A8 A4A200B6 */ sh $v0, 0xb6($a1)
/* E8AC 800334AC 00021400 */ sll $v0, $v0, 0x10
/* E8B0 800334B0 04420001 */ bltzl $v0, .L800334B8
/* E8B4 800334B4 A4A000B6 */ sh $zero, 0xb6($a1)
.L800334B8:
/* E8B8 800334B8 03E00008 */ jr $ra
/* E8BC 800334BC 0000102D */ daddu $v0, $zero, $zero