← All cores
Namco_NA1_NA2 (kyledlester)
Cites hardware references or measurements that MAME's driver also gives — 1
- rtl/na1/na1_c69.sv:5 MCU address map [MAME-CONFIRMED] (m37702m2_device::map + namcona1_mcu_map): $000000-$00007F SFRs $000800-$000FFF mailbox (slot = addr[3:1]) $000080-$00027F internal RAM $001000-$001FFF C219 (byte offset & $1FF, reg = offset ^ — also in MAME: 32K namco/namcona1.cpp:114
Notes where it differs from MAME — 3
- rtl/na1/na1_mcu_fa_helper.sv:7 This scheduling differs from MAME.
- rtl/na1/na1_renderer.sv:73 M33 GAME FLIP ($EFFF98, the operator FLIP setting; MAME does not implement it).
- rtl/na1/na1_rom_board_io.sv:24 MSM6242 model = MAME's msm6242_device, not a datasheet superset: * time registers S1..W are READ-ONLY (MAME ignores writes to them) and come from MiSTer's RTC (hps_io `RTC`, MSM6242B layout: BCD sec/min/hour/date/ month/year, weekday 0 = Su
Cites MAME source — 154
- NA1.sv:121 M22: F/A has no game DIPs (settings live in EEPROM via its own service menu, [MAME-CONFIRMED] docs/M18_IMPLEMENTATION.md); only the hardware control-panel bit that opens that menu is exposed.
- NA1.sv:393 M18: raw active-low input bytes exactly as the C69 reads them through its P7 multiplexer (MAME namcona1_joy: b7 Start, b6 Button 3, b5 Bomb, b4 Shot, b3 Up, b2 Down, b1 Left, b0 Right; DSW b7 Service 1, b6 service-mode switch, b5..b2 Coin 1
- NA1.sv:411 The line-224 event feeds C69 IRQ1 and the [MAME-CONFIRMED] simulate_mcu $F60 shim (docs/M20B_IMPLEMENTATION.md section 6).
- NA1.sv:439 DSW b5..b2 are Coin 1..4 `[MAME-CONFIRMED]`; M29 wires lanes 3/4 from the third and fourth MiSTer joysticks (previously tied inactive).
- NA1.sv:448 M32: the MCU's IRQ1 and the $F60 shim follow the 68000's IRQ4 to the end of the visible window (frame_event), keeping MAME's MCU/68000 phase.
- NA1.sv:517 Only the CPU's ROM reads pass through it -- blitter sources still read ROM, exactly as MAME's blit() reads m_prgrom.
- NA1.sv:527 CPU ROM read cache: resident program/mask-ROM words complete in the 68000's minimum four-clock bus cycle, as MAME's NA-1 does; SDRAM misses keep the shared path.
- NA1.sv:807 F/A is MAME ROT90; rotate_ccw=0 (matching the published 1942 MiSTer core, also ROT90) was the initial guess and is now [HW-CONFIRMED] correct (owner, DE10-Nano, 2026-09-21): rotating with rotate_ccw=0 produces the intended portrait presenta
- NA1.sv:880 M20A: Namco C219 PCM engine [MAME-CONFIRMED contract] at MAME's 44.1 kHz cadence [IMPLEMENTATION; physical rate UNKNOWN], reading its samples from the shared work RAM in SDRAM.
- rtl/na1/na1.sv:1 Machine boundary: FX68K plus replaceable MAME-compatible interrupt timing.
- rtl/na1/na1_audio_tick.sv:3 Default 44,100 Hz = MAME's C219 clock; the physical NA-1 rate is [UNKNOWN].
- rtl/na1/na1_blitter.sv:1 M13 MAME-compatible sequential u16 copy.
- rtl/na1/na1_blitter.sv:6 That is not what the hardware does, and it is not what MAME models: `transfer_dword()` logs "bad blt src/dest" and returns -1, and `blit()` then simply `return`s -- the transfer is ABANDONED and the 68000 carries on.
- rtl/na1/na1_blitter.sv:12 Super World Court does exactly this: 24 times in a 31-second MAME run it issues a blit with source base $000000 and a NON-zero length (e.g. bank=$0003 src1=$00F1 n=$0080 from PC $C007B4).
- rtl/na1/na1_blitter.sv:14 MAME abandons those; we hung.
- rtl/na1/na1_blitter.sv:21 MAME's default arms compute `(64 - (format >> n)) << k`, which is <= 0 for large formats; its loop then advances a row per word, because `offset(2) >= bytes_per_row` is immediately true.
- rtl/na1/na1_blitter.sv:38 Sticky for the duration of one request: this blit hit an address MAME would have logged as bad and abandoned.
- rtl/na1/na1_blitter.sv:59 MAME: (64 - (format>>2)) << 3.
- rtl/na1/na1_blitter.sv:69 MAME: (64 - (format>>5)) << 6, with the same <= 0 degeneracy.
- rtl/na1/na1_blitter.sv:98 M29.1: ACK on completion whether or not the blit was abandoned, exactly as MAME's blit() returns to the CPU either way.
- rtl/na1/na1_blitter.sv:118 MAME "bad blt src": abandon the transfer, complete the request.
- rtl/na1/na1_blitter.sv:122 MAME "bad blit dest": abandon the transfer, complete the request.
- rtl/na1/na1_board_presentation.sv:10 The NA-1 raster is the same on every board; what differs is how the monitor is mounted in the cabinet, which is exactly what MAME records as ROT90 vs ROT0.
- rtl/na1/na1_board_presentation.sv:34 The emulated port-bit semantics are untouched: the quiz panel drives exactly the bits MAME's namcona1_quiz declares.
- rtl/na1/na1_board_presentation.sv:88 Quiz panel (Bakuretsu): MAME's :P1 declares Button 1..4 on bits 3..0 and Start on bit 7, with bits 6..4 unconnected.
- rtl/na1/na1_board_presentation.sv:89 `[MAME-CONFIRMED]` port dump.
- rtl/na1/na1_c219.sv:3 Behavioural contract [MAME-CONFIRMED] = MAME 0.289 src/devices/sound/c140.cpp (c219_device).
- rtl/na1/na1_c219.sv:4 Everything not marked otherwise reproduces that model exactly; physical C219 behaviour is [UNKNOWN] beyond what MAME encodes.
- rtl/na1/na1_c219.sv:18 Byte addresses outside $00000-$7FFFF read as 0 (MAME's unmapped sample space).
- rtl/na1/na1_c219.sv:21 Cadence: sample_tick (44.1 kHz [IMPLEMENTATION], MAME's C219 clock; physical rate [UNKNOWN]) starts one output sample: voices 0..15 are processed in order (sample-major; MAME renders voice-major per stream chunk — identical except for the s
- rtl/na1/na1_c219.sv:28 Output routing [MAME-CONFIRMED]: the mix scaled by register +0 (MAME's "volume_right") drives the LEFT speaker and +1 ("volume_left") the RIGHT (namcona1.cpp add_route(0 -> speaker 1, 1 -> speaker 0)); MAME's stream clamp (mix/4096) equals
- rtl/na1/na1_c219.sv:57 Mirror-adjusted write offset: odd $1F8+ writes land 8 lower [MAME-CONFIRMED].
- rtl/na1/na1_c219.sv:72 16-bit wrapping mixers [MAME-CONFIRMED s16 buffers]
- rtl/na1/na1_c219.sv:80 ---------------------------------------------------------------- tables Volume scaling (vol*32)/24 [MAME-CONFIRMED]; 0..340 fits 9 bits.
- rtl/na1/na1_c219.sv:89 mu-law decode = MAME pcmtbl[i] >> 5 [MAME-CONFIRMED]: cumulative step table (steps 1/2/4/8/16 over 0-15/16-23/24-47/48-99/100-127); the negative half (~pcmtbl[i-128] & $FFE0) >> 5 equals -j-1.
- rtl/na1/na1_c219.sv:236 byte address = group*$20000 + bank<<16 + start + pos [MAME-CONFIRMED find_sample]
- rtl/na1/na1_c69.sv:5 MCU address map [MAME-CONFIRMED] (m37702m2_device::map + namcona1_mcu_map): $000000-$00007F SFRs $000800-$000FFF mailbox (slot = addr[3:1]) $000080-$00027F internal RAM $001000-$001FFF C219 (byte offset & $1FF, reg = offset ^
- rtl/na1/na1_c69.sv:15 A 16-bit MCU access to the C219 becomes two 8-bit register accesses, lane 0 first, as MAME's memory system splits it onto c219_le_w.
- rtl/na1/na1_c69.sv:17 Board glue [MAME-CONFIRMED] namcona1.cpp: P4 bit 3 rising edge releases the 68000 (maincpu_release pulse); P5 reads back its written bits with bit 0 := bit 1; P6 input 0; P7 = {P4, DSW, P1, P2}[P6[7:5]] while P6 bit 7 = 0 else $FF; P8 reads
- rtl/na1/na1_c69.sv:79 [IMPLEMENTATION] MAME's RAM is zero-initialised; the physical power-up contents are [UNKNOWN].
- rtl/na1/na1_c69.sv:113 `[MAME-CONFIRMED]` namcona1.cpp wires an<N>_cb to portana_r<Bit>, which returns $FFFF when the P3 bit is SET (not pressed) and $0000 when it is clear (pressed): channel 0->bit 6, 1->bit 5, 2->bit 4, 3->bit 0, channel 4->bit 1, 5->bit 2, 6->
- rtl/na1/na1_c69.sv:128 MAME driver state written by the port callbacks (data & dir)
- rtl/na1/na1_c69_input_service.sv:6 Evidence (docs/M18_IMPLEMENTATION.md): MAME 0.289 executing the real C69 firmware with F/A, Lua memory/port taps and input injection, plus ablation.
- rtl/na1/na1_c69_input_service.sv:8 [MAME-CONFIRMED] Once per ~16.7 ms the firmware rewrites, in 68000 view: $FC0.hi <- $80 (update-in-progress flag) ...
- rtl/na1/na1_c69_sfr.sv:6 Behavioural contract [MAME-CONFIRMED] = MAME 0.289 m37710.cpp (m37702m2_device::map, port_r/w, get_port_reg/set_port_reg, count_start_w, m37710_recalc_timer, m37710_timer_cb, ad_control_w, ad_timer_cb, uart*_w, set_int_control, m37710_set_i
- rtl/na1/na1_c69_sfr.sv:10 Reproduced MAME properties that differ from the datasheet (deliberately, see docs/M20B_IMPLEMENTATION.md sections 2-3): a started timer never stops; timer registers read back the written reload value; interrupt-control bit 3 is a register i
- rtl/na1/na1_c69_sfr.sv:17 Timing [IMPLEMENTATION]: MAME schedules timer/A-D starts at the time of the register write, which is the end of the writing instruction's cycle budget; the core signals that boundary with instr_commit and the starts are applied there.
- rtl/na1/na1_c69_sfr.sv:20 Periods count ce_mcu ticks (MAME clocks_to_attotime in input clocks).
- rtl/na1/na1_c69_sfr.sv:21 MAME_EARLY=1 reproduces a MAME arithmetic artefact [MAME-CONFIRMED by the f140 trace, docs/M20B_IMPLEMENTATION.md section 7]: 2*floor(1e18/12528250) as is one attosecond less than floor(1e18/6264125), so every expiry lands just below a CPU-
- rtl/na1/na1_c69_sfr.sv:36 ports: inputs as the board drives them (MAME p*_in_cb; unbound ports read $FF)
- rtl/na1/na1_c69_sfr.sv:40 A-D inputs (MAME analog callbacks)
- rtl/na1/na1_c69_sfr.sv:52 MAME line numbers
- rtl/na1/na1_c69_sfr.sv:63 timers: MAME timer objects
- rtl/na1/na1_c69_sfr.sv:75 ------------------------------------------------------------ helpers port index for byte address $02-$14 (MAME port_r<0>/<1> layout), -1 = none
- rtl/na1/na1_c69_sfr.sv:100 MAME get_port_reg
- rtl/na1/na1_c69_sfr.sv:104 byte read of the SFR space (MAME handlers; unmapped -> 0)
- rtl/na1/na1_c69_sfr.sv:128 one byte write (side effects handled by the caller where MAME has them)
- rtl/na1/na1_c69_sfr.sv:158 MAME timer period: tscales[mode>>6] * (reg + 1) = (reg + 1) << {1,4,6,9}; 0 = no timer
- rtl/na1/na1_c69_sfr.sv:163 not timer mode: no MAME timer
- rtl/na1/na1_c69_sfr.sv:178 ------------------------------------------------------------ interrupt resolver (m37710i_update_irqs) MAME scans the lines from 19 down to 0 and takes each one whose priority is strictly above both the CPU's ipl and the best seen so far: th
- rtl/na1/na1_c69_sfr.sv:236 ---- instruction boundary: apply MAME's time-of-write side effects
- rtl/na1/na1_c69_sfr.sv:246 ---- timers and A-D on the MAME clock
- rtl/na1/na1_c69_startup.sv:6 [MAME-CONFIRMED] (docs/FA_HARDWARE_SPEC.md, "C69 BIOS") machine reset holds the 68000; the BIOS stores the immediate vector words so that 68000-visible $000000-$000007 read 0000 0400 00C0 0000 (SSP $00000400, PC $00C00000), then writes $0C
- rtl/na1/na1_config.sv:15 byte 0 KEYCUS_MODE (0 = no KEYCUS fitted, 1 = ID + changing value) byte 1 KEYCUS_ID low byte 2 KEYCUS_ID high byte 3 KEYCUS_ID_OFFSET in [2:0]; [7:3] must be written 0 (ignored here) byte 4 VIDEO_BASE_FLIP [0] 1 = the board'
- rtl/na1/na1_eeprom.sv:1 M6: MAME-compatible NA-1 lower-lane EEPROM transport, $E00000-$E00FFF.
- rtl/na1/na1_eeprom.sv:61 The unconnected upper lane is zero in MAME's NA-1 map.
- rtl/na1/na1_eeprom_storage.sv:23 That is a genuine hardware mismatch, not a simulation convenience, and it is exactly the state MAME's driver warns about for several NA-1 titles: "when their EEPROM area is uninitialized, the game software automatically writes these values
- rtl/na1/na1_gfx.sv:52 MAME's stored-window zero read / ignored write.
- rtl/na1/na1_interrupts.sv:5 VBLANK_AT_LINE224=1 is MAME's placement (IRQ4 on the line-224 event), kept for the M11 unit benches.
- rtl/na1/na1_interrupts.sv:7 MAME can place it at 224 only because it draws each frame after the fact; every game does its per-frame sprite/scroll/VRAM/register work in this handler, and a line-by-line renderer (like the real board) would show lines 225-255 half- updat
- rtl/na1/na1_interrupts.sv:11 [INFERRED] from the games themselves: Emeraldia's posirq split (IRQ4 sets the upper configuration, IRQ3 at line 240 the lower one) only renders MAME's image if IRQ4 precedes the visible window.
- rtl/na1/na1_keycus.sv:10 cfg_mode semantics (docs/M28A1_VIDEO_COMPAT.md section 7.2): 8'h00 no KEYCUS fitted -- every read returns 0 (MAME: default 0) 8'h01 constant ID at cfg_id_offset, changing value at every other offset 8'h02 constant ID at cfg_id_off
- rtl/na1/na1_keycus.sv:15 `[MAME-CONFIRMED]` custom_key_r NAMCO_TINKLPIT: offset cfg_id_offset (=7) -> cfg_id offset 4 -> resets the 32-bit state to 0, and still answers with the changing value offset 3 -> bitswap<16>(state, 22,26,31,23,1
- rtl/na1/na1_keycus.sv:32 That is an [IMPLEMENTATION] compatibility profile -- MAME returns host randomness and the physical generator of every C3xx part remains [UNKNOWN].
- rtl/na1/na1_keycus.sv:54 MAME leaves m_keyval uninitialised; `[MAME-CONFIRMED]` Tinkle Pit reads offset 4 first, which forces it to 0, so the cold value is unobservable in practice.
- rtl/na1/na1_keycus.sv:87 The changing value advances on EVERY committed read, including ID reads, exactly as MAME advances m_count at the top of custom_key_r before dispatching.
- rtl/na1/na1_keycus.sv:103 Writes (including partial lanes/nonzero data) deliberately have no effect -- MAME's custom_key_w is empty for every NA-1/NA-2 game [MAME-CONFIRMED].
- rtl/na1/na1_m37702.sv:3 Behavioural contract [MAME-CONFIRMED] = MAME 0.289 src/devices/cpu/m37710/ (m37710op.h opcode macros, m37710il.h EA/stack helpers, m37710.cpp interrupt entry / reset).
- rtl/na1/na1_m37702.sv:5 No physical M37702 behaviour has been measured; where MAME is known to deviate from the datasheet (see docs/M20B_IMPLEMENTATION.md section 2) the MAME behaviour is reproduced deliberately, because the F/A BIOS is proven to run on it and the
- rtl/na1/na1_m37702.sv:10 Microarchitecture [IMPLEMENTATION]: microsequenced 16-bit core on clk_sys, single little-endian 16-bit bus (byte lanes; a 16-bit access at an odd address is two byte accesses in address order), data accesses issued in MAME's order (push hig
- rtl/na1/na1_m37702.sv:14 Every instruction is padded to MAME's CLK cycle count in ce_mcu ticks (static part from na1_m37702_decode, dynamic extras added here) so timers/interrupts stay lock-step with MAME; bus wait states add on top.
- rtl/na1/na1_m37702.sv:17 MAME's M37710 executes one CPU cycle per two input clocks (execute_clocks_to_cycles), while timer/A-D periods count input clocks; the core therefore spends one cycle per two ce_mcu ticks and the SFR block counts every tick.
- rtl/na1/na1_m37702.sv:26 instr_commit pulses at each instruction boundary (before the interrupt decision): SFR side effects that MAME time-stamps at the end of the writing instruction (timer / A-D starts) are applied there.
- rtl/na1/na1_m37702.sv:33 MCU input clock tick (12.528 MHz); one MAME CPU cycle = 2 ticks
- rtl/na1/na1_m37702.sv:45 MAME cycles elapsed since reset (2 ce_mcu ticks each)
- rtl/na1/na1_m37702.sv:56 MAME index-register view: only the low byte participates when X=1.
- rtl/na1/na1_m37702.sv:119 ------------------------------------------------------------ ALU (MAME OP_* semantics) Decimal ADC/SBC low byte (MAME's nibble rule: correct the low nibble of the 8-bit sum when > 9, then the high nibble of the corrected value when > 9), co
- rtl/na1/na1_m37702.sv:172 MAME VFLAG_ADD_16(SRC, REG_A, FLAG_C) with FLAG_C holding only the high-byte partial sum: bit 15 of (src^bh)&(acc^bh) = src[15]&acc[15]
- rtl/na1/na1_m37702.sv:224 branch condition (MAME COND_*; fz=1 means zero)
- rtl/na1/na1_m37702.sv:229 MAME's page-cross test for AX, AY and DIY: (base ^ (base + X)) & 0xff00
- rtl/na1/na1_m37702.sv:295 MAME tests the page with X
- rtl/na1/na1_m37702.sv:370 TXA/TYA (TXB/TYB): source is MAME's index view (8-bit value when X=1)
- rtl/na1/na1_m37702.sv:415 MAME stores N as 0/1 and tests it with &0x80: always clear
- rtl/na1/na1_m37702.sv:615 MAME: V = C = quotient (or remainder) does not fit; N cleared when no overflow
- rtl/na1/na1_m37702.sv:667 MAME: the CPU sleeps until an interrupt is actually taken
- rtl/na1/na1_m37702_decode.sv:1 GENERATED by scripts/m20b-decode.py from the MAME 0.289 m37710op.h opcode tables (TABLE_OPCODES / $42 B-accumulator prefix / $89 MPY-DIV prefix) and CLK_* accounting.
- rtl/na1/na1_m3_transport.sv:58 MAME tests full offset==4, not mirrored slot index==4.
- rtl/na1/na1_mcu_fa_helper.sv:2 [MAME-CONFIRMED] simulate_mcu clears the whole CPU-visible F60 word at scanline 224.
- rtl/na1/na1_mcu_interface.sv:19 The only non-firmware write on the MCU port in this mode is the explicit $F60 compatibility shim: [MAME-CONFIRMED] namcona1's scanline_interrupt() at line 224 asserts MCU IRQ1 and then simulate_mcu() stores 0 into 68000 word $F60 (the "MCU
- rtl/na1/na1_mcu_interface.sv:132 M30 version-info shim ([MAME-COMPAT], not a hardware claim).
- rtl/na1/na1_mcu_interface.sv:132 Every NA-1/NA-2 game posts its MCU commands in shared byte $F72 (bit 7 = pending) and rings the slot-4 doorbell; [MAME-CONFIRMED] the BIOS IRQ0 handler only runs its $F72 dispatcher when mailbox slot 2 bits 7:6 are set, which no 68000 code
- rtl/na1/na1_mcu_interface.sv:137 Knuckle Heads and Numan Athletics additionally issue command 7 and then require the BIOS header ("NSA-BIOS ver1.31") at shared $1000-$100F; MAME papers over this with write_version_info() on a doorbell while $F72's high byte is 7.
- rtl/na1/na1_mcu_interface.sv:145 Measured inert for every other target: F/A, Bakuretsu, Exvania, Super World Court, Tinkle Pit and X-Day 2 never ring the doorbell with $F72 = 7; Emeraldia does once, and injecting the header there is byte-for-byte harmless in MAME (identica
- rtl/na1/na1_renderer.sv:1 M15B/M19 production F/A renderer: normal 8-bpp tile layers 0..3 and the M19 sprite subset, with MAME's executed NA-1 semantics (docs/M14_RESEARCH.md, docs/M19_IMPLEMENTATION.md), rendered one line ahead of the M15A MAME_COMPAT beam into a d
- rtl/na1/na1_renderer.sv:8 replay the per-layer scroll commands of lines 0..L from the current scroll RAM (MAME re-evaluates the whole command list at every partial update; evaluating at raster time from line 0 reproduces that for any store state and needs no write s
- rtl/na1/na1_renderer.sv:16 MAME fills its whole bitmap with the backdrop pen, which shows as a coloured border (F/A maroon, Exvania light blue; windows x 9..294 / 8..294).
- rtl/na1/na1_renderer.sv:20 Inside the window the backdrop still shows, also with $EFFF8E = 0, as in MAME; 4.
- rtl/na1/na1_renderer.sv:22 if $EFFF8E != 0 and the window is valid, draw layers in MAME order (priority 0..7, and layer 3 down to 0 inside one priority; a later layer overwrites and records its priority in the priority map): for each 8-pixel tile row the walker reads
- rtl/na1/na1_renderer.sv:30 M19 sprite pass (MAME draw_sprites/pdraw_tile): scan the 256 entries of the bank selected by $EFFF22[0] in index order; for every entry whose 1..8 tile rows cover line L, every visible 1..4 tile column is fetched like a layer row (tile = co
- rtl/na1/na1_renderer.sv:39 The output side reads the line buffer on pixel_ce, looks the 12-bit index up in palette port B, expands RGB555 to RGB888 and darkens shadowed pixels by MAME's 0.6 shadow factor ((c*615)>>10 is exact for RGB555 expansions), three clocks behi
- rtl/na1/na1_renderer.sv:44 M29 completes the MAME screen_update feature set, generically (no game identity anywhere -- every one of these is selected by NA-1 register state the software writes): * 4-BPP NORMAL TILE LAYERS ($EFFFBC bits 0..3, and bit 4 for ROZ).
- rtl/na1/na1_renderer.sv:54 A shadow-flagged sprite whose colour is NOT the special pen is drawn through MAME's second palette interpretation of the same RAM word (RRRGGGBB | RRRGGGBB averaged 1:2), not through RGB555.
- rtl/na1/na1_renderer.sv:59 Drawn per pixel with MAME's 16.16 incxx/incxy/incyx/incyy transform and draw_roz_core's cliprect pre-advance, clipped to the 512x512 map (wraparound is off), first within its priority.
- rtl/na1/na1_renderer.sv:63 A normal layer whose x-scroll word for the line is exactly $C001 is not drawn from its tilemap on that line: MAME draw_pixel_line (namcona1_v.cpp) takes 152 video-RAM words starting at word ydata+25 (ydata = the layer's line-select word for
- rtl/na1/na1_renderer.sv:71 MAME itself calls the $C001 trigger a simplification; this reproduces MAME exactly.
- rtl/na1/na1_renderer.sv:90 Games rewrite the register block in their IRQ handlers with longword stores that straddle register pairs, so for ~1-2 us a register can hold a transient half-written value ([MAME-CONFIRMED] Exvania's IRQ4 handler at line 225: $EFFF82 = 0000
- rtl/na1/na1_renderer.sv:93 MAME only samples the registers at its screen-update points, never mid-burst; a SNAP that caught the transient invalidated the window for one whole line and drew it as fill (the hardware-observed Exvania blue line).
- rtl/na1/na1_renderer.sv:131 MAME priority $FF: above every sprite
- rtl/na1/na1_renderer.sv:164 CRTC window programmed and non-empty (MAME screen_enabled)
- rtl/na1/na1_renderer.sv:175 [11:0] is the palette index as before; [12] selects MAME's alternate "+$1000" palette interpretation for that pixel.
- rtl/na1/na1_renderer.sv:203 M30: 4 bits so the direct-pixel line's MAME priority $FF (PMAP_TOP) can outrank every sprite priority 0..7; every other writer zero-extends.
- rtl/na1/na1_renderer.sv:215 MAME's alternate palette pens ($1000..$1FFF) reinterpret the SAME RAM word as two RRRGGGBB bytes and average them 1:2, scaling to 0..255: r = ((w>>5 & 7) + 2*(w>>13 & 7)) * 255 / 21 (g likewise from bits 4..2) b = ((w & 3) + 2*(w>>8 &
- rtl/na1/na1_renderer.sv:270 Anything that could make that differ falls back to the full replay: * a scroll RAM write to a line <= target since the last full replay (the full replay would re-read it; MAME re-evaluates from line 0); * a change of the ROZ context (rc0..r
- rtl/na1/na1_renderer.sv:296 MAME draw order iteration (4 = ROZ)
- rtl/na1/na1_renderer.sv:318 MAME palbase: 4-bpp = {colour[7:4], colour[11:8]} (8 bits, x16 entries), 8-bpp = colour[7:4] (x256).
- rtl/na1/na1_renderer.sv:380 One composition rule for both depths (MAME tile_pixel: the 4-bpp planes are bit offsets 4..7, i.e. the low nibble of the same byte).
- rtl/na1/na1_renderer.sv:389 ---- ROZ layer 4 ----------------------------------------------------------- MAME draw_roz_core with wraparound off.
- rtl/na1/na1_renderer.sv:471 CRTC blank: outside the display window (or with no window programmed) the board outputs black, not the backdrop pen MAME fills its whole bitmap with.
- rtl/na1/na1_renderer.sv:529 Scroll command replay, MAME order: lines 0..target ascending, layers 0..3, X then Y. One read per cycle; data is applied one cycle later.
- rtl/na1/na1_renderer.sv:532 ROZ line start: seeded on the fourth replay cycle of line 0 (the pipelined z_basex/z_basey above are valid from there) and advanced by incyx/incyy once per replayed line, so it lands on exactly MAME's startx/starty for `target` with no per-
- rtl/na1/na1_renderer.sv:562 MAME draw order: priority 0..7, and within one priority ROZ(4) first, then layers 3..0 (a later draw overwrites and owns the priority map).
- rtl/na1/na1_renderer.sv:627 M30: the target line's own words decide direct-pixel mode (MAME tests xdata == $C001 on the line being drawn, after applying its scroll).
- rtl/na1/na1_renderer.sv:633 We previously implemented only the load half (inherited from MAME's namcona1_v.cpp:491-495, which implements accumulate for X but not for Y), so F/A's service-menu FLIP rendered as corruption: with FLIP on the table is 42ff followed by 255
- rtl/na1/na1_rom_board_io.sv:5 X-Day 2's M112 ROM board is the one known instance ([MAME-CONFIRMED] namcona1.cpp xday2_main_map, 0.289 / master):
- rtl/na1/na1_rom_board_io.sv:8 $D00000, $D40000 lamp/flash writes -> nopw in MAME.
- rtl/na1/na1_rom_board_io.sv:20 Every other address in $C00000-$DFFFFF stays program ROM, exactly as MAME's base map declares, and blitter reads never see this module (MAME's blitter reads m_prgrom directly).
- rtl/na1/na1_rom_board_io.sv:30 [IMPLEMENTATION] * hours follow CF bit 2 (1 = 24-hour); in 12-hour mode MAME returns 1..12 with PM in H10 bit 2.
- rtl/na1/na1_rom_board_io.sv:33 * W returns the weekday 0..6 (MAME day_of_week - 1, Sunday = 0).
- rtl/na1/na1_rom_board_io.sv:34 * CD = (data & 9) on write, BUSY/IRQ-flag read 0 (the IRQ output is not connected on this board and X-Day 2 never unmasks it); CE = data & $F; CF follows MAME's RESET 1->0 rule for the 24/12 bit.
- rtl/na1/na1_rom_board_io.sv:36 Power-on/reset values CD=0, CE=6, CF=4 as MAME's device_start.
- rtl/na1/na1_rom_board_io.sv:97 ---- read side -------------------------------------------------------------------- 12-hour conversion exactly as MAME (hour from the BCD register).
- rtl/na1/na1_rom_cache.sv:4 Why: MAME's NA-1 68000 completes every ROM/work-RAM bus cycle in the minimum four clocks.
- rtl/na1/na1_rom_sdram_bridge.sv:4 M29: the mask-ROM backing grew from 4 MiB to the FULL 8 MiB the 68000 window and MAME's own `maskrom` ROM_REGION16_BE declare, because Tinkle Pit really reads past 4 MiB (M28A.1: 252,836 accesses at or above +$400000, max $600A3E).
- rtl/na1/na1_rom_sdram_bridge.sv:7 The old `populated` clamp -- which answered $0000 for rom_word_addr[21] -- is therefore gone: every mask word is now backed by SDRAM and the MRA guarantees its contents, padding the unpopulated tail with 00 exactly as MAME's region does.
- rtl/na1/na1_scanline_events.sv:1 Replaceable MAME compatibility timebase: 256 lines/frame at 60 Hz.
- rtl/na1/na1_sdram_memory.sv:4 M29 widened the mask-ROM backing from 4 MiB to the full 8 MiB of the 68000 window and MAME's `maskrom` region, and relocated the writable regions above it (docs/M28A_RESEARCH.md section 3.2): $000000-$0FFFFF program ROM (bytes $000000-$1
- rtl/na1/na1_video_registers.sv:49 M29.4 [HW-CONFIRMED]: system reset is the game's power-on, so IRQ delivery stays off until its first $EFFF1A write (MAME: enable flag 0 until that write).
- rtl/na1/na1_video_timing.sv:8 This is MAME's logical screen and is unchanged from M15A: the renderer and na1_interrupts consume only this contract.
- README.md:22 Put the MAME ROM zips (MAME 0.289 sets) in **`/media/fat/games/mame/`**.
- README.md:32 | Game | MAME set | Year | Genre | Board | Status |
- README.md:50 | Game | MAME set | Year | Parent game | Status |
- README.md:99 Black borders outside the game's display window, as on the arcade board (MAME fills them with the background colour, e.g. F/A's maroon and Exvania's light-blue
- README.md:102 The game's own service-menu FLIP setting works (a true 180° rotation), which does not work in MAME.
- README.md:111 MAME's `namcona1` driver (0.289) is the behavioural reference.
Says it matches, follows or was checked against MAME — 4
- rtl/na1/na1_blitter.sv:17 Two changes, both making us match MAME exactly: 1.
- rtl/na1/na1_board_presentation.sv:28 The NA-1 port BITS are identical for every game (`[MAME-CONFIRMED]`: namcona1_joy and namcona1_quiz differ only in labels), but the CABINET differs -- a joystick panel versus a four-button quiz panel -- and MiSTer maps its own joystick bits
- rtl/na1/na1_board_presentation.sv:37 Every NA-1 board wires four identical 8-bit player ports (`[MAME-CONFIRMED]`: :P1/:P2/:P3/:P4 all declare Right/Left/Down/Up + Button 1..3 + Start on the same bits), so the panel mapping below is applied to all four identically and P3/P4 ne
- rtl/na1/na1_eeprom_storage.sv:20 Verified against MAME this session: a blank NA-1 EEPROM reads FF for all 2048 bytes.
Keeps a MAME approximation — 1
Shares text with the MAME driver without saying so — 2