KN6000 / KN6500 / HD-SX6: the program data and the screens

Like the KN7000, the SX-KN6000 and SX-KN6500 draw every screen from MILK widget records: 7,145 (KN6000 v7.1) and 7,203 (KN6500 v1.3), instances of 449 / 451 self-describing classes. Besides the GUI, the program flash carries the built-in Music Stylist (1,000 / 1,080 setups, each pointing at a one-touch setting), the accompaniment’s note-conversion tables, the factory panel memories, a fallback “Technics Rhythms” style and “Technics Pads” bank, twelve demo songs, thirteen bitmaps, and on the KN6000 the built-in sound tables. Since 2026-10-29 the disassembly writes all of it as typed source. This page summarises how; the disassembly trees page says how the images are rebuilt.

The images use the KN7000 tree’s tools, given a profile, not copied (../kn7000/tools/gen_data_s.py --profile kn6000|kn6500|hdsx3), so the KN7000 Menu Map and Program Data Region pages describe the method. The lane notes in the disassembly repository are the reference:

model data region (file) CPU RAM-init image (ROM -> RAM)
KN6000 0x176037..0x3F47EC 0x4C176037.. 0x4C3ED870 -> 0x50000010, 0x6F7C
KN6500 0x176839..0x37E44C 0x4C176839.. read from its crt0 the same way

Each tree’s src/program/data/ holds data.s and data_NN.s (the region in address order), gui_classes.inc, gui_ids.inc, gui_code_ids.inc, functions.sym, labels.sym, code_refs.txt, the rhythm and tone macros, and media/. make data-and-code-src regenerates the data and the code alternately until nothing the code reads changes (2 or 3 rounds); make verify keeps the image byte-identical.

The MILK object system: the KN5000’s registry

RegisterObjectTable (KN6000 v7.1 0x4C01D198) copies the 16-byte {class, proc, u16 count, u16 pad, table} record to 0x5024BE58 + 16 * slot. The tables are grouped by kind, as in the KN5000’s NAKA framework, not by block as on the KN7000:

slots kind registered by
0x000 + V Viewable (one per screen group) InitializeUserNN
0x100 + N Function InitializeUserNN
0x120 + N ApFunction  
0x140 + N MainFunction  
0x160 + N Class  
0x180 + N ResEvent  
0x1A0 + N ResMethod  
0x1C0 SupportClass InitSptClassTable
0x1E0, 0x1F0 Mode, Title InitModeTitleTable
0x200 + V ResName, parallel to Viewable V  
0x300 + N … the names of the three function tables  

An id is (slot << 16) | index, as on the KN7000. Eleven modules register tables (InitializeUser00 .. 18; the others are empty stubs). The class records are the KN7000’s and so is the aligned field layout, but the type alphabet differs: the older firmware has no \, so its ] ^ _ are the KN7000’s \ ] ^ (flag, colour, border) and its m..w the KN7000’s l..v. kn6000/notes/data-region-probes/sigmap.py pairs the fields of every same-named class of KN6000 v7.1 and KN7000 941: 591 pairs, one KN7000 character per KN6000 character. With the translation, selfsize and allsize hold for all 449 / 451 classes and every link checks.

The records are written as on the KN7000: one macro per class, links as object names, the tree as indentation, X / Y / W / H, CL_ / BD_ / ES_ / VF_ names from the firmware’s own tables, TT_ / MD_ / FN_ ids by name. A Viewable table is named V_<its first root object's ResName> (the KN6000 has no OT blocks). functions.sym gives the code the firmware’s own name of each procedure a MILK Function table lists: 551 names on the KN6000, where gen_symbols.py had found only 21 of those tables.

The menu maps

model map objects Viewable tables top-level objects titles
KN6000 kn6000/notes/gui-menu-map.md 7145 188 673 241
KN6500 kn6500/notes/gui-menu-map.md 7203 188 680 241
HD-SX6 hdsx3/notes/gui-menu-map.md 999 1 67 3

(The figures are each map’s own header.) make -C <tree> gui-map regenerates a map and make verify-gui-map checks it; the gates run it.

What else the program flash holds

structure KN6000 / KN6500 evidence
demo songs (36 zlib streams) both: 12 songs x record / events / panel bank the floppy describers type them (song record 0x870 bytes on the KN6000); .zlib 6 re-compresses byte-exactly
TechnicsRhythmsResource 0x4C359AC0 / 0x4C2E5304 IC18’s format, one style “ 8 Beat 1”; func_4C0557E9 falls back to it when the table ROM’s resource does not check
bitmap resources (13 / 13) both procedures answering MT_GetBitmapData / Width / Height / Palette / MT_GetBitCount; indexed PNG
ToneRecordDirectory KN6000 0x4C3E5FD4 (2,475 entries) ToneRecordGet: record index -> address when no archive is loaded; tone, TABLE-tone and voice records
FactoryPanelMemory 0x4C32BE24 / 0x4C2B7668, 13 banks x 8 func_4C03D431 / func_4C03D5A1 copy it (0x2D8D0 bytes) and the .PMT header to the backup RAM
TechnicsPadsResource 0x4C35FF84 / 0x4C2EB7C8 TechnicsPadsResourceInit keeps it and calls TechnicsPadsResourceParse when the table flash’s copy does not check
JPEG / BMP files 3 whole files

The KN6500 does have factory panel memories. The first notes on these images said the KN6500’s program flash had no panel banks; that was wrong. func_4C03D5A1 copies func_4C03D5A1_Table (the .PMT header) and then 0x2D8D0 bytes from 0x4C2B7668 to the backup RAM 0x840007C2 / 0x840007D2, as the KN6000’s func_4C03D431 copies its own. FactoryPanelMemory (kn6500_manual.sym) is now typed: 13 banks x 8 memories, 186,576 bytes (the “Soloist Sounds”, “PAd”, “PZA” … runs), as PMR_* lines (Panel Memory Records).

The Music Stylist setups and their one-touch settings

StyleRecordTable is the KN7000’s 24-byte MusicStylistSetup record, field for field: 1,000 records at 0x4C3DF8EC (KN6000), 1,080 at 0x4C36F724 (KN6500). The KN6000’s field readers:

field reader
+0 panel func_4C16B6B5_entry_L43 loads it and calls func_4C04C476, which hands it to func_4C04C58C
+4 name MssNameFunc_L121 (0x4C1637F8), strncpy 16
+8 genre StyleSubCatHeaderBuild: StyleGenreTable + genre * 8
+10 style StyleSubCatHeaderBuild: the genre’s style list + style * 8
+12 setup StyleCtgRowGet, StyleGenreStyleStep
+14 era func_4C165A19, cmp 0xffff, d1
+16 era_pos func_4C16619A: LibDiv32 by 9, page and row
+18 letter StyleAlphaHeaderBuild: StyleAlphabetTable + letter * 8
+20 letter_pos StyleAlphaHeaderBuild, StyleAlphaRowGet

The panel record is the one-touch-setting record that the CUSTOM banks also hold, 0x90 bytes here (func_4C04C552, KN6500 func_4C04C6C2, answers 0x90). func_4C04C58C merges it into 0x84000036.. through the same triple tables (func_4C04B9F8_entry_L4f_Table) that the CUSTOM writer func_4C04B9F8 uses. Each record is typed with the one-touch macros (PM_PART x 3, PM_ENTRIES, PM_PART, PM_RHYTHM, PM_SET77, PM_FX, PM_SET88, PM_SET8C) and labelled StylePanel_<setup name>_<n>. PM_RHYTHM is the new macro: where a CUSTOM setting has its slot, a built-in one has the style’s 24-bit rhythm id, low byte first. KN6000 999 records (143,856 bytes), KN6500 1,080.

The note-conversion rules

NoteConvRules (KN6000 0x4C3850BC, KN6500 0x4C3108F8) is 128 x 8 bytes, {is_melody, alt_chord, no_third_adj, no_transpose, table}. Its reader, func_4C05805C, is the KN7000’s NoteConvApply instruction for instruction: it adds 4 + (type - 1) * 12, or 4 + (type - 1) * 0x90 + (root - 1) * 12, then note % 12, and reads a signed byte. The tables are the KN7000’s NoteConvTable {name; s8 deltas}, 492-byte melody and 4,900-byte chord tables: on the KN6000 21 tables, about 50 KB (the “chord tables” of the first notes).

The built-in sound hash tables (KN6000)

The KN6000 v7.1 holds three multiplicative hash tables of the shape of the table flash’s ‘JK’ voice archive, with absolute pointers: a {u16 mult, u16 nbuckets} descriptor, the buckets, then chains of {u32 next, key, payload}. The readers are used when no archive is loaded (when func_4C07B982 answers neither 1 nor 2). Each takes key * mult % nbuckets (ToneKeyHashIndex), walks the chain comparing +4 and answers the payload:

descriptor address buckets entries x size key lookup
ToneKeyHashDesc 0x4C3E8680 1,139 1,896 x 20 MSB << 16 \| LSB << 8 \| program (ToneKeyFind) ToneKeyLookup
ShortKeyHashDesc 0x4C3E9850 1,907 2,898 x 12 a panel switch, group << 8 \| number (SoundSwNoBankGet) ShortKeyLookup
BankKeyHashDesc 0x4C3EC6A0 1,139 1,375 x 12 MSB << 16 \| LSB << 8 \| program (SoundBankIndexGet) BankKeyLookup

kn6000/notes/siblings-data-final-probes/hash_chains.py checks every key against its bucket (0 misplaced). These 89,196 bytes were the “past the tone directory” region of the first notes.

The payloads (lane mn10300-formats, 2026-10-31, kn7000/notes/mn10300-formats/README.md, section 2). hash_payloads.py shows which payload bytes carry values, and the routines that read them (named in kn6000_manual.sym) say what they are; the bytes nobody reads are 0 in every entry, the macros’ trailing .space:

payload macro fields, from their readers
TONE_KEY_PAYLOAD +0 u16 tone (SoundToneIndexGet), +2 icon (SoundIconGet; MainGetSoundName answers it for MT_GetSoundIcon), +3 / +4 panel_group / explorer_group, +5..+8 panel_no_dsp, panel_no, explorer_no_dsp, explorer_no (SoundSwNoGet: the switch {group, number} for state 0..3, below)
SHORT_KEY_PAYLOAD the bank msb, lsb and program the switch selects (SoundSwNoBankGet copies +0 / +1 / +2 to its three outputs)
BANK_KEY_PAYLOAD the u16 index SoundBankIndexGet answers

So ToneKeyHash maps a sound to its icon, tone and panel button, and ShortKeyHash maps a button back to its sound.

The four switch states (lane mn10300-rest, 2026-10-31, kn7000/notes/mn10300-rest/README.md, section 2; probe kn6000_swno_states.py). Every sound has four switch positions: on the panel’s SOUND GROUP buttons and in the SOUND EXPLORER’s 32 categories, each twice, once for a part that has a DSP effect unit and once for one that has none. SoundSwNoGet reads the state and answers the payload bytes below; for states 2 / 3 it then adds 2 x the archive source ToneKeyFind found. The inverse, SoundSwNoBankGet, makes the ShortKeyHash key group from the group + 0 (state 0), + 0x10 (1), + 0x40 (2) or + 0x60 (3); SoundGroupNames gives key groups 0x00..0x0F the panel SOUND GROUP buttons and 0x40..0x7F the 32 SOUND EXPLORER categories. The even state is the one for a part with a DSP unit: PartHasDspUnit compares the DSP units’ parts (GetM3EmVal 0xB050 .. 0xB010) with the part, and MainGetSoundName adds 1 when there is none.

state payload bytes meaning
0 +3 panel_group, +5 panel_no_dsp panel switch, DSP unit
1 +3 panel_group, +6 panel_no panel switch
2 +4 explorer_group, +7 explorer_no_dsp SOUND EXPLORER, DSP unit
3 +4 explorer_group, +8 explorer_no SOUND EXPLORER

The round trip ShortKeyHash -> sound -> ToneKeyHash agrees for all 2,898 entries. [INFERENCE] Bank MSBs 0x28..0x2F are the variants that need a DSP unit (state 0 holds 11 such switches where state 1 holds the 0x20 ones). The KN7000 has the same routines and tables (KN7000 Program Data Region).

zlib’s tables and field names (lane mn10300-formats)

Lane mn10300-formats named zlib 1.0.4’s 19 data tables, found by their contents, in this tree’s manual symbol file too (cplens, cplext, static_l_desc, inflate_mask, z_errmsg …), and the record macros’ fields are now named after what the code does with them: 525 of the KN6000’s 1,330 fields have a name, against 30 before (KN6500: 523 of 1,331) (field_names_census.py). The method and every tree’s figures are on KN7000 Program Data Region.

The HD-SX6 plug-in

The expansion board’s XAPR plug-in (which board) makes no direct call into the keyboard. Every host call is

mov (0x979126B4), aN / mov (0x100C, aN), aN / mov (OFF, aN), aM / calls (aM)

0x979126B4 holds the registry base and +0x100C is the table pointer of slot 0x100, the KN6000’s block-0 Function table at 0x4C32923C (422 entries), so OFF / 4 is the function index: 0xEC RegisterObjectTable, 0x278 RegisterTitle, 0xA8 DrawBox (77 calls), 0x2D8 GetClientBox (55), 0x25C MainFuncCall (34), 0x108 SendEvent (29), 41 offsets in all (kn2400/notes/data-region-probes/plugin_registry.py). With them the plug-in registers its own tables:

slot kind count table
0x168 Class 55 0x978B0740
0x077 Viewable 999 0x978B1F44
0x277 ResName 999 0x978B2EE4
0x108 Function 52 0x97912378
0x128 ApFunction 44 0x979118EC
0x148 MainFunction 7 0x97912520
0x188 ResEvent 47 0x9791211C
0x1A8 ResMethod 100 0x979121E0

and the title 0x77 = TT_HDDEXT, whose screen is HDD_MAIN_MENU. The tables at 0x9791xxxx are in the plug-in’s initialised RAM, copied from 0x978B3E84 (0x26D8 bytes, XaprRamInit). Its 55 classes use the NAKA alphabet and derive from KN6000 classes, so the generator builds the KN6000’s model first. Two link checks fail, both in the plug-in’s own data: object 11’s next is its child 14, and object 137’s next is the orphan 138. Its three pictures (BitmapBg001, BitmapBg002, BitmapDirsel) are 640 x 240, 8 bits, with a 256-entry 0x00BBGGRR palette.

Its entry points (lane mn10300-rest, section 5 of its README; probe hdsx3_entry_vectors.py; names in hdsx3_manual.sym, the host’s side in kn6000_manual.sym / kn6500_manual.sym). The plug-in’s header exports 20 entry vectors (+0x08 .. +0x54), and the KN6000 and the KN6500 call all of them, each through a stub that tests XaprBoardDetect’s result. XaprBoardDetect accepts the board only when the word header +0x04 points at also reads “XAPR” (XaprTrailerSignature).

header vector when the host calls it
+0x08 XaprEntryInit once at boot, with the registry base
+0x0C XaprEntryIdle at the end of every pass of the main task loop
+0x10, +0x14 XaprEntryIsrGroup24, XaprEntryIsrGroup27 from the host’s interrupt handlers XaprIsrGroup24 / XaprIsrGroup27 (interrupt groups 0x18 and 0x1B)
+0x18 XaprEntryM3Hook the PutM3Em hook of message group 0x70
+0x1C .. +0x54 XaprExtDiskFreeSpace .. XaprExtFileTell the host’s file layer, while its ExtMode flag is set: free space, names, error, open, close, remove, getc, putc, read, write, seek, rewind, tell

So the KN6000’s own file layer forwards to a whole file system in the plug-in while the hard disk is in use. Its calls into the host (probe hdsx3_indirect_calls.py): all 2,630 indirect calls are resolved, 2,444 through registry slot 0x100 (block 0), 183 through slot 0x107 (block 7) and 3 through a tag table; every host call in hdsx3/src/program.s now carries the routine’s name (gen_image_s.py --host-calls). milk_model.py used to read slot-0x107 calls as block-0 routines; it now follows the slot-0x100 chain only (the 11 registrations are unchanged). No other pointer is built at run time.

Blocks a routine is handed

Most reader-row pieces were blocks whose address the code only passes to a routine. Since lane callee-walk (2026-10-30, kn7000/notes/callee-walk/README.md) the walk follows the address into that routine, through register and stack arguments (calling convention), and the block is written as a record of what the routine reads, REC_<routine>_Arg<slot>, with a header naming the routine, the argument and the call (KN7000 Program Data Region). The siblings’ walk had more to gain: it kept a register at a join only when every path agreed, had no return-value rule, and entered a jump table’s cases knowing nothing, so a switch that selects a descriptor per case (mov data_X, a1 / bra Join) and returns it reached the call as “unknown”. It now has the KN7000 extended walk’s frame slots (narrowed: a slot gives back only a data address, a parameter, or NULL into an address register), address joins and return sets, and so the switches’ descriptors are records too (func_4C026B6B_Selected …).

Measured against disassembly 2a7b45be5 (kn7000/notes/callee-walk-probes/callee_walk_stats.py; n / bytes; “pointed” counts every record a pointer leads to, the new switch selections included):

tree address-only rows before after all rows before after callee records pointed before pointed after
kn6000 339 / 17,838 151 / 11,022 378 / 18,109 188 / 11,275 31 / 696 2571 / 42,931 2861 / 50,844
kn6500 345 / 17,958 156 / 11,138 384 / 18,229 193 / 11,391 31 / 696 2549 / 42,801 2839 / 50,714
hdsx3 30 / 228 25 / 177 40 / 266 34 / 211 131 / 1,048 17 / 19,340 155 / 20,444

With the walk on, the KN6000 types 15,951 more bytes of its data region (2,408,017 -> 2,423,968), the KN6500 15,953 and the plug-in 89 (callee_off_on.py --profile P); 29 bytes per keyboard that a reader table or a record head held are reader rows now, because a record the new joins find claims a different extent. On the KN6000 the 151 address-only blocks left are kept as rows because the routine only stores the pointer (69 / 1,028 bytes), hands it to a library routine (52 / 2,015), the address reaches no call the walk sees (24 / 7,839), the routine’s reads are lost inside it (4 / 112), it hands the pointer on (1 / 20), or the record would overlap another item (1 / 8); the KN6500’s split is the same within a few pieces. The opaque bytes fell too, KN6000 70,137 -> 65,733, KN6500 74,371 -> 69,967, plug-in 3,133 -> 3,103: bytes declared unread were records’ tails.

Pointers, arrays and loops (lane mn10300-typer)

Lane mn10300-typer (2026-10-31, kn7000/notes/mn10300-typer/README.md) changed the shared typer for every MN10300 tree: a 32-bit field is a pointer into code only where it lands on the first byte of an instruction (a length decoder, kn7000/tools/mn10300_insn_len.py, walks the code from its known entry points; 0 disagreements with the assembler in any tree), a pointer loop proven to stop at an address ends the array it walks, a loop’s counter is an index, a block a routine steps through is an array of records, and a chain a loop walks is typed record by record. The rules and the KN7000’s figures are on KN7000 Program Data Region. Here (typer_stats.py, all rules off against all on, the same inputs; n / bytes):

| tree | typed before | typed after | change | reader rows before | after | opaque before | opaque after | |——–|————–|————-|———|——————–|————-|—————–|—————–| | kn6000 | 2,424,027 | 2,436,905 | +12,878 | 185 / 11,215 | 142 / 9,370 | 2,833 / 65,733 | 2,347 / 54,782 | | kn6500 | 1,935,342 | 1,948,203 | +12,861 | 190 / 11,331 | 147 / 9,486 | 2,849 / 69,967 | 2,364 / 59,027 | | hdsx3 | 481,868 | 482,118 | +250 | 34 / 211 | 34 / 211 | 98 / 3,103 | 98 / 2,981 | A few bytes that an over-long table held before (32 on the KN6000, 35 on the KN6500, 6 on the HD-SX3) are now rows or fill: the 0xFFFFFFFF terminators after some tables, whose loop stops before them. The kernel’s routine after KernelInitHook is KernelTickIsrDefault (KN6000 Disassembly); since it is a function now, its call names an entry, one more routine without a header in the doc-quality census.

More of the data typed from the code that reads it (lane mn10300-data)

Every widget’s state variable in the initialised RAM – the selected item of a list, the value of a number box, the window a screen opens – is now written at the width its class’s procedure reads it, with that instruction cited. The chord and code maps (128 rows by 64 entries, one row per note, one column per chord type) and the chord voicings (twelve keys, up to seven notes each, and the inversions) are tables of their own; so are the lists the firmware walks until an end marker (the panel buttons’ descriptors, the effect programs’ command lists, the style lists) and the tables whose size the code checks before indexing them (the 32-slot hash tables, the 101-entry curves, the 99 words the hard-disk defaults copy). What the KN6000 and KN6500 used to show as “doubles” is their feature demo’s XML script (<ACT NO=5><SHOW OBJ="fdemo_a5"> …), now text [INFERENCE: text, from 32 or more printable bytes no instruction reads].

tree typed bytes before typed bytes after opaque pieces / bytes before opaque pieces / bytes after
KN6000 2,450,916 2,549,408 2,175 / 39,985 1,145 / 24,654
KN6500 1,962,208 2,062,463 2,189 / 44,212 1,176 / 27,134
HD-SX6 plug-in (hdsx3) 484,505 484,903 95 / 594 40 / 386

Measured by kn7000/notes/mn10300-data-probes/data_stats.py --dirs BEFORE AFTER --brief (typed bytes from labels.sym’s item sizes; opaque pieces as the generator counts them, not the data-incbin census), before = disassembly c240d1c0b, after = the lane’s regenerated sources; the rules are the gen_data_s.FEATURES keys (disassembly kn7000/notes/mn10300-data/README.md). The census below predates this lane.

Value names, boot sectors, style lists (lane mn10300-data2)

The framework’s value names, the disk formats’ boot sectors, the style lists. Each of the MILK framework’s 54 support classes (the integer, ID, pointer, rectangle and flag types an object’s properties have) points at a list of value names, {name, value} pairs ended by an empty name: “True” / “False”, the view flags VF_*, the colours CL_*, the borders BD_* …; the classes’ common handler turns a value into its name and back with them. The disk formatters’ boot sectors are typed too: the jump, the OEM name “Technics” and the BIOS parameter block of a 720 KB disk (1,440 sectors, media 0xF9) and of a 1.44 MB one (2,880 sectors, media 0xF0), then a two-byte jmp $. The Music Stylist’s genre lists now show every style with its four setups. On the SX-KN6000 / KN6500 the default panel memory (0x700 bytes, 42 records) is typed record by record, as on the KN7000.

tree typed bytes before typed bytes after opaque pieces / bytes before opaque pieces / bytes after
KN6000 2,549,408 2,556,875 1,145 / 24,654 774 / 18,082
KN6500 2,062,463 2,070,274 1,176 / 27,134 765 / 20,216
HD-SX6 plug-in (hdsx3) 484,903 484,906 40 / 386 40 / 386

Measured by kn7000/notes/mn10300-data-probes/data_stats.py --dirs BEFORE AFTER --brief, before = disassembly 1345995bc’s committed data directories, after = the lane’s regenerated sources; the rules are the gen_data_s.FEATURES keys support_values, sibling_support, boot_sectors, panel_700, style_lists, reclaim_strings and curated_counts (disassembly kn7000/notes/mn10300-data2/README.md).

Stable names, track lists, the APC / SEQUENCER slider (lane mn10300-data3)

Stable names, track parameter lists and the APC / SEQUENCER slider. The firmware’s screens hold thousands of widgets with no resource name of their own; the disassembly invents a name for each (its screen, its class and the text it shows) and now keeps those names in a table beside the source (<src>/data/gui_object_names.tsv), so that they no longer change when the source is regenerated: a run reads the table before it makes any name and writes it back, and editing one row renames that object and nothing else. The five lists of parameter ids that func_4C11B347 (KN6500 func_4C11B237 walks by index to the end marker -1 (one 32-bit word per id; picked by the sequencer track kind, through the byte table func_4C11B347_Table for kinds 0..0x12 and cmp 0x40 / 0x41 / 0x42 for APC, CONTROL and RHYTHM) are typed as lists; they are the ids a song track of that kind may carry (on the KN7000 82 for a part track, 62 for PART 10, 12 for APC, 32 for CONTROL, 8 for RHYTHM; see Sequencer). In the one-touch settings and panel memories, the byte that was called m008008 is apc_volume, the APC VOLUME (parameter 0x008008): the APC / SEQUENCER VOLUME slider (on the KN6000 / KN6500 the panel CPU’s input AD6, VR1, read through PanelCtrlValueGet(0xC6)) sets the APC VOLUME while no song plays and the SEQ VOLUME (0x008006) while the sequencer plays, holding the other at full level (127). The other m<id> fields the firmware’s own parameter dump names were renamed with it: master_tune, msa_on, apc_type, apc_type_alt, rhythm_sync, drawbar_type, tabs_1, tabs_2 (Panel Memory Records). The C library’s locale tables (LconvMonetary / LconvNumeric), the voice directory’s hash chains and the chord-recognition table’s 2,048 entries are typed in every build.

tree typed bytes before typed bytes after opaque pieces / bytes before opaque pieces / bytes after
KN6000 2,556,875 2,560,919 774 / 18,082 764 / 16,206
KN6500 2,070,274 2,074,318 765 / 20,216 755 / 18,340
HD-SX6 plug-in (hdsx3) 484,906 485,452 40 / 386 30 / 346

The plug-in’s widget variables are now read through the KN6000’s class procedures, which its widgets are instances of (host_widget_vars). On the KN6000 / KN6500 24 bytes typed before are not typed after: a record array whose first field holds bus-window bases (0x50000000 …) stops at its first record once 0x50000000 has a name (WORK_RAM_BASE, from lane sibling-names). Fixed in the next round on both sides: the base is no longer named, and such a name no longer ends a record run (below).

Measured by kn7000/notes/mn10300-data-probes/data_stats.py --dirs BEFORE AFTER --brief, before = disassembly 2bde950fa’s committed data directories, after = the lane’s regenerated sources; the rules are the gen_data_s.FEATURES keys sentinel_indexed, frozen_obj_names and host_widget_vars (disassembly kn7000/notes/mn10300-data3/README.md, merged in 3834c8773).

Effect-DSP parameter lists, name tables, field names (lane mn10300-data4)

The effect DSP’s parameter lists (SX-KN6000 / KN6500). For each of its 208 DSP effect types the firmware keeps a list that says what a parameter does to the effect DSP: for parameter n, a group of 13-byte entries, each a converter kind, two 32-bit operands and one or two 16-bit DSP addresses (0xC0xx for most), the group ended by 0xFF and the list by one more. When a parameter changes, the firmware finds its group and runs every entry through the converter its kind selects, with the parameter’s value. The 66 lists the types point at (and five older copies between them) take 7,091 bytes of each image. The GUI’s resource name tables are 512 slots: 256 names, then the 256 file names of the same resources (“music1.bmp”, “i0.bmp”); the second half is now typed as such. The KN6000’s per-voice tone-generator register image (160 bytes) is written to the TG one register class at a time, and its fields are named by those classes; the meaning of most classes is not known yet.

The lists are written with the macros FXL_ENTRY / FXL_END under FxParamListTable, the 208-pointer table in the initialised-RAM image (KN6000 0x500060DC, KN6500 0x50006088); their readers are func_4C155072, which finds parameter n’s group, and func_4C155C08, which decodes each entry (the stream format is the reader’s; no KN7000 counterpart was needed). The register image is TgVoiceRegImage, whose fields are tg_<class>, with +0x7C pitch_hi, the 17th pitch bit. The RAM test’s regions are typed RamTestRegion {base, length} and RamTestByteRegion {base, length, fail_bit}: the three-record array func_4C0506C7_entry_L4_Records (KN6500 func_4C050837_entry_L4_Records) whose first field holds the bus windows’ bases is whole again. ToneTypeFeature names, in every tree, the per-tone-type record the LFO EDIT loaders read (four LFO triples and four 5-byte EG segment entries; what each LFO value means is not traced).

tree typed bytes before typed bytes after opaque pieces / bytes before opaque pieces / bytes after
KN6000 2,560,919 2,569,446 764 / 16,206 696 / 7,665
KN6500 2,074,318 2,082,853 755 / 18,340 687 / 9,791
HD-SX6 plug-in (hdsx3) 485,452 485,507 30 / 346 28 / 288

Measured by kn7000/notes/mn10300-data-probes/data_stats.py --dirs BEFORE AFTER --brief, before = disassembly e53dc9b3a’s committed data directories, after = the lane’s regenerated sources; the rules are the gen_data_s.FEATURES keys fx_param_lists, string_ptr_runs and named_base_not_end (disassembly kn7000/notes/mn10300-data4/README.md, merged in 8d0865c27). Offset-named fields with a reader fell from 222 to 157 (KN6000) and 220 to 156 (KN6500). What is left, largest first: the table tails (2,697 / 2,504 bytes: the func_4C03CD2C_entry_L9d_Selected_* records’ tails, ResourceIdLeaf tails), bytes read as text that are not (994 / 2,949), and fixed-width text cells holding the glyph 0x95 between labelled strings (192 bytes each).

Hook dispatch lists, accordion diagrams, copies (lane mn10300-data5)

Hook dispatch lists. Parameter changes are fanned out through lists of {mask, value, handler} records, 12 bytes each: for a parameter id the firmware calls every handler whose (id & mask) == value, until a record whose handler is 0. The dispatcher picks the list by the parameter’s group, and the lists are now typed whole. Accordion register diagrams. The accordion tab’s register symbols are 18-byte pictures, three cells of five characters and a NUL, blanks and bullets (0x95 in the firmware’s font), which AcAcdnTabProc copies whole (memcpy of 0x12 bytes) for drawing; they had been guessed as strings. Copies. Some tables stand twice in an image with nothing seen to read the second copy; the copies are now written as copies of the typed originals, each item by its own rule, under <item>_Copy. Every image keeps the EQ band labels (“ 20”, “ 25”, “ 31.5” …) twice. The KN6000’s dispatchers are func_4C03CD2C and M3HookDispatch, the twins of program 941’s.

tree opaque pieces / bytes before opaque pieces / bytes after offset-named fields with a reader, lane at 486525b6e
KN6000 696 / 7,665 662 / 6,507 157 -> 150 144
KN6500 687 / 9,791 653 / 8,633 156 -> 149 143
HD-SX6 plug-in (hdsx3) 28 / 288 28 / 288 20 -> 20 20

On the KN6000 the dispatch-list tails were 660 bytes, the accordion diagrams’ cells 312 and the EQ band labels’ copy 186. Measured by kn7000/notes/mn10300-data5-probes/opaque_diff.py (before = the base 92b5cc4a7’s data directories; nothing became newly opaque) and kn7000/notes/mn10300-data-probes/opaque_left.py, which gives the same totals at 486525b6e; fields by kn7000/notes/mn10300-formats-probes/field_names_census.py --md (the lane’s run, and again at 486525b6e, after the other wave-13 merges) (disassembly kn7000/notes/mn10300-data5/README.md, merged in 4e1d77a5b).

tree false-string table-tail after-string labelled-held other groups total
KN6000 994 -> 886 2,697 -> 2,037 930 -> 540 2,380 -> 2,380 664 -> 664 7,665 -> 6,507
KN6500 2,949 -> 2,841 2,504 -> 1,844 886 -> 496 2,837 -> 2,837 615 -> 615 9,791 -> 8,633

(bytes, opaque_left.py --tree <t>, base -> after). What is left on the KN6000, largest first: bytes inside labelled items (2,380), table tails (2,037: a 198-byte remainder after a memcpy‘d block, func_4C05E846_Block_2, in every build; ResourceIdLeaf tails; VocalistGrid_L16b_Table 88), bytes read as text that are not (886) and bytes after a string (540). The KN6500’s false-string group holds one piece of 1,998 bytes whose first 1,838 bytes are a copy of func_4C16F9FF_Table + 322, left because the copy does not start at an item.

What is left: the census

The fourth committed snapshot of scripts/analysis/data_incbin_census.py, docs/coverage/data-incbin-2026-10-30-04.txt (measured at b84f732aa, committed in a25c88274; its rows for these trees are those of -03, measured at a9b5cf764 after lanes media-files, code-island and callee-walk merged; count / bytes; from media is the part of generated made from a PNG by a committed converter):

tree generated from media media opaque generic n generic bytes opaque in -02
kn6000 80 / 137,020 80 / 137,020 3 / 28,660 2833 / 65,733 0 0 3197 / 70,137
kn6500 83 / 137,404 83 / 137,404 3 / 28,660 2849 / 69,967 0 0 3213 / 74,371
hdsx3 3 / 309,200 3 / 309,200 0 / 0 98 / 3,103 0 0 101 / 3,133

The opaque fall from -02 is lane callee-walk’s (above). The current snapshot, docs/coverage/data-incbin-2026-10-31-02.txt (measured at 6ca33e656, committed in c58fe3de7), reads generic 0 and opaque kn6000 2347 / 54,782, kn6500 2364 / 59,027 and hdsx3 98 / 2,981, the other columns unchanged: lane mn10300-typer’s work (above).

Lane mn10300-rest (2026-10-31) then took the opaque pieces to kn6000 2,175 / 39,985, kn6500 2,189 / 44,212 and hdsx3 95 / 594 (measured on its branch’s committed sources by typer_stats.text_stats, table “Measurements” of kn7000/notes/mn10300-rest/README.md; no census snapshot holds those figures yet). The new passes type the C library’s table of powers of ten (Pow10Table, 309 doubles: KN6000 0x4C326F54, KN6500 0x4C2B276C, plug-in 0x978AFD98), the EUC-JP strings of the language tables, and the parameter-id trie (ResourceIdTrie, walked by ResourceIdFind; Panel Memory Records). The over-long record array that had run from the trie’s 16-entry root over what follows it is gone (962 bytes typed before and not after on the KN6000).

Before the work the trees held 2,630,724 (KN6000), 2,140,036 (KN6500) and 533,544 (plug-in) generic bytes; after lanes sib-kn6000 and sib-kn2400, 797,489 / 901,823 / 6,623; in the first snapshot (data-incbin-2026-10-30-01, after lane siblings-final) 18,810 / 18,930 / 266 bytes in 380 / 386 / 40 pieces, with opaque 3336 / 79,522, 3346 / 83,667 and 101 / 3,133. Lane generic-zero (snapshot -02, disassembly 141313939; c04e41079 for the KN6000 / KN6500, c65a62c5b for the plug-in; kn6000/notes/siblings-data-final/README.md, section “generic-zero”) took all three to 0. Every generic piece had a reader, so none could stay a binary include or be declared opaque:

  • Records. record_start() stops a record that the walk reads past its first bytes from being taken for a short string; the KN6000’s func_4C02CA6A_Records_p0 records (func_4C02CBDA_Records_p0 on the KN6500; the parameter-id trie’s leaves, under ResourceIdTrie since lane mn10300-rest), before a run of guessed strings, are typed records now. The opaque bytes fell with them (79,522 -> 70,137 and 83,667 -> 74,371): bytes declared unread were the records’ tails.
  • Reader rows. Every other piece is written as rows at the width and signedness of the reads that land in it (tab_u8 … tab_u32), address words as .long Label / Label+N, under a header naming the readers (counts below). Most are “address only taken”: the code loads the piece’s address into a register or passes it to a routine. On the KN6000, data_4C1A04AC is now 2,240 bytes of u8 rows whose address func_4C055ED9_L43 loads as a base; the table at 0x4C176EA8 is the 16-colour table of VwUserBitmapProc (u32 0x00BBGGRR rows; since lane callee-walk DrawBitmapSPFast16_Impl_entry_Le0_Table, typed from the routine it is passed to); empty strings handed to strcpy are .asciz "". The plug-in’s are coordinate words (0x500014 = x 0x14, y 0x50) passed to the host’s drawing routines through calls (a2), and 10 strings.
  • The kernel’s tail. The two pieces of the code file outside every range (115 + 586 bytes) are typed: FirmwareVersionByte, the kernel’s version string, KernelServiceHash, KernelRamLayout, KernelParams, and the kernel’s two interrupt dispatchers as code (see KN6000 / KN6500 / HD-SX Disassembly). Lane code-island (2026-10-30) named the kernel routines beside them after the KN7000’s flash tail (KernelInit, KernelWaitRelease … KernelInitHook) and turned the sibling generator’s last .byte escapes into instructions.

What the reader-row pieces were after lane generic-zero, by tree (kn7000/notes/data-final-probes/reader_rows_stats.py; lane callee-walk’s figures since are above):

tree read at a width (n / bytes) address only taken (n / bytes) strings (n) total n total bytes
kn6000 5 / 129 339 / 17,838 34 378 18,109
kn6500 5 / 129 345 / 17,958 34 384 18,229
hdsx3 0 / 0 30 / 228 10 40 266

A reader row kept the reader’s widths, not the callee’s layout, because the walk did not carry an argument into the routine that reads it; lane callee-walk changed that (above), and the rows left say why in their headers.

Opaque means that the reader search found no load, store, base or call argument in the bytes. The biggest on these images were: records 03 00 00 00 00 00 00 00 f0 c0 05 ff ff ff 04 ... (3,927 bytes at 0x4C398C2B / 0x4C3244AF; the effect DSP’s parameter lists, typed since lane mn10300-data4, above), the tail of a pointed record kind with small 0..13 values (3,888 bytes), and {0, pointer} word pairs whose pointers lead into gaps. The 1,525-byte “high-entropy” block the MILK siblings share, which is followed by the JPEG zig-zag order and was read here as the JPEG decoder’s tables, is part of the C library’s powers of ten (Pow10Table, typed by lane mn10300-rest).

Open

  • The hash tables’ payloads past their first field, and the key of the short-key table: read from their readers (above); the four switch states were read by lane mn10300-rest.
  • The one-touch bytes the macros keep as hex.
  • The code reaches many tables with computed offsets; their bounds come from the labels the code names, so a table can still be split in two.
  • The plug-in’s entry vectors’ roles: above (lane mn10300-rest).
  • The groups whose reader lane mn10300-rest found but which no generator pass types yet (KN6000 / KN6500 bytes: terminator-ended lists 8,857, 128 x 64 code / chord maps 5,352, fixed-count tables past their typed part 5,244, style / setup lists 4,624 / 5,056, chord voicings 3,486 / 5,142, widget variables in the initialised RAM image 2,950 / 2,948): section 7 of the lane’s README.
  • Blocks the callee walk cannot follow: a pointer a routine stores (a timer, a registry, a queue), library copies. (Arrays indexed by a loop counter are followed since lane mn10300-typer.) The siblings’ walk has the KN7000 extended walk’s slots, joins and return sets, not its other rules (pointer-from-a-field returns, loop bodies keeping slots, bounds); the whole extended walk, tried on the KN2400, typed less.
  • [INFERENCE] What the kernel’s hash keys, RAM layout words and u16 parameters mean.