papermario/ver/jp/asm/nonmatchings/main_31300/func_80056A28.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

16 lines
725 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80056A28
/* 31E28 80056A28 308400FF */ andi $a0, $a0, 0xff
/* 31E2C 80056A2C 00041040 */ sll $v0, $a0, 1
/* 31E30 80056A30 00441021 */ addu $v0, $v0, $a0
/* 31E34 80056A34 3C038008 */ lui $v1, %hi(D_80078E24)
/* 31E38 80056A38 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
/* 31E3C 80056A3C 000210C0 */ sll $v0, $v0, 3
/* 31E40 80056A40 8C630020 */ lw $v1, 0x20($v1)
/* 31E44 80056A44 30A57FFF */ andi $a1, $a1, 0x7fff
/* 31E48 80056A48 00621821 */ addu $v1, $v1, $v0
/* 31E4C 80056A4C 03E00008 */ jr $ra
/* 31E50 80056A50 A4650000 */ sh $a1, ($v1)