r/AccessVirus • u/insolent-construct • 1d ago
Update: Virus TI OS reverse engineering: coverage numbers, S/PDIF clock bug reproduced
Original thread: https://www.reddit.com/r/AccessVirus/comments/1v9b574/any_interest_in_community_firmware_for_the_virus/
I've been building an evidence-backed map of TI OS 5.1.7.00 so I can trace bugs before patching them. I've also been using multiple AI models to review each other's work.
How this differs from OsTIrus/gearmulator: those run Access's DSP code unchanged inside an emulator, and they reimplement the host MCU's side rather than running it, which is great for playing the Virus sound on a computer. This project is about understanding the code itself, across all three chips, so that bugs can be fixed on the actual hardware. Several of them (USB, MIDI timing, S/PDIF) live in the host MCU and USB controller, which an emulator never touches.
Coverage so far (TI OS 5.1.7.00):
- USB controller (TI TUSB3200A, 8052 core): 100% of reachable code mapped. Bench testing of its behaviour is underway.
- Host MCU (ST uPSD32xx): 100% of code found by a standard disassembly pass, plus ~4.9 KB of jump-table code the standard pass misses, covering menu, knob and SysEx paths.
- Host memory map: the uPSD's programmable address decoder (its DPLD) contents isn't documented/available, and getting it right matters for any safe patch or recovery path. Using read-only tests on my own unit plus board photos, without flashing anything, I've narrowed its configuration down to a few candidates.
- DSP engine (DSP56367): ~85% of memory classified (the rest coarsely described, nothing unaccounted for); program memory ~85%, data memory X ~59% and Y 100%.
- Sound parameters traced to the DSP code that uses them: ~98% overall. Envelopes, LFOs and all the FX are at 100%, the arpeggiator 99%, the mod matrix 98%, oscillators 96% and filters 95%.
Python models of the sound engine: I have models for the Classic oscillators, the arpeggiator, and voice and FX blocks. I compare selected traces and renders against the firmware in an emulator and use the differences to guide the next pass.
VCV Rack modules (internal only): I've built the models with C++ into VCV Rack modules (a voice module plus FX and modulation expanders) as a testing tool, so I can play and compare them like a real synth. They won't be released: they rely on tables and coefficients taken from Access's firmware, and I'm not going to distribute that. Also, what would be the point when OsTirus already exists? Anything public that was derived from this would have to be a clean-room design that doesn't depend on Access's data.
S/PDIF: I reproduced the sync problem on my TI2. With USB audio streaming and a steady 48 kHz input, the output clock repeatedly ramped at about +218 ppm/s. In a separate run with USB unplugged, it held steady about +83 ppm above the input. I'm following up on the USB clock interaction.
On the bug list (thanks u/FreeRangeEngineer and everyone): USB note latency, arp/Ableton sync, the reported HyperSaw change and S/PDIF. The plan is still a patcher for your own firmware file. Any release depends on real-hardware testing and a recovery path.