# Memory maps, as MAME 0.285 builds them Every entry is **OBSERVED**: printed by `scripts/mame_maps.lua` from the running binary (`python -I scripts/mame_trace.py ridgerac --maps`, and `timecris`): 164 entries for Ridge Racer, 132 for Time Crisis. It shows where MAME decodes something, not the board's decoders; no schematic or Namco document is in hand. Raw dumps: `reference/mame/-maps/maps.txt`. ## Main CPU | System 22 (`ridgerac`, MC68020, 32-bit addresses) | Super System 22 (`timecris`, MC68EC020, 24-bit) | What MAME maps there | | --- | --- | --- | | $00000000-$001FFFFF | $000000-$3FFFFF | program ROM | | $10000000-$1001FFFF (mirror $08000000) | $E00000-$E3FFFF | work RAM | | $20000000-$2000000F, $20020000-$2002000F | $400000-$40001F, $420000-$42000F | system controller and board registers (delegates) | | $20010000-$20013FFF | $410000-$413FFF | RAM (backup/NVRAM: HYPOTHESIS) | | $40000000-$4000001F | $700000-$70001F | registers (delegates) | | $50000000-$50000003 | $440000-$440003 | DIP switches | | $50000008-$5000000B | $450008-$45000B | registers | | $58000000-$58001FFF | $460000-$463FFF | (delegates) | | $60004000-$6000BFFF | $A04000-$A0BFFF | RAM shared with the MCU (the MCU sees it at $4000-$BFFF as `shareram`) | | $70000000-$7001FFFF | $C00000-$C1FFFF | `polygonram`: the RAM the 68020 and the DSPs share (display lists, point RAM window) | | $90010000-$90017FFF | - | `czram` (depth-cueing tables: HYPOTHESIS from the name) | | $90020000-$90027FFF | $824000-$8243FF | `video_mixer` | | $90028000-$9003FFFF | $828000-$83FFFF | palette RAM | | $90080000-$9009FFFF, $9009E000-$9009FFFF | $880000-$89FFFF, $89E000-$89FFFF | `cgram` (text-layer characters) and `textram` | | $900A0000-$900A000F | $8A0000-$8A000F | text-layer registers | | - | $900000-$90FFFF, $940000-$94007F | `vics_data`, `vics_control` (Super System 22's sprite chip) | | - | $980000-$9AFFFF | `spriteram` | | - | $810000-$8103FF, $860000 | more video registers | ## DSPs (both boards) | DSP | Space | Range | What MAME maps there | | --- | --- | --- | --- | | master | data | $0000-$0005, $0060-$007F, $0200-$03FF | the C25's registers (DOC: C2X Table 3-3) and on-chip RAM B2, B0, B1 | | master | data | $1000-$3FFF | RAM | | master | program and data | $4000-$7FFF | `masterextram` (program reads, data reads and writes) | | master | data | $8000-$FFFF | delegate: the window onto `polygonram` and the point ROM (HYPOTHESIS) | | master | I/O | ports 0-3, 7-15 | handshakes, output to the slave and the renderer (delegates) | | slave | program and data | $8000-$9FFF | `slaveextram` | | slave | data | registers, B0-B2 | on-chip | | slave | I/O | ports 3-6, 8, 11, 12 | input from the master, output toward the renderer (HYPOTHESIS) | The 4K-word mask ROM (the C71 image) sits at program $0000-$0FFF in both (DOC: C2X, the TMS320C25's internal ROM is mapped into the lower 4K words when enabled). ## MCU | MCU | Range | What MAME maps there | | --- | --- | --- | | C74 `mcu` (System 22) | $0000-$007F | the M37702's special-function registers (ports, timers, serial, A-D: DOC UM37702) | | | $0080-$027F | internal RAM (512 bytes, as UM37702's model table gives for the 16 KiB-ROM parts) | | | $2000-$2FFF | the C352's registers (HYPOTHESIS: the sound chip on the MCU's bus) | | | $4000-$BFFF | `shareram`, the window shared with the 68020 | | | $C000-$FFFF | internal ROM (the C74 image) | | | $200000-$27FFFF | external program ROM (`mcu` region) | | C74 `iomcu` (System 22) | SFRs, RAM, $C000-$FFFF internal ROM only | no external program mapped (U8) | | M37710S4 `mcu` (Super 22) | $0080-$087F RAM (2 KiB), $2000-$2FFF, $4000-$BFFF shared, $C000-$FFFF and $200000-$27FFFF the `mcu` ROM, $300000-$308003 I/O | |