papermario/ver/us/asm/nonmatchings/DF950/sfx_play_sound_looping.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cfc140bb76"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cfc140bb76"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "85349befcd"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "85349befcd"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Update symbol addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "a44631e194"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "a44631e194"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

34 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel sfx_play_sound_looping
/* E0008 80149908 27BDFFE8 */ addiu $sp, $sp, -0x18
/* E000C 8014990C 3C038016 */ lui $v1, %hi(D_80159AD0)
/* E0010 80149910 8C639AD0 */ lw $v1, %lo(D_80159AD0)($v1)
/* E0014 80149914 0000402D */ daddu $t0, $zero, $zero
/* E0018 80149918 AFBF0010 */ sw $ra, 0x10($sp)
.L8014991C:
/* E001C 8014991C 8C620000 */ lw $v0, ($v1)
/* E0020 80149920 30420001 */ andi $v0, $v0, 1
/* E0024 80149924 10400004 */ beqz $v0, .L80149938
/* E0028 80149928 25080001 */ addiu $t0, $t0, 1
/* E002C 8014992C 2902000A */ slti $v0, $t0, 0xa
/* E0030 80149930 1440FFFA */ bnez $v0, .L8014991C
/* E0034 80149934 2463001C */ addiu $v1, $v1, 0x1c
.L80149938:
/* E0038 80149938 A467000E */ sh $a3, 0xe($v1)
/* E003C 8014993C 00073C00 */ sll $a3, $a3, 0x10
/* E0040 80149940 A065000C */ sb $a1, 0xc($v1)
/* E0044 80149944 30A500FF */ andi $a1, $a1, 0xff
/* E0048 80149948 A066000D */ sb $a2, 0xd($v1)
/* E004C 8014994C 30C600FF */ andi $a2, $a2, 0xff
/* E0050 80149950 8C620000 */ lw $v0, ($v1)
/* E0054 80149954 00073C03 */ sra $a3, $a3, 0x10
/* E0058 80149958 AC640004 */ sw $a0, 4($v1)
/* E005C 8014995C 34420001 */ ori $v0, $v0, 1
/* E0060 80149960 0C015490 */ jal snd_start_sound_with_shift
/* E0064 80149964 AC620000 */ sw $v0, ($v1)
/* E0068 80149968 8FBF0010 */ lw $ra, 0x10($sp)
/* E006C 8014996C 03E00008 */ jr $ra
/* E0070 80149970 27BD0018 */ addiu $sp, $sp, 0x18