# Memory maps Two sources, kept apart: - **OBSERVED**: the address maps MAME 0.285's running binary builds, printed by `scripts/mame_maps.lua` (`python -I scripts/mame_trace.py --maps`), with the handler names the binary reports. Dumped 2026-11-26 for salmndr2, tbyahhoo, sexyparo, le2 (identical to each other), racinfrc, opengolf (identical to each other), soccerss and rungun2. Raw files: `reference/mame/-maps/maps.txt` (git-ignored). A map is MAME's model, not the board's decode: mirrors, open-bus values, wait states and DTACK timing are not in it. - **DOC**: what the GX300 schematic sheets show ([schematic.md](schematic.md)), which is only the chips' select lines and byte lanes; the address decoder sheet is missing. ## Main CPU (MC68EC020, 24-bit addresses, 32-bit data bus) Base board ("type 2": Salamander 2, Twin Bee Yahhoo!, Sexy Parodius, Lethal Enforcers II and the rest): | Range | Size | What (MAME handler, OBSERVED) | Board fact (DOC) | | --- | --- | --- | --- | | `000000-01FFFF` | 128 KB | ROM: the shared BIOS `300a01.34k` | | | `200000-3FFFFF` | 2 MB | ROM: game program | | | `400000-7FFFFF` | 4 MB | ROM: game data (sets with less leave it partly empty) | | | `C00000-C1FFFF` | 128 KB | work RAM | Racin' Force runs half its instructions from here (OBSERVED, trace) | | `CC0000-CC0003` | | `esc_w`: the ESC protection's trigger | the ESC is a bus master ([protection.md](protection.md)) | | `D00000-D01FFF` | | K056832 tile ROM readback (`k_5bpp_rom_long_r`) | | | `D20000-D23FFF` | 16 KB | sprite RAM through the K055673 (`k053247_word_r/w`) | | | `D40000-D4003F` | | K056832 registers (`word_w`) | | | `D44000-D4400F` | | tile bank (`konamigx_tilebank_w`, a board latch) | | | `D48000-D48007` | | K053246 registers (`k053246_w`) | | | `D4A000-D4A00F` | | sprite ROM readback (`k055673_rom_word_r`) | | | `D4A010-D4A01F` | | K055673 registers | | | `D4C000-D4C01F` | | K053252 CRTC (`read`/`write`) | 8-bit on `DB8-15`, `AB1-4` | | `D4E000-D4E01F` | | written, ignored (`nop`) | | | `D50000-D500FF` | | K055555 registers (`K055555_long_w`) | 8-bit on `DB8-15`, `AB1-6` | | `D52000-D5201F` | | K056800 host side | 8-bit on `DB8-15`, `AB1-4` | | `D56000-D56003` | | `eeprom_w` (93C46 lines and more) | | | `D58000-D58003` | | `control_w` | | | `D5A000-D5A003` | | port `SYSTEM_DSW` | | | `D5C000-D5C003` | | port `INPUTS` | | | `D5E000-D5E003` | | port `SERVICE` | | | `D80000-D8001F` | | K054338 registers (`word_w`) | `CLTCCS` | | `D90000-D97FFF` | 32 KB | palette (`write32`): 8,192 colours | three 8K x 8 SRAMs behind the 054338, own DTACK | | `DA0000-DA3FFF` | 16 KB | K056832 tile RAM, two 8 KB windows | | CPU space: every interrupt level 1-7 is autovectored (OBSERVED, `autovector(1..7)` handlers). Which sources drive which level is not in the map: the CRTC's `CCUINT1`/`CCUINT2` go to the interrupt logic (DOC, off-sheet), plus the sound interface and the ESC (U7). **Type 1** (Racin' Force, Open Golf) adds, instead of `esc_w`: | Range | What (OBSERVED) | | --- | --- | | `DC0000-DC1FFF` | RAM (8 KB; purpose not known, U9) | | `DD0000-DD00FF` | ignored | | `DDA000-DDAFFF` | ADC write port (`ADC-WRPORT`: the ADC0834's serial lines) | | `DDC000-DDCFFF` | ADC read port | | `DDE000-DDE003` | cabinet lamps (`type1_cablamps_w`) | | `E00000-E0001F` | K053936 control registers | | `E20000-E2000F`, `E40000-E40003` | ignored | | `E80000-E81FFF` | K053936 line RAM | | `EC0000-EDFFFF` | the "PSAC" map RAM (`konamigx_t1_psacmap_w`) | | `F00000-F3FFFF`, `F40000-F7FFFF` | ROZ ROM readback (`type1_roz_r1`, `type1_roz_r2`) | | `F80000-F80FFF`, `FC0000-FC00FF` | RAM | **Type 3** (Soccer Superstars) has no `esc_w`; the palette at `D90000` is plain RAM, and it adds the K053936 control (`E00000`) and line RAM (`E60000-E60FFF`), a bank latch (`type3_bank_w`, `E40000`), a 16 KB palette (`E80000-E83FFF`) and a 16 KB second palette (`EA0000-EA3FFF`), and a sync read (`type3_sync_r`, `EC0000`). **Type 4** (Run and Gun 2, Rushing Heroes, Versus Net Soccer) is type 3 with 32 KB palettes (`E80000-E87FFF`, `EA0000-EA7FFF`), a PSAC map RAM at `F00000-F07FFF` (`konamigx_t4_psacmap_w`), and **`type4_prot_w` at `CC0000-CC0007`** in place of `esc_w`. ## Sound CPU (MC68000, 8 MHz) | Range | What (OBSERVED) | Board fact (DOC) | | --- | --- | --- | | `000000-03FFFF` | ROM (256 KB; 128 KB on Salamander 2) | two EP1M EPROMs on the sub board | | `100000-10FFFF` | RAM, 64 KB | | | `200000-2004FF` | the two K054539s (two map entries over one range; how they split it is not in the dump, U10) | "TOP1", "TOP2" | | `300001` | TMS57002 parallel data port (`data_r/w`, low byte) | `D0-7`, `DASPCS` | | `400000-40001F` | K056800 sound side | `MIRACCS`, `SAB0-3` | | `500000-500001` | DASP control and status word (`tms57002_control_word_w`, `tms57002_status_word_r`) | the board's latch driving `PLOAD`, `CLOAD`, `BIO`, `MUTE`, `DSPRESET`, and reading `DREADY`, `EMPTY`, `PC0` (HYPOTHESIS: the bit order is not on the sheets) | | `580000-580001` | written, ignored | | ## TMS57002 (DASP) `program 00-FF` (256 words) and `data 00000-3FFFF` (256 KB) in MAME (OBSERVED). The pin sheet gives program RAM 256 x 24, data RAM 256 x 24 and 32 x 24, coefficient RAM 256 x 32 and a 16 x 32 coefficient buffer on chip; the board adds 256 KB of DRAM as the external delay memory (DOC). See [sound.md](sound.md).