papermario/ver/us/asm/nonmatchings/code_197F40/LoadBattleSection.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

22 lines
1.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel LoadBattleSection
/* 1986C4 80269DE4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 1986C8 80269DE8 AFBF0010 */ sw $ra, 0x10($sp)
/* 1986CC 80269DEC 8C82000C */ lw $v0, 0xc($a0)
/* 1986D0 80269DF0 0C0B1EAF */ jal get_variable
/* 1986D4 80269DF4 8C450000 */ lw $a1, ($v0)
/* 1986D8 80269DF8 3C038009 */ lui $v1, %hi(gBattleAreas)
/* 1986DC 80269DFC 24635A30 */ addiu $v1, $v1, %lo(gBattleAreas)
/* 1986E0 80269E00 00021140 */ sll $v0, $v0, 5
/* 1986E4 80269E04 00431021 */ addu $v0, $v0, $v1
/* 1986E8 80269E08 8C440004 */ lw $a0, 4($v0)
/* 1986EC 80269E0C 8C450008 */ lw $a1, 8($v0)
/* 1986F0 80269E10 0C00A5CF */ jal dma_copy
/* 1986F4 80269E14 8C46000C */ lw $a2, 0xc($v0)
/* 1986F8 80269E18 8FBF0010 */ lw $ra, 0x10($sp)
/* 1986FC 80269E1C 24020001 */ addiu $v0, $zero, 1
/* 198700 80269E20 03E00008 */ jr $ra
/* 198704 80269E24 27BD0018 */ addiu $sp, $sp, 0x18