papermario/ver/us/asm/nonmatchings/code_B9D60/set_message_value.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
2.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel set_message_value
/* BC2E8 80125BE8 27BDFFC8 */ addiu $sp, $sp, -0x38
/* BC2EC 80125BEC AFB00030 */ sw $s0, 0x30($sp)
/* BC2F0 80125BF0 00A0802D */ daddu $s0, $a1, $zero
/* BC2F4 80125BF4 27A50010 */ addiu $a1, $sp, 0x10
/* BC2F8 80125BF8 AFBF0034 */ sw $ra, 0x34($sp)
/* BC2FC 80125BFC 0C00A531 */ jal int_to_string
/* BC300 80125C00 2406000A */ addiu $a2, $zero, 0xa
/* BC304 80125C04 0000282D */ daddu $a1, $zero, $zero
/* BC308 80125C08 27A70010 */ addiu $a3, $sp, 0x10
/* BC30C 80125C0C 3C088015 */ lui $t0, %hi(D_80155C38)
/* BC310 80125C10 25085C38 */ addiu $t0, $t0, %lo(D_80155C38)
/* BC314 80125C14 00103140 */ sll $a2, $s0, 5
/* BC318 80125C18 00E51021 */ addu $v0, $a3, $a1
.L80125C1C:
/* BC31C 80125C1C 80430000 */ lb $v1, ($v0)
/* BC320 80125C20 90440000 */ lbu $a0, ($v0)
/* BC324 80125C24 10600008 */ beqz $v1, .L80125C48
/* BC328 80125C28 00A61021 */ addu $v0, $a1, $a2
/* BC32C 80125C2C 00481021 */ addu $v0, $v0, $t0
/* BC330 80125C30 2483FFE0 */ addiu $v1, $a0, -0x20
/* BC334 80125C34 A0430000 */ sb $v1, ($v0)
/* BC338 80125C38 24A50001 */ addiu $a1, $a1, 1
/* BC33C 80125C3C 28A2001F */ slti $v0, $a1, 0x1f
/* BC340 80125C40 1440FFF6 */ bnez $v0, .L80125C1C
/* BC344 80125C44 00E51021 */ addu $v0, $a3, $a1
.L80125C48:
/* BC348 80125C48 00101140 */ sll $v0, $s0, 5
/* BC34C 80125C4C 00A21021 */ addu $v0, $a1, $v0
/* BC350 80125C50 240300FD */ addiu $v1, $zero, 0xfd
/* BC354 80125C54 3C018015 */ lui $at, %hi(D_80155C38)
/* BC358 80125C58 00220821 */ addu $at, $at, $v0
/* BC35C 80125C5C A0235C38 */ sb $v1, %lo(D_80155C38)($at)
/* BC360 80125C60 8FBF0034 */ lw $ra, 0x34($sp)
/* BC364 80125C64 8FB00030 */ lw $s0, 0x30($sp)
/* BC368 80125C68 03E00008 */ jr $ra
/* BC36C 80125C6C 27BD0038 */ addiu $sp, $sp, 0x38