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

15 lines
671 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80056FF4
/* 323F4 80056FF4 308400FF */ andi $a0, $a0, 0xff
/* 323F8 80056FF8 00041940 */ sll $v1, $a0, 5
/* 323FC 80056FFC 3C028008 */ lui $v0, %hi(D_80078E24)
/* 32400 80057000 8C428E24 */ lw $v0, %lo(D_80078E24)($v0)
/* 32404 80057004 00641823 */ subu $v1, $v1, $a0
/* 32408 80057008 8C42001C */ lw $v0, 0x1c($v0)
/* 3240C 8005700C 00031880 */ sll $v1, $v1, 2
/* 32410 80057010 00431021 */ addu $v0, $v0, $v1
/* 32414 80057014 03E00008 */ jr $ra
/* 32418 80057018 AC45003C */ sw $a1, 0x3c($v0)