Help Wanted
How You Can Help
This is a community reverse engineering project. Here’s how you can contribute:
Current Progress: sixteen TLCS-900 ROM images — twelve KN5000 and four SX-WSA1R — rebuild byte-identically from assembly source, built with a custom LLVM TLCS-900 backend, and nineteen MN10300 images (fifteen KN7000 and one each for the KN2400/KN2600, KN6000, KN6500 and the KN6000-family HD-SX plug-in) with the repository’s own MN10300 assembler; make gate-all checks all 35. Twelve of the TLCS-900 images are 12,386,304 distinct bytes (the other four are v8, v1.41 and two compressed re-encodings), and 96.80 % of them are code, data whose header states what it is and cites the evidence, or verified filler — the data census’s strict grade on 2026-10-24 (see how much of the data is actually explained for what that grade does and does not certify).
Where to look for work: the open technical unknowns are on Open Questions, the programme-level plan is on the Roadmap, and what the emulator does not model yet is on MAME Emulation Gaps.
High Priority
ROM Dumps Needed
We’re missing ROM dumps for several chips:
- Control Panel MCUs (Mitsubishi M37471M2196S) - Custom-masked ROMs handling buttons, LEDs, and rotary encoders. These would require decapping to dump.
- Waveform ROMs IC304, IC305 and IC306 (4 MB mask ROMs). Only IC307 is dumped, so voices that select the other bank cannot sound right; and IC307 is the Y half of a word-interleaved pair, holding every other word of its recordings, so even its voices need its partner chip’s half.
- Sub-CPU boot ROM IC30: only 14,336 of its 131,072 bytes have ever been read (see Sub-CPU Boot ROM (IC30)).
- Rhythm ROM IC14: a re-dump to confirm the corrected image (CRC
aa4917ce). - Other models: disk 1 of the KN7000 v1.4 update (
kn7-14_1.exe) and the MN10300 family’s undumped wave, rhythm, picture, table/font and SD sub-CPU devices (the KN7000’s wave, rhythm and picture ROMs were read in October 2026; the other models’ are not; see the ROM Dumping Roadmap); a re-dump of the KN1500’s program ROM IC15; the SX-WSA1R’s six wave mask ROMs, its AM29F400T flash and its v1 OS.
If you own one of these instruments and can dump ROMs, please reach out!
ROM Disassembly Improvements
All sixteen TLCS-900 images byte-match, no LABEL_* placeholder remains, and the NAKA widget and
sound data files are typed C structs rather than raw byte arrays. Not every symbol has a
semantic name yet: on 2026-10-24 docs/badges/semantic-score.json counts 442 positional
names in v10, and 624, 1,896 and 497 in the SX-WSA1R’s prom_a, prom_b and prom_c
(semantic names: KN5000 96.27 %, SX-WSA1R 83.12 %). The MN10300 trees are further behind:
most of the KN2400, KN6000 and KN6500 entries are still func_<ADDR>.
Byte-match is not the same as understood, and this is the honest backlog. A 100 % byte
match is preserved by construction and says nothing about how much of the build is real source
rather than .incbin passthrough or code spelled as .byte. What is genuinely open:
- Code still written as
.byte. At disassembly commit3417969c0,scripts/analysis/v9_v10_undisassembled_census.pyfinds in v7 8 data regions (1,236 B) that its code/data rule calls code-like, plus 275 short literal.byteruns flanked by instructions (2,043 B); v10 has 5 regions (389 B) and 139 runs (1,426 B), v9 5 regions (389 B) and 145 runs (1,495 B). The rule ranks candidates for a hand audit; it is not a verdict. HD-AE5000 holds 1,713 B of undocumented.byteoperands (0.327 % of the ROM,hdae5000/tools/measure_debt.py). SX-WSA1Rprom_aholds 82 certified.byteinstruction sites (226 B, 42 forms); under the assembler pin (a3a81863f87d)wsa1/notes/sound/wsa1_unspellable_forms.pyspells one form (decf), and 34 more sites in 13 shift-by-Aforms reassemble byte-identically asslaa/slla/srla(this site’stools/wsa1_shift_by_a_spellings.py), so 47 sites in 28 forms have no spelling found so far.scripts/analysis/semantic_debt_dashboard.pyalso counts.bytelines that carry an instruction reading: v10 21, v9 21, v7 33, sub-CPU payload 2,prom_a54, and none elsewhere. Nine in each of v10, v9 and v7 are commented as forms the backend cannot spell (e.g.sll a,hl,srl a,bc), but all of them are shift-by-A, which the pinned llvm-mc spells byte-identically (slla hl,srla bc), so they need respelling, not backend work. Method and per-image measurement on Raw Byte Code Elimination. - LLVM wrapper mnemonics. The site’s census (
tools/wrapper_mnemonic_census.py) finds 38 of 43 families at zero.lda_dpiis gone andbit_driis down to 12 sites. The other four are the extended-register LD pair, spelledldto_berp/ldfr_berp/ldto_werp/ldfr_werp(9,958 sites) since the backend renamed the backwards-namedstb_erpfamily on 2026-09-25. See LLVM Semantic Instructions. - Firmware versions with no source tree. v5 and v6 on the main CPU; v1.40 on the sub-CPU payload. (HD-AE5000 v2.01i became source-built on 2026-10-24 and v1.15i / v1.10i on 2026-10-30; v8 and v1.41 became source-built on 2026-10-24: v8 from the v9 sources with a different version byte, v1.41 as v1.42 plus three recorded edits.) v1.40 should be derived from v1.41 the same way.
- A C port beyond data. The C files in the tree are all
__attribute__((packed))struct initializers; no routine of the reconstruction is expressed as C yet, although the original firmware is mostly C compiled by Toshiba’s TLCS-900 compiler (Original Toolchain). Converting leaf functions while holding byte-identity is open work with a working compiler behind it.
HDAE5000 ROM Disassembly
The HD-AE5000 expansion ROM is disassembled and rebuilds byte-identically with no raw
.incbin. What is left is small: 1,713 B of undocumented .byte/.word operands (0.327 % of
the ROM) plus 373 B documented but untyped (hdae5000/tools/measure_debt.py), and the
filesystem and lyric-player questions on
Open Questions. Entry points:
HDAE5000_Boot_Init at 0x28F576 (via JP at 0x280008) and HDAE5000_Frame_Handler at 0x28F662
(via JP at 0x280010). The twenty PC-link command handlers are named, from
HDAE5000_PPORT_Cmd01_SendInfosAboutHd to HDAE5000_PPORT_Cmd20_SendXapFileFlash.
Skills Needed: TLCS-900 assembly, parallel port protocols, filesystem analysis
See HDAE5000 page for current findings.
Assembly Analysis
Help analyze the disassembled code:
- Trace execution paths through undocumented routines
- Document serial protocol command/response patterns
- Map button/LED indices to physical panel locations
- Identify data structures and their purposes
Testing
If you have a working KN5000:
- Test homebrew code on real hardware
- Capture serial protocol traces with logic analyzer
- Document hardware behavior for edge cases
- Take photos of PCB for chip identification
If you have a working KN7000:
- Run the ROM dumper’s probe passes from an SD card and one floppy, with no opened case and no change to the firmware (ROM Dumper). A second unit’s strap word, CPU timing and DSP frame rate would show which of the owner’s figures hold for every KN7000. Tell us your PROGRAM and TABLE builds from the SOFT VERSION screen.
- Record a sound built from 8-bit wave samples, such as STRINGS, from the line out, to settle the samples’ gain law (Open Questions).
- Record Another World’s DSP sound and a played note from the line out, to measure how loud our DSP sound is against a note (by ear they are close; the CHORUS unit’s return is always mixed, as the owner heard it with REVERB and CHORUS both off) (Effects DSP).
- Record from the line out what the overlay’s plan for the effects DSP asks of the instrument (MAME Emulation Gaps). Two need no code on the unit, only a MIDI file (the project supplies it) played into it: a C4, held 2 s and released, with REVERB off, on at the default depth, on at depth 0 and on at 127 (about a minute in all), which shows whether the dry sound stays with REVERB on and how the depth scales the reverb; and a staccato C4 with Concert1 and a held C4 with Chorus1, to compare the effects’ own sound with MAME’s. Later, one program-menu folder with five modes would map which DSP returns reach the output (four 15 s recordings) and read the DSP’s clock, memory map and arithmetic (one run). Note the MAIN VOLUME position; 44.1 or 48 kHz, 16 or 24 bit.
- Play Another World’s third round on the unit (it has run only in MAME): how long the sounds take to load (the help screen’s “SENT IN n S”), whether PART SELECT RIGHT 1 silences the notes your keys play and brings them back (MAME cannot let it be heard), and whether A♭5 and B♭5 both work as UP (Another World on the instrument).
Read six pins on the SX-WSA1R’s effects board — ✅ ANSWERED 2026-09-15
Kept here because the method is the reusable part, and because the answer is a negative worth stating loudly.
The question was: where do IC30 pins 83–88 go? In the CDJ-500 pin table those are
RQ1–RQ3 (host-written, testable by an instruction’s condition field) and GF1–GF3
(set by instructions, host-readable). Neither the condition field nor the flag-setting
instruction has been located in the microcode, and neither MAME driver wires the pins.
The answer, read at 400 dpi off the WSA1R service manual, sheet II-15/II-16:
RQ1,RQ2,RQ3(86, 87, 88) are tied together and strapped to ground — the host can never vary them.GF1,GF2,GF3(83, 84, 85) are short stubs with no net, no strap and no destination — the host can never read them.
⇒ the flag/condition decode route is dead on the SX-WSA1R. The honest report is
“not available on this machine” — never “the chip has no COND field”: the pins
exist on the die, and the CDJ-500 may well wire them. See the
pinout.
⚠ It cost one pdftoppm command. These service manuals are image-only scans —
pdftotext and grep return nothing from them, and that has produced two false negatives
on this project. Render the page before concluding anything is undocumented.
Still wanted: a Pioneer CDJ-500 firmware dump
The CDJ-500 / CDJ-500G uses the same µPD6383GF as IC302, and its DSP-shaped feature — Master Tempo, key-lock pitch shifting — is microcode neither Technics corpus contains. It is worth +214 decoded words once the corpus-side work is done (and, measurably, almost nothing before then — see the route to 100 %).
A cheap second-hand player and a ROM reader is the whole shopping list. What is needed is the firmware dump, not the service manual — we have the manual.
Medium Priority
Documentation
- Improve code comments in the disassembly
- Write tutorials for new contributors
- Translate documentation to other languages
- Create diagrams of system architecture
MAME Development
- Extend the control-panel MCU HLE (upstream since mamedev/mame#15143)
- Test emulation accuracy
- Debug emulation issues
- Improve audio emulation
Tooling
- Extend the LLVM TLCS-900 backend for the forms it still cannot spell: in the KN5000 trees,
.bytelines with bank-register orQ-register operands (add XBC,XBC3,cp xwa,(xix+qbc)); in SX-WSA1Rprom_a, the 47 certified.bytesites with no spelling found yet, among them the rotate-by-Agroup (rrc A,H, bytesce f9), which the backend does not define (see Raw Byte Code Elimination) - Create visualization tools for protocol analysis
- Build comparison/diff tools for ROM analysis
Contribution Guidelines (STRICT POLICIES)
These policies ensure the disassembly remains useful for understanding the firmware, not just rebuilding it.
Symbolic Cross-Referencing
All cross-references must be symbolic (using labels), never numeric addresses.
; WRONG - numeric address
CALL 0F97544h
LDA XIX, 0E46312h
; CORRECT - symbolic label
CALL FDC_DRIVE_DETECT
LDA XIX, FONT_METRICS_TABLE
Meaningful names are STRONGLY preferred:
- Use descriptive names:
FDC_SEND_COMMAND,LED_CONTROL_DISPATCH,MIDI_EVENT_HANDLER LABEL_XXXXXXstyle names are a last resort for completely unknown code/data- When you discover what a
LABEL_*does, rename it immediately
Naming conventions:
- Routines: VerbNoun (
SendCommand,InitHardware) - Data tables: NOUN_TABLE (
FONT_METRICS_TABLE) - Constants: NOUN (
SYSTEM_TIMESTAMP) - Flags: NOUN_FLAG (
PAYLOAD_LOADED_FLAG)
Binary Include Splitting
When code references an address inside a binary include (not the first address), the binary must be split.
This ensures cross-references are symbolic and binary files become smaller for analysis.
Example: If data.bin covers 0xE02510-0xE06BAF and code references 0xE04000:
- Split the binary at 0xE04000
- Replace one
bincludewith two, each with a proper label - Remove old binary, add new binaries to git
- Verify build still produces identical ROM
Disassembly Quality
- Prefer disassembled code over raw bytes - Raw
dbsequences are last resort - Never sacrifice readability for byte-matching
- Document everything - Comments, labels, and clear structure
See CLAUDE.md in the repository for complete policy details.
Getting Started
- Clone the ROM disassembly repo
- Read the
CLAUDE.mdfor build instructions and contribution policies - Check the Open Questions for areas needing investigation
- Read the Roadmap for what the project is trying to reach and in what order
- Join the discussion forum
Long-Term Goals
Higher-Level Compiler
A custom LLVM backend for TLCS-900 is already operational and used as the authoritative build system for all ROM reconstruction. It supports C compilation targeting the TMP94C241F, and has been used to build the Minesweeper homebrew game.
Remaining compiler work:
- Optimization passes for code density
- Standard library support for homebrew development
- The forms still unspellable (a few dozen KN5000
.bytelines and 81 sites in SX-WSA1Rprom_a), for 100 % assembler coverage
Skills We Need
- Assembly programming (TLCS-900 or similar)
- Reverse engineering experience
- MAME/emulator development
- Hardware hacking (ROM dumping, logic analysis)
- C++ programming (for MAME HLE devices)
- Technical writing (documentation)
- Compiler development (LLVM, GCC) - for long-term goals
Contact
Reach out to Felipe Sanches to coordinate contributions.