papermario/ver/us/asm/nonmatchings/code_B9D60/get_string_width.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
965 B
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel get_string_width
/* BCB74 80126474 27BDFFD0 */ addiu $sp, $sp, -0x30
/* BCB78 80126478 30A5FFFF */ andi $a1, $a1, 0xffff
/* BCB7C 8012647C AFA5001C */ sw $a1, 0x1c($sp)
/* BCB80 80126480 0000282D */ daddu $a1, $zero, $zero
/* BCB84 80126484 27A60020 */ addiu $a2, $sp, 0x20
/* BCB88 80126488 00A0382D */ daddu $a3, $a1, $zero
/* BCB8C 8012648C AFBF0028 */ sw $ra, 0x28($sp)
/* BCB90 80126490 AFA00010 */ sw $zero, 0x10($sp)
/* BCB94 80126494 AFA00014 */ sw $zero, 0x14($sp)
/* BCB98 80126498 0C0497DA */ jal get_string_properties
/* BCB9C 8012649C AFA00018 */ sw $zero, 0x18($sp)
/* BCBA0 801264A0 8FA20020 */ lw $v0, 0x20($sp)
/* BCBA4 801264A4 8FBF0028 */ lw $ra, 0x28($sp)
/* BCBA8 801264A8 03E00008 */ jr $ra
/* BCBAC 801264AC 27BD0030 */ addiu $sp, $sp, 0x30