papermario/ver/us/asm/nonmatchings/code_182B30/func_80254250.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

20 lines
942 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80254250
/* 182B30 80254250 3C03800E */ lui $v1, %hi(gBattleStatus+0x180)
/* 182B34 80254254 8463C1F0 */ lh $v1, %lo(gBattleStatus+0x180)($v1)
/* 182B38 80254258 28620003 */ slti $v0, $v1, 3
/* 182B3C 8025425C 14400008 */ bnez $v0, .L80254280
/* 182B40 80254260 0000202D */ daddu $a0, $zero, $zero
/* 182B44 80254264 28620005 */ slti $v0, $v1, 5
/* 182B48 80254268 14400005 */ bnez $v0, .L80254280
/* 182B4C 8025426C 24040001 */ addiu $a0, $zero, 1
/* 182B50 80254270 28620009 */ slti $v0, $v1, 9
/* 182B54 80254274 10400002 */ beqz $v0, .L80254280
/* 182B58 80254278 24040003 */ addiu $a0, $zero, 3
/* 182B5C 8025427C 24040002 */ addiu $a0, $zero, 2
.L80254280:
/* 182B60 80254280 03E00008 */ jr $ra
/* 182B64 80254284 0080102D */ daddu $v0, $a0, $zero