Panel Memory Factory Data (Table Data ROM)

The block at 0x99EC00-0x9ABF3F in the Table Data ROM holds the factory contents of the PANEL MEMORY registrations: ten 16-character bank names followed by 80 preset records of 674 bytes – ten banks of eight, one per PANEL MEMORY button. Boot copies all of it into DRAM, where the user’s own registrations later overwrite the working copies.

Two earlier readings of this region are retired by this page:

  • “Demo Category Names” – the ten strings at 0x99EC00 are Panel Memory bank names (“Tour Of The 5000”, “Accordion”, …), not demo-song categories. The eleventh name older notes listed, xPiano Atmosphere, is almost certainly a boundary artefact of reading string-shaped runs straight past the end of the name array into the first preset record: the record’s first byte is its 0x78 name-chunk tag, which is ASCII x, and Piano Atmosphere is preset 0’s name.
  • “Tone Generator Configuration Records, 26-byte stride” – there is no 26-byte record stride here. The 26-byte autocorrelation that produced that guess is the 2-byte chunk header plus 24-byte payload of the sound-part chunks inside a 674-byte record. The stride of an actual record is 674.

The block is now assembled from source in table_data/panel_memory_presets.s.

Companion pages: Custom Data Flash for the user Panel Memory storage, Table Data ROM for the region map, Music Stylist Preset Database for the other factory-registration block in this ROM.

Layout

range symbol contents
0x99EC00-0x99EC9F PanelMemory_BankNames 10 x 16-char space-padded bank names
0x99ECA0-0x9ABF3F PanelMemory_Preset_00.._79 80 x 674-byte preset records

Record i is bank i / 8, button (i % 8) + 1. 80 x 674 = 53,920 bytes, ending exactly at 0x9ABF40, from where the ROM is 0xFF fill to 0x9B3FFF (32,960 bytes, verified).

Factory banks and presets

bank name buttons 1-8
1 Tour Of The 5000 Piano Atmosphere, String Orchestra, PianistMode Trio, New Guitars, Fall To The Left, HollywoodRomance, It’s An Illusion, Pomp & Ceremony
2 Accordion Le Musette, Jazz Accordion, Steirisches, Soft Latin, Tutti Registers, Pure Tango, Romantic Reeds, Fun Park Reeds
3 Piano Styles Ragtime Pianist, Jazz Pianist, Easy Jazz Groove, Lullaby Of Jazz, Bossa Pianist, Deep Rhumba Solo, Blueberry Keys, Sequin Virtuoso
4 Jazz&Rock Organ The Cat of Jimmy, Smith strikes B3, Tribute to Joey, DeFrancesco’s C3, The Lord Organ, Hensley’s Livin’, Brian’s Revival, Auger’s Bump
5 Church & Theatre Chapel Organ, Sunday Service, Full Pipes, All Stops Out, Funtime Theatre, At The Seaside, Tibia Chorus, Tibias Plus
6 Light Orchestra 40’s Dance Band, Late Night Jazz, On The Shore?, Mantostringy!, Latin Muzak, Cello Romance, Pizzicato Magic, Radio Orchestra
7 Split Sounds Piano,Bass&Drums, Modern Jazz Trio, Ballad Combo, 60’s Pop Group, Folk Festival, Power Pop Ballad, Hillbilly Band, Brass Band
8 Layer Production Behind The Piano, Guitar Dreams, Studio EP, Bright Piano Pad, Guitar Synth, Open Spaces, Super Sweeper, Of The Ether
9 Special DSP FX 50’s Echo, Don’t Ring Us!, A Bit Of A Mixup, Phased Guitar, Effective Warmth, Bad Boy Wah, Flanged & Funked, Underwater Echo
10 World Sunset in Peru, Party in Greece!, Tango Symphonia, Hungarian Party, Caribbean Style, The French Way!, Eastern Promise, Edinburgh Dance

Bank names are space-padded to 16 characters, most of them centred (" Accordion ", " World "); “Tour Of The 5000”, “Church & Theatre” and “Layer Production” fill all 16 columns. Preset names are stored likewise and are shown here trimmed.

Record format: a chunk stream

A record is not a fixed struct. It is a stream of (tag, length, payload[length]) chunks, terminated by a 0xFF tag; a second 0xFF byte pads the record out to 674 bytes. All 80 records carry the same 34-chunk sequence in the same order (verified across all 80).

# tag payload role
1 0x78 18 16-char preset name + 2 spare bytes (00 00 in all 80)
2-5 0x00-0x03 24 each sound-part blocks, the four realtime parts
6 0x0F 24 sound-part block
7-13 0x10-0x16 24 each sound-part blocks (accompaniment/rhythm side)
14 0x19 24 sound-part block
15-17 0x44-0x46 10 each drawbar registrations of RIGHT 1 / RIGHT 2 / LEFT (footages at +3..+7)
18 0x47 8 parameter group (undecoded)
19 0x43 4 parameter group (undecoded)
20 0x48 10 style number (+0/+1, 11 bits) and tempo (+8/+9)
21 0x90 6 parameter group (undecoded)
22 0x60 4 parameter group (undecoded)
23-27 0x61, 0x63-0x66 24 each the five DSP-effect slot blocks (see below)
28 0x68 10 undecoded
29 0x70 8 digital-effect selection
30 0x72 14 undecoded
31 0x92 14 undecoded
32 0x71 2 per-panel-memory ON/OFF flag (bit 1 of +0)
33 0x99 30 undecoded
34 0x80 14 sequencer / MIDI-clock control
– 0xFF – terminator, then one 0xFF pad byte

That adds up: 20 + 13x26 + 78 + 5x26 + 106 + 2 = 674.

Note the chunk order in the stream is not tag order – 0x44 0x45 0x46 0x47 0x43 0x48 is the literal sequence in every record.

The tag names come from analysis/disk-format-probes/README-lsw-nonpart-records.md, README-lsw-drawbar-records.md and its -ADDENDUM (for 0x71) in kn5000-roms-disasm. Where they overlap, they agree with the Music Stylist parameter block, which writes into the same panel stream.

The firmware’s own schema: layout tables and field rules

The main CPU carries the stream’s layout and a validation rule for every byte of it, in the program ROM at 0xED8ADA-0xED92D7 (identical in v7, v9 and v10):

ROM what source name
0xED8ADA 32 field-rule lists, each ended by 0xFF (plus one 0xFF pad when odd) PanelTlv_FieldRules
0xED8FE0 46 x 10-byte layout records of block 0 PanelTlv_Block0_Layout
0xED91AC 30 x 10-byte layout records of block 1 PanelTlv_Block1_Layout

A layout record is {u32 offset of the record from the block base, u32 -> its rule list, u8 tag, u8 len}. Block 0 is the live panel at RAM 0xF9A0 and each of the 80 panel memories at 0x1ED400 + 960*n; block 1 is the live panel’s second part at 0xFD60. The records chain (offset[i+1] = offset[i] + 2 + len[i], checked for all 76), and each block’s last record is tag 0xFF, length 0xFF: the FF FF end mark. PanelTlv_WriteRecordHeader stores tag and length; PanelTlv_ValidateRecord applies the rules to the payload one at a time, through PanelTlv_ApplyFieldRule, whose type byte picks one of nine cases:

type rule effect on payload byte off
0 / 1 / 2 {t, off, mask} &= mask / &= ~mask / \|= mask
3 {3, off, mask, lo, hi, dflt} field (byte & mask) outside lo..hi -> dflt
4 {4, off, mask, lo, hi, dflt} field inside lo..hi -> dflt
5 {5, off, mask, n, dflt, v1..vn} field not among the n values -> dflt
6 {6, off, mask, n, dflt, v1..vn} field among the values -> dflt
7 {7, off, value} = value
8 {8, off} = 0

A reset keeps the bits outside the mask: byte = (byte & ~mask) | dflt. What the rules say about the chunks above:

  • 0x78: bytes 0-15 must be 0x20..0x7D, else a space; bytes 16 and 17 are zeroed (the 00 00 in all 80 records). The list checks byte 13 twice and byte 14 never – as in the ROM.
  • Sound numbers (+0 of a part block): tags 0x10-0x12 reset anything above 167 to 21; tag 0x13 resets to 40, the bass part’s default (slot 40 is Electric Bass). The drum parts 0x15, 0x16, 0x19 (and 0x17, 0x18 in block 1) reset only 168..239 to 1, so they accept 0..167 and 240..255 – the melodic sounds and the drum kits, rejecting the hole between.
  • 0x48 byte 0 carries a type-3 and a type-4 rule on the same byte: it accepts 0..157 and 240..244, default 96.
  • 0xC0-0xD4, 0xD7 (22 block-1 records of 18 bytes): every byte has a type-8 rule, so validation clears them all.
  • 0x61, 0x63-0x66, 0x68 have no rules; PanelTlv_ValidateBlock0 passes the five effect records to DSPCfg_WriteAllSlots_Combined as slots 0-4 (tags 0x61 0x63 0x65 0x66 0x64).

Two small tables follow the schema. PanelTlv_ResetMasks (0xED92D8) is five {RAM address, AND mask} pairs – tag 0x80 payload byte 0 &= 0xFB, tag 0x98 payload bytes 1, 3, 2, 11 &= 0x80, 0xFE, 0x3F, 0x3F – which PanelTlv_ApplyResetMasks applies on a tone-generator reinit before it fills the panel name with spaces. PanelTlv_CompanionPartTags (0xED92F2) lists the 23 records (parts 0x00-0x14, 0x17, and the style record 0x48) whose companion record (0xC0 + part, or 0x49) PanelTlv_ResolvePartCompanions recomputes from the record’s sound. The reinit runs: reset masks, validate (which zeroes every companion), recompute the companions, rewrite every header.

The lists, written out with one RULE_* macro per rule, are C: v10/maincpu/ui_widgets/naka_extension_device.c (PanelTlv_Rules_Tag<tag>, panel_tlv_layout_t), by scripts/converters/panel_tlv_schema_retype.py; the routines are in v10/maincpu/audio/tonegen_fileio_handlers.s.

The 24-byte sound-part block

Thirteen chunks per record carry a 24-byte sound-part payload (0x00-0x03, 0x0F, 0x10-0x16, 0x19). Five further chunks (0x61, 0x63-0x66) happen to be 24 bytes long as well but are not part blocks.

Field observations from cross-record diffs, all tentative:

offset observation
+0 / +1 sound selection (program number plus a bank/group byte)
+3 volume-like level, range 0x3C-0x7F
+8 / +9 a 0x40-centred pair (pan-like)
+13 part/routing byte – constant per tag across all 80 records

From the firmware’s own parameter descriptors (2026-10-06). The sound-parameter descriptors (audio/sndparam_records/run_*.c in kn5000-roms-disasm) say which byte and bits each part parameter edits, and the parameter’s key is 0x8000 + 0x400*tag + k, with k the MIDI controller number of that parameter (evidence: analysis/disk-format-probes/README-lsw-param-namespace-map.md, section 5). For every part record:

offset bits parameter (k) descriptor name (part 0)
+0 all sound (CC 0) SndParam_Part00_Sound
+1 0-6 bank (CC 32) SndParam_Part00_Bank
+3 0-6 volume (CC 7) SndParam_Part00_Volume
+3 7 mute (k = 0x08; the mixer draws “MUTE” when it is 1) SndParam_Part00_Mute
+4 3 sustain (CC 64; the SUSTAIN button) SndParam_Part00_Sustain
+4 6 digital effect (CC 94; the DIGITAL EFFECT button) SndParam_Part00_DigitalEffect
+5 0-6 DSP effect (CC 93; the firmware’s LswDSPEffect) SndParam_Part00_DspEffect
+7 0-6 reverb send (CC 91) SndParam_Part00_ReverbSend
+8 0-6 pan (CC 10) SndParam_Part00_Pan
+9 0-6 key shift (k = 0x82, LswKeyShift), range 52-76 (64 +/- 12) SndParam_Part00_KeyShift
+10 / +11   tuning / bend range (k = 0x81 / 0x80, LswTuning / LswBendRange; 0-255 / 0-12) SndParam_Part00_Tuning / _BendRange
+12 / +13   set by the sound-parameter banks, kept by panel-memory recall  

The mute row comes from the mixer widget (2026-10-06). AcMixerVol_Channels (28 entries, typed in naka_disk_warning.c) pairs each mixer channel’s volume key with its mute key. AcMixerVol_DrawChannel prints the volume and draws “MUTE” when the mute value is 1, and for channels 0-22 the keys are k = 0x07 / 0x08 of tag 0-22. The same table’s channel names give the tags their panel names:

tag 0 1 2 3-15 16-18 19 20 21 22
mixer channel RT1 RT2 LEFT PT4-PT16 ACP1-ACP3 BASS DRUM CHRD RTBS

Evidence: analysis/disk-format-probes/README-lsw-param-namespace-map.md, section 6.

So +9 is not the second half of a pan pair, as the cross-record table above guessed. Its range is 52-76, which is 64 +/- 12.

The +13 byte is the strongest structural signal in the block. Its value per tag, measured over all 80 records:

tag +13 tag +13
0x00 0x00 0x13 0xC2
0x01 0x01 0x14 0xCE
0x02 0x02 0x15 0xC4
0x03 0x03 0x16 0xC0
0x0F 0x0F 0x19 0xCF
0x10 0xC4    
0x11 0xC8    
0x12 0xC9    

For the five low tags the byte simply repeats the tag; for the eight high tags it is 0xC0 | m with an m that is not the tag’s low nibble, so the mapping is a lookup, not an arithmetic rule. There is exactly one exception in the whole block: preset 15 (bank 2 button 8, “Fun Park Reeds”) stores 0xC0 in its 0x19 chunk where the other 79 records store 0xCF.

How the firmware loads it

Three main-CPU routines, cited at their v10 addresses; v7 and v9 carry the same code at shifted addresses: PanelMem_InitAllFromFactory (0xFC81EF), VoiceData_ExtendedParamSetup (0xFC7E82) and PanelMem_InitFromFactory (0xFC7DD8). The first and last were named from their bodies on 2026-11-02 (disassembly notes/open6-kn5000-d/naming/README.md, section “kn5000-j8z”, where PanelMem_InitAllFromFactory is MainSysControl’s INITIAL SETTING resetter for PANEL MEMORY and PanelMem_ApplyFixups, 0xFC822D, its last step); VoiceData_ExtendedParamSetup keeps a name that does not describe it.

0xFC81EF – initialise everything.

MEM_COPY(0x1ED350, 0xEDBA1C, 16)    ; 16-byte spare name slot: "HK \0" + zeros + c0 03 50
MEM_COPY(0x1ED360, 0x0099EC00, 160) ; the ten bank names
for i in 0..0x4F: call 0xFC7DD8     ; the 80 preset records

The "HK " signature it seeds is the same one the user registration area in the Custom Data Flash uses (see Custom Data Flash).

0xFC7E82 – copy one bank name. Returns immediately if the index is >= 10, otherwise MEM_COPY(0x1ED360 + 16*i, 0x99EC00 + 16*i, 16).

0xFC7DD8 – build one RAM record. Bounds-checks the index against 0x50 (= 80), zero-fills a 960-byte (0x3C0) RAM record at 0x1ED400 + 960*i, then assembles it from two sources – the 674-byte ROM record at 0x99ECA0 + 674*i, and a fixed default block in the program ROM:

RAM range length source
+0x000 0x07C ROM record +0x00 – the name chunk and parts 0x00-0x03
+0x07C 0x11E program ROM 0xEDB478 (SndParamRam_DefaultImage + 0x7C) – eleven chunks tagged 0x04-0x0E
+0x19A 0x226 ROM record +0x7C – everything else, including the FF FF terminator

The middle piece is the key structural fact: parts 0x04-0x0E are not stored per preset. The block at main-CPU ROM 0xEDB478 is 286 bytes = eleven chunks in exactly the same (tag, 24, payload) grammar, tagged 0x04 through 0x0E, and every one of the 80 factory presets gets the identical copy spliced in. The assembled RAM image is therefore a 45-chunk stream of 960 bytes carrying 24 sound parts, with tags 0x17 and 0x18 unused.

How a panel memory is recalled

PanelMemory_SlotAddresses (program ROM 0xEB7942, typed in ui_widgets/naka_style_bitmaps.c) gives the RAM address of every slot: 0-79 are 0x1ED400 + 960*n, and slot 80 is RAM 0x3C2C4, the Music Stylist record’s mirror of the panel stream (EffectMode_ReinitSoundOutput passes slot code 0x80, which is read as 80).

PanelMemory_Recall (ui/bitmap_out_routines.s) recalls a slot in five steps:

  1. It backs up the live panel block (0xF9A0, 960 bytes) to RAM 0x3C8E4.
  2. It checks that the slot opens with a name record (tag 0x78) of the live panel’s length.
  3. It chooses one of three ways to copy the slot over the live panel:
    • all records (PanelMemory_RecallRecords), when RAM 0x8D52 bit 2 is set. The records are copied one by one, and each part record keeps its payload byte 13 and the low 3 bits of byte 12. These are the bits the sound-parameter banks set;
    • keep the style (PanelMemory_RecallKeepStyle), when bit 1 is set. Tag 0x48 bytes 0, 1 (the style number) and 7, the low 3 bits of byte 4, and tag 0x72 bytes 8-10 are put back from the backup;
    • keep the accompaniment (PanelMemory_RecallKeepAccompaniment), when panel parameter 0x302 is 1. Part records 0x10-0x14 and fields of tags 0x48 and 0x72 are put back. Otherwise, all records.
  4. It calls ToneGen_DispatchByMode.
  5. It calls BitMapOut_DetectChanges, which starts with PanelTlv_ResolvePartCompanions.

The routine names are from kn5000-roms-disasm scripts/renaming/rename_panel_memory_recall.sed. That file opens with a VGA palette loader, and its BitMapOut_ prefix had spread over this code.

Composer factory memory image (0x9B4000-0x9C3FFF)

The 64 KB immediately after the Panel Memory fill is Composer_FactoryMemoryImage: the factory contents of the COMPOSER (user rhythm-style) memory. It is copied wholesale into DRAM at boot, with no interior addressing at all:

ld XIY,0x9B4000 / ld XIX,0x94800 / ld BC,0x8000 / ldirw   ; 0x8000 words = 64 KB

That code is at main-CPU 0xF6413A in v9 and v10 and 0xF63D36 in v7; the v7 source tree has it at v7/maincpu/sequencer/accompaniment_engine.s:22708 under the placeholder label AccWidget_DispatchTable (the same label at 0xF6413A in v9 and v10), which does not describe it: it is the Composer image copier (a rename is pending). Because nothing addresses inside the image, the block stays a single labelled .incbin slice.

Structure observed in the image (offsets are image-relative; add 0x9B4000 for ROM):

image offset contents
+0x0000 96-byte bank header, as in an IC19 style section: the 48 00 4B 00 (“H”, “K” in 16-bit characters) magic and a 5A 5A 5A ("ZZZ") tag at +0x0B
+0x0060 section directory in the IC19 layout: 30 STYLE_SECTION records of 0x60 bytes, 16-char name at record +0x40, the section’s five chain pointers at +0x00 and +0x04..+0x0A (read this way by scripts/analysis/style_directory_chains.py in kn5000-roms-disasm)
+0x0BA0 zero fill to +0x12FF
+0x1300 style event pool: zero to +0x13BF, a 64-byte misaligned pseudo-cell at +0x13C0, 234 linked 256-byte cells from +0x1400 to +0xFDFF, and two empty 0x00-marker blocks at +0xFE00 / +0xFF00

The 30 records are the 30 sections of one style (STYLE_SECTION 0..29, see Custom Data Flash), and each name is the name of the pattern that section was taken from. The 30 slot names are three factory user styles’ patterns at four variations each – ` Pop Samba 1.. Pop Samba 4, GentleSwing 1..GentleSwing 4, German 3/4 1..German 3/4 4 -- followed by 18 slots named Clear `.

The “MIDI-like note streams near 0x9C0000”

The old region map described 0x9B4D78-0x9C3FFF as “tone generator parameter data; MIDI-event-like note streams (90 30 24 ...) from 0x9C0000”. Those streams are real, but they are the Composer image’s rhythm data, not tone-generator parameters. They use the same cell/chain container as the IC19 accompaniment styles: 256-byte cells, each with an 80 PREV NEXT 87 header (16-bit links, 0xFFFF at a chain’s head or end), an event stream and a trailing 87. The image holds 234 linked cells in 150 chains, from image offset 0x1400 (ROM 0x9B5400) to 0xFDFF; the last two blocks (0xFE00, 0xFF00) are empty unlinked blocks with a 0x00 marker. The 52 80 nn 00 FF FF 87 headers counted earlier, the first at 0xAB00, are only the last cells of the 52 multi-cell chains. The disassembly builds the image from custom_data/styles/Composer_FactoryMemoryImage.styles; the container is described in docs/accompaniment-style-format.md in the disassembly repository.

Neighbours

  • 0x9999CC-0x9999D2 – HelpDB_TrailingResidue, seven stray bytes left after the Indonesian help database: 7F D8 7F E2 7F EC 7E, three (0x7F, N) pairs with N stepping by 10, then a lone 0x7E. Nothing points at them; they look like the tail of a stride-10 table from an earlier factory build.
  • 0x9999D3-0x99EBFF – 0xFF fill (21,037 bytes, verified).
  • 0x9C4000-0x9C404F – DemoSongPreset_PointerTable: 19 four-byte LE pointers plus a null terminator, indexed as part * 4. Every non-null target begins with the ASCII magic SLIDE4K, so these are compressed demo-song presets, not PCM waveform samples as an older note on the Table Data ROM page had it. Entry 18 is the Feature Demo preset at 0x8E0000; the other 18 tile 0x9C4050-0x9F94CA (the last block starts at 0x9F494E), with 0xFF fill following from 0x9F94CB.

Build status

table_data/panel_memory_presets.s is a prerequisite of rebuilt_ROMs/kn5000_table_data.llvm.o (Makefile:886), so the whole Panel Memory block assembles from source in the LLVM lane, chunk by chunk, and the demo-preset pointer table is symbolic. The Composer image is built from custom_data/styles/Composer_FactoryMemoryImage.styles by scripts/build/style_events.py and .incbin‘d as one labelled block; the parallel ASL mirror still takes the entire 0x944D78-0x9C404F range as one binclude (archive/asl/table_data/kn5000_table_data.asm:221) so that the blob file stays byte-identical on disk.

Open items on this block:

  • outside the name chunk, the part-record fields that the parameter descriptors name (above), the style number and tempo in 0x48 and the drawbar footages in 0x44-0x46 (+3..+7), the chunks are undecoded at field level. The firmware’s own per-byte validation rules are decoded (above), which constrains every field but does not name it;
  • tags 0x43, 0x47, 0x60 and 0x68 have field shapes but no meaning yet; the readings of 0x72, 0x90, 0x92 and 0x99 are partly inference; and which effects the DSP slots 0x61, 0x65 and 0x66 drive is not settled (analysis/disk-format-probes/README-lsw-nonpart-records.md in kn5000-roms-disasm);
  • the preset-15 0x19/0xC0 outlier is unexplained;
  • the Composer image’s header words, and the misaligned 64-byte pseudo-cell at +0x13C0, are undescribed;
  • of the loader routines, VoiceData_ExtendedParamSetup still carries a misleading name; the other two were renamed on 2026-11-02 (PanelMem_InitAllFromFactory, PanelMem_InitFromFactory).

Provenance

  • Carve + labels: table_data/panel_memory_presets.s and the Composer / demo-table hunks in table_data/kn5000_table_data.s (commit 9510993).
  • Loader routines: disassembled from original_ROMs/kn5000_v10_program.rom at 0xFC81EF, 0xFC7E82, 0xFC7DD8; the default block at 0xEDB478 and the "HK " slot at 0xEDBA1C were read from the same image.
  • Composer copy: v7/maincpu/sequencer/accompaniment_engine.s:22708; the immediate 0x009B4000 occurs exactly once in each of the v7, v9 and v10 program ROMs.
  • Chunk-signature, +13 census, bank/preset names, fill extents and the Composer image survey: recomputed from original_ROMs/kn5000_table_data.rom for this page.