Commit Graph
3 Commits
Author SHA1 Message Date
alex bafb2f369c Split load status message back into Unpacking.../Loading..
.vgz decompression now shows "Unpacking.." again instead of the
unified "Loading.." text; files >= 1MB (OPL4 SRAM upload) still show
"Loading..". Code budget left only 1 byte of slack after this, so the
leading-space indent in front of the message was dropped.
2026-09-16 20:26:40 +03:00
alex 54112347f5 Add large-file (>1MB) OPL4 loading and fix track-end hang
- One-shot cold loader (asm/opl4_loader.asm, overlaid into plugin
  page 5) uploads embedded PCM sample blocks into ZXM-MoonSound SRAM
  and compacts the VGM stream in place, letting files over the normal
  64-page megabuffer budget play back through the existing pipeline.
- instant_abort() was filling only one of the two ISR command buffers
  with the shutdown chain; the chain (SILENCE_OPL + WAVE_OFF/TL +
  CMD_ISR_DONE) doesn't fit in one buffer, so after the first
  CMD_END_BUF the ISR swapped into stale data and never reached
  CMD_ISR_DONE, hanging at the end of long tracks instead of
  advancing to the next one. Now fills both buffers while frozen and
  syncs update_buffer()'s own ready-tracking state.
- Switch to 14MHz before the SRAM upload (previously ran at whatever
  speed WC's file I/O left active) and show "Loading..." for .vgz and
  files >= 1MB, since the busy-waited upload takes several seconds.
- Confirmed on real hardware: long OPL4 tracks (previously stuck
  looping at the end) now finish and advance normally, ESC exits
  cleanly.
2026-09-16 20:14:06 +03:00
alex 1686838e03 Add OPL4 playback and analyzer support 2026-09-15 14:59:29 +03:00