diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-07-10 21:11:03 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-07-10 21:11:03 -0400 |
| commit | 8f81e71f192bce4b6f56b042638da376737e5abc (patch) | |
| tree | bb2fb2cd6ccab2514c7014323971302f5aebe0e1 /audio | |
| parent | Replace "branch" labels in SFX files with local names (diff) | |
| download | pokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.tar.gz pokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.tar.xz pokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.zip | |
Identify some `.asm_*` labels
Diffstat (limited to 'audio')
| -rw-r--r-- | audio/low_health_alarm.asm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/low_health_alarm.asm b/audio/low_health_alarm.asm index 08060aab..65e19aa7 100644 --- a/audio/low_health_alarm.asm +++ b/audio/low_health_alarm.asm @@ -7,25 +7,25 @@ Music_DoLowHealthAlarm:: ret z ;nope and $7f ;low 7 bits are the timer. - jr nz, .asm_21383 ;if timer > 0, play low tone. + jr nz, .notToneHi ;if timer > 0, play low tone. call .playToneHi ld a, 30 ;keep this tone for 30 frames. - jr .asm_21395 ;reset the timer. + jr .resetTimer -.asm_21383 +.notToneHi cp 20 - jr nz, .asm_2138a ;if timer == 20, - call .playToneLo ;actually set the sound registers. + jr nz, .noTone ;if timer == 20, + call .playToneLo ;actually set the sound registers. -.asm_2138a +.noTone ld a, $86 ld [wChannelSoundIDs + Ch5], a ;disable sound channel? ld a, [wLowHealthAlarm] and $7f ;decrement alarm timer. dec a -.asm_21395 +.resetTimer ; reset the timer and enable flag. set 7, a ld [wLowHealthAlarm], a |
