# HG changeset patch # User Laurens Holst # Date 1604613300 -3600 # Thu Nov 05 22:55:00 2020 +0100 # Node ID 60fbab9998f7c06f548e06f71596870e947e04aa # Parent 4da8602f3b21a937f0cb2f36a15a32a1db0317c9 Audio: Rename End command to Jump. diff --git a/src/audio/Audio.asm b/src/audio/Audio.asm --- a/src/audio/Audio.asm +++ b/src/audio/Audio.asm @@ -106,7 +106,7 @@ jr c,Audio_ProcessPSG cp 80H jr c,Audio_ProcessOPLL - jr z,Audio_ProcessEnd + jr z,Audio_ProcessJump sub 80H inc hl ret @@ -132,7 +132,7 @@ ; hl = command list ; hl <- next command -Audio_ProcessEnd: +Audio_ProcessJump: inc hl ld a,(hl) inc hl diff --git a/src/audio/AudioTrack.asm b/src/audio/AudioTrack.asm --- a/src/audio/AudioTrack.asm +++ b/src/audio/AudioTrack.asm @@ -30,9 +30,9 @@ AudioCommand 80H + ?time ENDM -AudioCommandEnd: MACRO ?loop +AudioCommandJump: MACRO ?address command: AudioCommand 80H - loop: - dw ?loop & 1FFFH | 8000H + address: + dw ?address & 1FFFH | 8000H ENDM diff --git a/tools/audio.js b/tools/audio.js --- a/tools/audio.js +++ b/tools/audio.js @@ -52,7 +52,7 @@ lines.push(`${this.name}_commands_loop:`); lines.push(`\tAudioCommandWait 1`); } - lines.push(`\tAudioCommandEnd ${this.name}_commands_loop`); + lines.push(`\tAudioCommandJump ${this.name}_commands_loop`); } else { throw new Error("Unrecognised command."); }