papermario/ver/us/asm/nonmatchings/world/partners/func_800EA52C.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

41 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_800EA52C
/* 839DC 800EA52C 3C038011 */ lui $v1, %hi(gPlayerStatus)
/* 839E0 800EA530 2463EFC8 */ addiu $v1, $v1, %lo(gPlayerStatus)
/* 839E4 800EA534 8C620000 */ lw $v0, ($v1)
/* 839E8 800EA538 806300B4 */ lb $v1, 0xb4($v1)
/* 839EC 800EA53C 30420800 */ andi $v0, $v0, 0x800
/* 839F0 800EA540 10400003 */ beqz $v0, .L800EA550
/* 839F4 800EA544 0000282D */ daddu $a1, $zero, $zero
/* 839F8 800EA548 03E00008 */ jr $ra
/* 839FC 800EA54C 00A0102D */ daddu $v0, $a1, $zero
.L800EA550:
/* 83A00 800EA550 2C620003 */ sltiu $v0, $v1, 3
/* 83A04 800EA554 54400001 */ bnel $v0, $zero, .L800EA55C
/* 83A08 800EA558 24050001 */ addiu $a1, $zero, 1
.L800EA55C:
/* 83A0C 800EA55C 24020009 */ addiu $v0, $zero, 9
/* 83A10 800EA560 14820003 */ bne $a0, $v0, .L800EA570
/* 83A14 800EA564 24020004 */ addiu $v0, $zero, 4
/* 83A18 800EA568 0803A964 */ j .L800EA590
/* 83A1C 800EA56C 24020021 */ addiu $v0, $zero, 0x21
.L800EA570:
/* 83A20 800EA570 1482000A */ bne $a0, $v0, .L800EA59C
/* 83A24 800EA574 24020021 */ addiu $v0, $zero, 0x21
/* 83A28 800EA578 50620008 */ beql $v1, $v0, .L800EA59C
/* 83A2C 800EA57C 24050001 */ addiu $a1, $zero, 1
/* 83A30 800EA580 10600005 */ beqz $v1, .L800EA598
/* 83A34 800EA584 24020001 */ addiu $v0, $zero, 1
/* 83A38 800EA588 10620003 */ beq $v1, $v0, .L800EA598
/* 83A3C 800EA58C 24020002 */ addiu $v0, $zero, 2
.L800EA590:
/* 83A40 800EA590 14620002 */ bne $v1, $v0, .L800EA59C
/* 83A44 800EA594 00000000 */ nop
.L800EA598:
/* 83A48 800EA598 24050001 */ addiu $a1, $zero, 1
.L800EA59C:
/* 83A4C 800EA59C 03E00008 */ jr $ra
/* 83A50 800EA5A0 00A0102D */ daddu $v0, $a1, $zero