papermario/ver/jp/asm/nonmatchings/main_2D650/func_80052870.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

19 lines
854 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80052870
/* 2DC70 80052870 3C02B65C */ lui $v0, 0xb65c
/* 2DC74 80052874 34426D59 */ ori $v0, $v0, 0x6d59
/* 2DC78 80052878 00820018 */ mult $a0, $v0
/* 2DC7C 8005287C 00002810 */ mfhi $a1
/* 2DC80 80052880 00A41821 */ addu $v1, $a1, $a0
/* 2DC84 80052884 00031B03 */ sra $v1, $v1, 0xc
/* 2DC88 80052888 000427C3 */ sra $a0, $a0, 0x1f
/* 2DC8C 8005288C 00641823 */ subu $v1, $v1, $a0
/* 2DC90 80052890 00031040 */ sll $v0, $v1, 1
/* 2DC94 80052894 00431021 */ addu $v0, $v0, $v1
/* 2DC98 80052898 000210C0 */ sll $v0, $v0, 3
/* 2DC9C 8005289C 00431023 */ subu $v0, $v0, $v1
/* 2DCA0 800528A0 03E00008 */ jr $ra
/* 2DCA4 800528A4 000210C0 */ sll $v0, $v0, 3