From 04cac5c60b0725a36a0978948df74d6093e0f069 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Mon, 15 Jun 2026 00:01:03 +0900 Subject: [PATCH] taut: cue inst str --- assets/disk0/tvdos/bin/taut.js | 10 +++++++++- terranmon.txt | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/disk0/tvdos/bin/taut.js b/assets/disk0/tvdos/bin/taut.js index 4bf7f63..24a7da9 100644 --- a/assets/disk0/tvdos/bin/taut.js +++ b/assets/disk0/tvdos/bin/taut.js @@ -2232,7 +2232,15 @@ function cueInstToStr(inst) { case 0b0010: return "LEN " + arg8.dec02() case 0b0001: - return arg8 ? ("FADE" + arg8.dec02()) : "HALT " + if (!arg8) return "HALT " + switch (arg8 >>> 6) { + case 0b00: + return "FADE" + (arg8 & 63).dec02() + case 0b01: + return "HALT" + (arg8 & 63).dec02() + default: + return fallback + } case 0b0000: return "NO-OP " default: diff --git a/terranmon.txt b/terranmon.txt index c557bdf..0e36167 100644 --- a/terranmon.txt +++ b/terranmon.txt @@ -3021,8 +3021,8 @@ Play Head Flags 1111xxxx yyyyyyyy (JMP000) - Go to absolute pattern number 0bxxxxyyyyyyyy 00000010 00xxxxxx (LEN 00) - Pattern length for this cue (0..63), where 0: 1 row, 63: 64 rows (decoded by AudioAdapter as of 2026-05-05; emitted by xm2taud / it2taud for non-multiple-of-64 source patterns) 00000001 00000000 - Halt (HALT ) - Play the full length of the pattern then stop the playback - 00000001 01xxxxxx - Halt at x (HALT 00) - Play the specified length of the pattern then stop the playback. x = 0 is identical to regular HALT. (decoded by AudioAdapter as of 2026-06-14; emitted as the final cue by midi2taud / it2taud / xm2taud so a partial last bar halts at its own length) - 00000001 00xxxxxx - Fadeout (FADOUT) - Gradually decrease global volume such that at row 0bxxxxxx it reaches zero, then stop the playback + 00000001 01xxxxxx - Halt at x (HALT00) - Play the specified length of the pattern then stop the playback. x = 0 is identical to regular HALT. (decoded by AudioAdapter as of 2026-06-14; emitted as the final cue by midi2taud / it2taud / xm2taud so a partial last bar halts at its own length) + 00000001 00xxxxxx - Fadeout (FADE00) - Gradually decrease global volume such that at row 0bxxxxxx it reaches zero, then stop the playback 00000000 - No operation 65536..131071 RW: PCM Sample buffer