← All cores
Arcade-NMK16_Raphero
Cites hardware documentation that MAME's driver does not — 2
- rtl/nmk_irq/nmk_irq.sv:29 Verified via a live MAME debugger capture (breakpoints at mustang's own IRQ1-4 ISR entry addresses, resolved from the ROM's own autovector table, printing the debugger's `beamy` pseudo-symbol) against mustang's real, dumped V-PROM (`10.bpr`
- README.md:77 | `NMK16_Afega` | The Afega derivative boards: 12 MHz 68000 with address-scrambled program ROMs decoded per fetch, Z80 + YM2151 + OKI or twin-OKI sound, an 8bpp
Cites hardware references or measurements that MAME's driver also gives — 1
Notes where it differs from MAME — 3
- rtl/tlcs90/nmk004_periph.sv:41 - Watchdog (WDMOD/WDCR), serial (SCMOD/SCCR/SCBUF — not even mapped for this specific TLCS-90 variant in the reference), ADC (ADREG/ADMOD), stepping-motor mode (SMMOD's *functional* effect, though the register itself is stored and read back
- rtl/tlcs90/tlcs90.sv:43 Still deferred: the TSET/LDA dead opcode space MAME's own reference model can't execute either — this is the CPU core's entire real opcode table, complete.
- README.md:100 | `tdragonb2` | *"runs too quickly, Oki sounds terrible (IRQ problems?)"* | Not attempted — it would mean diverging from MAME's own known-broken timing. |
Cites MAME source — 107
- NMK16_Raphero.sv:1 NMK16 MiSTerFPGA project — real hardware top-level for the "Raphero" RBF: Rapid Hero / Arcadia (arcadian, raphero, rapheroa — one machine config, nmk16.cpp raphero()).
- NMK16_Raphero.sv:3 Cloned from NMK16_Macross2.sv: the same framework wiring (hps_io, SDRAM, video sync, MAME-style keyboard, P1/P2 autofire, framebuffer rotation, .mra DIP capture) around rtl/raphero/raphero_core.sv instead of tdragon2_core.sv, without the ga
- NMK16_Raphero.sv:60 A vertical (MAME ROT270) game drawn on its side by the board; the two "Vert" choices both present it upright through the framebuffer, as MAME does — "Vert 270" (the MAME-correct rotate_ccw direction) and "Vert 90" (the opposite quarter-turn
- NMK16_Raphero.sv:269 Player inputs — INPUT_PORTS_START(raphero) is laid out exactly as tdragon2's (nmk16.cpp), so this is NMK16_Macross2.sv's own derivation: IN0: bit0=COIN1 bit1=COIN2 bit2=SERVICE1 bit3=START1 bit4=START2 IN1: bit0=P1_RIGHT bit1=P1_LEFT bit2=P
- NMK16_Raphero.sv:278 Keyboard: MAME's default key bindings, always active, ORed with the joysticks.
- NMK16_Raphero.sv:281 P1: Up/Down/Left/Right arrows, B1 LCtrl, B2 LAlt, B3 Space, Start 1 P2: R/F/D/G, B1 A, B2 S, B3 Q, Start 2 Coin 1 = 5, Coin 2 = 6, Service (IPT_SERVICE1) = 9 Test / Service Mode = F2: a TOGGLE, as in MAME, flipping DSW1 SW1:8 (PORT_SERVICE_
- NMK16_Raphero.sv:385 F2 toggles it like MAME's Service Mode key, on top of whatever the OSD DIP setting is.
- NMK16_Raphero.sv:534 Cheats (rtl/cheats.sv) — Pugsy's MAME cheat database, seven fixed slots with this game's addresses supplied by the .mra as <rom index="5">.
- NMK16_Raphero.sv:763 ROT270 in MAME: the board's image is turned counter-clockwise to stand upright, which is screen_rotate's rotate_ccw=1 case ("Vert 270"); "Vert 90" is rotate_ccw=0, the opposite quarter-turn, for cabinets whose vertical monitor is mounted th
- rtl/bjtwin/video_timing.sv:7 Reset-time raster phase: `vcount` resets to `VACTIVE_END` (240, the first scanline of vblank), not 0 — confirmed directly against real MAME's own screen device (Family D bring-up investigation, tdragon1): `screen.vpos()` at machine time 0 s
- rtl/bjtwin/video_timing.sv:11 Measured two independent ways that agree: (1) a MAME Lua memory-read tap on the protection MCU's own P5 register (`screen.vpos()>>2`, the *exact* value real game code observes) showed vpos in [44,47] at real time 5.260ms after machine start
- rtl/bjtwin/video_timing.sv:41 MAME's manybloc_scanline fires off screen vpos, and vpos 0/248 line up with vcount 0/248 exactly under this window.
- rtl/cheats.sv:1 Cheat engine — applies Pugsy MAME-database pokes to work RAM once a frame.
- rtl/cheats.sv:23 Poke semantics follow MAME's "run" state: the value is written every frame for as long as the cheat is enabled, which is what makes "infinite" cheats hold against the game decrementing the counter.
- rtl/macross2/video_macross2.sv:2 Confirmed directly from the reference: `VIDEO_START_MEMBER(nmk16_state,macross2)` (nmk16_v.cpp:150-162) creates a `common_get_bg_tile_info<0,1>`-driven, `tilemap_scan_pages`-mapped, 256x32-tile (16x16 px) BG tilemap — the SAME BG geometry `
- rtl/macross2/video_macross2.sv:16 **No NMK214 descrambling** — macross2 has no protection MCU at all (`init_banked_audiocpu` only, nmk16.cpp:10736); bgtile/sprites ROM data is read directly, unlike video_macross.sv's own two live nmk214 instances.
- rtl/macross2/video_macross2.sv:20 **5-bit sprite colour, not 4** — `macross2()`'s own machine config uses `get_colour_5bit` (nmk16.cpp:5457, `colour &= 0x1f`), not `get_colour_4bit` every single prior port in this project has used.
- rtl/macross2/video_macross2.sv:23 `gfx_macross2`'s own GFXDECODE_START (nmk16.cpp:4194-4198) confirms the palette layout this requires: sprites at colour base `0x100` with **32** colours (`0x100-0x2FF`, matching the 5-bit index exactly), NOT `0x200` like macross's/gunnail's
- rtl/macross2/video_macross2.sv:34 Per-scanline raster scroll: macross2/tdragon2 (RASTER_SCROLL=0) have a single `scroll_w<0>` register (nmk16.cpp:1094) — `bg_xscroll`/ `bg_yscroll` below are frame-constant register inputs.
- rtl/macross2/video_macross2.sv:36 raphero (RASTER_SCROLL=1, VIDEO_START gunnail) instead has the two 256-word tables gunnail_scrollram/scrollramy, applied per bitmap line by nmk16_v.cpp bg_update(): for bitmap line y (16..239, i == y1 there), yscroll = scrollramy[0] + scrol
- rtl/macross2/video_macross2.sv:76 Sizes the sim array and the tile-code wrap (MAME draws code % elements, elements = bytes/128); the powerins mode's 16-bit code never wraps.
- rtl/macross2/video_macross2.sv:86 NMK214=1: BG bytes and sprite words pass through the two NMK214 descramblers (nmk16.cpp base_nmk214_215), configured by the protection MCU through nmk214_cfg_we/data.
- rtl/macross2/video_macross2.sv:148 HW_ROMS=1: 1 = the sprite region streams in ROM_LOAD16_WORD_SWAP (or odd-chip-first byte-pair) order, so the byte cache inverts address bit 0 (see the sprite cache comment); 0 = a plain ROM_LOAD byte ROM in MAME's own order (bioship, strahl
- rtl/macross2/video_macross2.sv:192 1 = every tile byte's nibbles are swapped (MAME's *_packed_lsb layouts: gfx_powerinsc).
- rtl/macross2/video_macross2.sv:196 Afega boards (2026-09-13, Family H on the Gunnail rbf): bg_8bpp: the BG is MAME's tilelayout_8bpp — the ROM region's two halves each hold a col_2x2_group 4bpp tile; MAME's decoder puts plane 0 in the pixel's MSB, so the FIRST half is the hi
- rtl/macross2/video_macross2.sv:207 bg_code_mod12k: the 8bpp region holds 12288 tiles per half (a 3 MB region: bubl2000) — MAME's gfx element indexing wraps the code modulo the element count, which a power-of-two mask cannot do.
- rtl/macross2/video_macross2.sv:214 Family E bootlegs (2026-09-14, Gunnail rbf): static byte bitswaps MAME applies to the raw GFX ROMs once at init, applied here to every fetched tile byte before the nibble extraction instead (the .mra streams the raw files): gfx_swap34 = dec
- rtl/macross2/video_macross2.sv:261 The real board's sprite DMA holds the 68000 off the bus for the ~200us the copy takes; MAME copies the whole table in an instant.
- rtl/macross2/video_macross2.sv:276 bgvideoram_w<Layer>/scroll_w<Layer> (nmk16.cpp:465-503): macross2's own bgvideoram is FOUR "banks" of the same 8192-tile-position tilemap (0x10000 bytes vs. every other port's own 0x4000 — see module header), selected by bits[5:4] of the sc
- rtl/macross2/video_macross2.sv:318 pixel readback for the testbench (mirrors MAME's screen:pixel(x,y))
- rtl/macross2/video_macross2.sv:331 set_scrolldx(28+64,28+64) and the sprite generator's videoshift(28+64) — both in MAME BITMAP coordinates, see BITMAP_X0 below
- rtl/macross2/video_macross2.sv:332 MAME positions tilemaps and sprites in BITMAP coordinates: the bitmap spans the whole raster (512x278) and the visible area starts at bitmap (28,16) — the hblank/vblank widths.
- rtl/macross2/video_macross2.sv:334 scrolldx(92) therefore means tilemap x = bitmap_x - 92 + scrollx = screen_x + 28 - 92 + scrollx (hence MAME's own "leftmost 64 pixels have to be retrieved from the other side" comment), tilemap y = screen_y + 16 + scrolly, and a sprite at X
- rtl/macross2/video_macross2.sv:350 MAME set_screen_midres (nmk16.cpp): raw 448 x 278 at 7 MHz, visible x 60..379 (320 px) — bitmap origin (60,16), the same 64 us line as the 512 x 8 MHz raster this module's callers run (448/7 MHz = 512/8 MHz), so the raster is unchanged and
- rtl/macross2/video_macross2.sv:355 Sprite generator: set_mask(0x3ff, 0x3ff) — 10-bit coordinates, wrap modulus 1024 (nmk16spr.cpp: `if (sx > max_x) sx -= xpos_max`), against 0x1ff/512 for the hi-res boards; max_sprite_clock 448*263.
- rtl/macross2/video_macross2.sv:514 Layer B's prefetch stream shares port B with the sprite fetch, real-time stream first: the sprite pass is a background compositing pass that simply runs slower while a two-layer game is drawing (its MAME budget is 25 % smaller on the lowres
- rtl/macross2/video_macross2.sv:591 Sprite ROM byte order on the hardware path: the ROMs are ROM_LOAD16_WORD_SWAP, and MAME's graphics decoder reads the region BYTE-wise from the swapped memory image, where byte b is raw file byte b^1 (the sim's $readmemh array is built that
- rtl/macross2/video_macross2.sv:681 Palette decode: RRRRGGGGBBBBRGBx (emupal.cpp RRRRGGGGBBBBRGBx_decoder)
- rtl/macross2/video_macross2.sv:761 cfg_rt: the full 14-bit (bank[1:0], code[11:0]) masked to the ROM's tile count (MAME: code % elements, a power of two for every board but the sprites' — see spr_units); the parameter form is the same for the two masks it can express.
- rtl/macross2/video_macross2.sv:782 one 256-colour bank: tilelayout_8bpp's planes 0-3 (the FIRST half, layer A) are MAME's pixel bits 7-4, planes 4-7 (the second half, layer B) bits 3-0
- rtl/macross2/video_macross2.sv:826 Found by comparing real-hardware captures against MAME snapshots, see docs/hw-bringup.md.
- rtl/macross2/video_macross2.sv:897 MAME copies the table atomically at the trigger (`sprite_dma()` from the scanline timer), as real hardware does.
- rtl/macross2/video_macross2.sv:1103 powerins mode only (get_flip_extcode_powerins, attr bit 12): the unit's SOURCE columns are mirrored (nmk16spr.cpp draws each tile with flipx through gfx->transpen) and the units are placed right to left (sx += delta*w, xinc negated) while t
- rtl/macross2/video_macross2.sv:1119 Tile code wraps modulo the ROM's element count (MAME: gfx_element does code %= total_elements).
- rtl/macross2/video_macross2.sv:1123 hachamf draws its big character sprite (the one over GAME OVER, and on the name-entry screen) with code 0x81D6 = 33238 against spr_units = 8192: MAME gives tile 33238 % 8192 = 470, the old chain gave 33238 - 2*8192 = 16854, which is not jus
- rtl/macross2/video_macross2.sv:1176 NMK214 descramble (NMK214=1) — per-fetch, exactly what MAME's decode_nmk214() precomputes: BG byte at byte address A becomes decode_byte(A, rom[A]); the big-endian sprite word at word address W becomes decode_word(W, word).
- rtl/macross2/video_macross2.sv:1181 Address bitswap tables: nmk16.cpp nmk214_bg_address_bitswap / nmk214_sprites_address_bitswap.
- rtl/macross2/video_macross2.sv:1444 Tiles that lie wholly outside the screen are skipped on their first pixel (MAME clips them too); the game keeps plenty of off-screen objects in its table, and walking their 256 pixels each (and fetching their ROM data) was a large part of w
- rtl/macross2/video_macross2.sv:1522 Reference (nmk16_v.cpp screen_update_macross draws m_spriteram_old2, sprite_dma() shifts old2 <- old <- mainram at line 242, the frame is rendered at VBOUT 240 before that DMA): frame j shows the table from DMA j-2.
- rtl/macross2/video_macross2.sv:1525 Pure RTL measurement — no MAME frame-index alignment involved.
- rtl/nmk112/nmk112.sv:6 Register interface: 8 write-only bank-select registers, addressed offset 0-7 (`okibank_w(offset,data)`, nmk112.cpp:86-98).
- rtl/nmk112/nmk112.sv:12 Address remap: PURE address-range decode, no awareness of which of jt6295's own 4 internal ADPCM channels issued a given fetch — confirmed directly from nmk112.cpp's own `oki_map()`/`oki_bank` (nmk112.cpp: 105-130): each OKI's own logical 0
- rtl/nmk112/nmk112.sv:23 Confirmed by reading jt6295's own internal channel round-robin (`rtl/third_party/jt6295/ hdl/jt6295_serial.v`'s own `ch` register) — it is NOT exposed on jt6295's own top-level port list, and (per the address-only nature of nmk112.cpp's own
- rtl/nmk112/nmk112.sv:31 Paged mode ("sample address table" independent per-voice banking, nmk112.cpp:6-9's own header comment): `is_paged(chip) = BIT(m_page_mask,chip)`, and the device's own default constructor value is `m_page_mask(0xff)` — since none of this pro
- rtl/nmk112/nmk112.sv:36 In paged mode, the FIRST 0x400 bytes of the chip's own ENTIRE logical address space (not per-window — confirmed: `map(0x00000,0x000ff)`..`map(0x00300,0x003ff)` are absolute, not offset by any bank window) are overlaid: sub-range N*0x100..N*
- rtl/nmk112/nmk112.sv:79 The core drives `hold` = "a gated cen is passing this clock"; the write is captured and applied on the next clock, after the latch — a 25 ns shift, far inside MAME's own sub-sample write/fetch ordering.
- rtl/nmk112/nmk112.sv:109 nmk112.cpp:93/96 mask every written page index with `data & m_bankmask[chip]` before storing it (m_bankmask is size-1 for a power-of-two page count, which every real OKI ROM in this hardware family is — 0x80000/0x100000/0x200000/0x400000 al
- rtl/nmk_irq/nmk_irq.sv:10 MAME's own nmk_irq_device does NOT consume the H-timing PROM at all (commented out in nmk_irq.h/.cpp, and that file's own "TODO: Horizontal timing generator emulation?") — screen geometry instead comes from the fixed per-resolution-class pi
- rtl/nmk_irq/nmk_irq.sv:18 Every game using this hardware calls set_interrupt_timing() in nmk16.cpp unconditionally with the SAME fixed configuration (prom_start_offset=0x75, vtiming_prom_usage=0x100) — only the V-PROM's own 256-byte contents vary per game — so those
- rtl/nmk_irq/nmk_irq.sv:29 Verified via a live MAME debugger capture (breakpoints at mustang's own IRQ1-4 ISR entry addresses, resolved from the ROM's own autovector table, printing the debugger's `beamy` pseudo-symbol) against mustang's real, dumped V-PROM (`10.bpr`
- rtl/raphero/raphero_core.sv:1 NMK16 MiSTerFPGA project — Rapid Hero / Arcadia (raphero, arcadian, rapheroa: one machine config, nmk16.cpp raphero()) system-level integration, hardware-ready.
- rtl/raphero/raphero_core.sv:10 What differs from tdragon2/macross2 (cross-checked against nmk16.cpp):
- rtl/raphero/raphero_core.sv:22 - Per-scanline X+Y background scroll: gunnail_scrollram/scrollramy at 0x130000/0x130200 (256 words each), raphero_scroll_w deriving tilerambank from bits [13:12] of scrollram[0] (nmk16_v.cpp:295-311), applied per bitmap line by bg_update()
- rtl/raphero/raphero_core.sv:150 per-source audio taps (sim level checks against MAME's routes)
- rtl/raphero/raphero_core.sv:175 pixel readback (mirrors MAME's screen:pixel(x,y))
- rtl/raphero/raphero_core.sv:418 Address decode (raphero_map, nmk16.cpp)
- rtl/raphero/raphero_core.sv:510 16 pairs + next-pair prefetch instead of rom_cache1's single pair: see rtl/rom_cache_n.sv (68000 slowdown vs MAME).
- rtl/raphero/raphero_core.sv:1128 jt03 uses jt49's YM2203 volume table (COMP 5); FM and SSG are mixed below at MAME's routes (tdragon2_core.sv has the story).
- rtl/raphero/raphero_core.sv:1345 x 3/2 (was 3/8 -- measured 8-13dB quiet vs MAME's real OKI:FM balance)
- rtl/raphero/raphero_core.sv:1544 The games read their Flip Screen DIP and write bit 0 of the flipscreen register (nmk16_v.cpp flipscreen_w -> flip_screen_set + m_spritegen->set_flip_screen); the register was being latched here and then ignored, so the DIP did nothing on an
- rtl/raphero/raphero_core.sv:1548 MAME flips the tilemaps and mirrors the sprite coordinates internally, but for a full-screen window the net result is exactly a 180-degree rotation of the visible area -- measured, not assumed: tdragon2 frame 600 with the DIP on is bit-iden
- rtl/raphero/raphero_core.sv:1553 So the readback coordinates are mirrored here, which reproduces MAME by construction and leaves the tilemap/sprite/prefetch pipeline alone.
- rtl/rom_cache_n.sv:7 Why (docs/hw-bringup.md, "Slowdown"): the real board and MAME run the 68000 with zero wait states from EPROM.
- rtl/rom_cache_n.sv:8 Through the 1-line rom_cache1 56% of ROM bus cycles missed (the instruction stream and the game's ROM data-table reads thrash a single pair) and each miss is a ~10 clk_sys SDRAM round trip, 1-2 wait states — 13-20% of every frame spent stal
- rtl/savestate/savestate_ui.sv:4 Slot 2 is on F5 and NOT F2 because every top level here already uses F2 for the Service Mode toggle (MAME's binding), and both were acting on the same press -- found on the board in the sibling Sand Scorpion core, 2026-09-20, which shares t
- rtl/tlcs90/nmk004_periph.sv:25 - Timers 0-3 (8-bit, or 16-bit paired per TMOD) and timer 4/5 (16-bit compare-match with independent TREG4/TREG5 match points) are REAL counters, matching t90_timer_callback/t90_timer4_callback exactly — this is the one part of the peripher
- rtl/tlcs90/nmk004_periph.sv:64 This peripheral register map (`tmp90840_regs` in the reference's own `cpu/tlcs90/tlcs90.cpp`) is identical between the TMP90840 (NMK004's own role) and TMP91640 (the protection-MCU role) — confirmed directly, not assumed — so one module ser
- rtl/tlcs90/tlcs90.sv:188 debug: pulses dbg_valid for one cycle at the start of each new instruction with that instruction's own PC — the same point in time MAME's `trace` debugger command reports from, directly diffable against a captured disassembly oracle trace.
- rtl/tlcs90/tlcs90.sv:196 debug: live register state, sampled alongside dbg_pc/dbg_valid — purely additive, for root-causing oracle divergences against MAME's own debugger register readout (A/HL/F match MAME's TLCS-90 debug state symbols of the same name).
- rtl/tlcs90/tlcs90.sv:420 Same OP_MUL/OP_DIV the PFX_G8 register-operand form already uses (reference: tlcs90.cpp:367-370, "case 0x12: case 0x13: OP(MUL+b0-0x12,16) R16(1,HL) I8(2,READ8())") — missing here entirely, same silent-OP_NOP-fallthrough class as the ADD ix
- rtl/tlcs90/tlcs90.sv:432 Confirmed directly against the reference (cpu/tlcs90/tlcs90.cpp:372-373, "case 0x14: case 0x15: case 0x16: OP16(ADD,6) R16(1,IX+b0-0x14) I16(2,READ16())") — this specific base (unprefixed) form was missing from this table entirely (the cycl
- rtl/tlcs90/tlcs90.sv:485 LDW ($FF00+w),mn — reuses OP_LD (MAME's own execute() merges "case LDW:" and "case LD|OP_16:" into the identical Write1_16(Read2_16()) path, tlcs90.cpp:1497-1499, so no new opcode is needed).
- rtl/tlcs90/tlcs90.sv:489 Missing here entirely (reference: tlcs90.cpp:419-420) — same silent-fallthrough class as above.
- rtl/tlcs90/tlcs90.sv:591 Table extracted directly from mame/src/devices/cpu/tlcs90/tlcs90.cpp's own OP()/OPCC()/OP16()/OPCC16() macro table (CT*2 = real clock cycles; conditional entries use the branch-taken result via the same test_cc() the EXECUTE stage itself us
- rtl/tlcs90/tlcs90.sv:597 DJNZ's own not-taken cost (0x18/0x19 below) is a deliberate exception to "look it up in this table": the reference's own `OP(DJNZ,10)` (tlcs90.cpp:379/381) only ever sets `m_cyc_t` — `m_cyc_f` (the not-taken cost `Cyc_f()` charges when the
- rtl/tlcs90/tlcs90.sv:873 XCF ("extra carry", bit 3) on INC/INCX/DEC/DECX: the reference (tlcs90.cpp's INC/INCX/DEC/DECX cases) computes F from the SZHV table alone (which never touches XCF) and then, as a genuinely separate step, sets XCF if-and-only-if the 8-bit r
- rtl/tlcs90/tlcs90.sv:878 This core's own szhv_inc8()/szhv_dec8() never included that bit, so every one of their 4 callers (OP_INC/OP_DEC's 8-bit forms, OP_INCX/OP_DECX) was silently clearing XCF to 0 unconditionally instead — found via a register-state trace diff a
- rtl/tlcs90/tlcs90.sv:1890 Two bugs lived here in turn: (1) SET/ RES always wrote to eff2/dout regardless of mode2, discarding the register form's result entirely (found via a register-state trace diff against a MAME oracle, docs/hw-bringup.md's GunNail investigation
- README.md:23 Sets MAME flags `MACHINE_NOT_WORKING` are out of scope until MAME can run them.
- README.md:26 Verify against MAME as the golden reference before hardware bring-up: MAME Lua tracers dump bus cycles, frames and RAM state, and Verilator testbenches diff the
- README.md:28 Hardware is then compared to MAME with HDMI screenshots and audio captures.
- README.md:31 MAME is used as a behavioural reference only.
- README.md:31 No MAME code is part of the built core.
- README.md:72 | Core (`releases/*.rbf`) | Hardware | Games (MAME set names) |
- README.md:74 | `NMK16_Macross2` | 68000 + Z80 sound, YM2203, 2x OKIM6295 with NMK112 banking; hi-res and Power Instinct's 320-px board as runtime modes, plus the bootleg boa
- README.md:76 | `NMK16_Gunnail` | NMK004 sound MCU, YM2203, 2x OKIM6295; NMK-215/113/110 protection MCUs with dual NMK214; hi-res per-line scroll (GunNail), the nine lowres N
- README.md:81 Audio is compared band by band against MAME captures.
- README.md:91 The four that do not ship are all `MACHINE_NOT_WORKING` in MAME itself, for reasons MAME states on its own `GAME` lines, and are outside this project's goal unt
- README.md:96 | Set | MAME's reason | Here |
- README.md:99 | `macrossbl` | *"not looked at yet"* | Not attempted — MAME has not characterised this bootleg at all, so there is nothing to port against. |
- README.md:126 Player inputs follow MAME's default key layout.
- README.md:226 The simulations read ROM images built from the MAME zips with the scripts in `tools/`.
- README.md:246 | `sim/oracle/`, `sim/compare/` | MAME Lua tracer and trace comparison |
- README.md:287 jt6805 is a **microcoded** design, and the control store is not jotego's. `rtl/m68705/6805.uc` (4096 x 39 bits) and the `6805.vh` / `6805_param.vh` headers that
- README.md:315 The behavioural reference is [MAME](https://github.com/mamedev/mame), in particular `src/mame/nmk/nmk16.cpp`, `nmk16_v.cpp`, `nmk16spr.cpp`, `nmk214.cpp`, `nmk0
- README.md:324 The project structure and the simulate-against-MAME methodology follow [kaneko16-mister](https://github.com/alphanu1/kaneko16-mister) and the MiSTer-devel arcad
- README.md:339 The MAME source tree and the arcade ROM images are not part of this repository and are not covered by this licence.
Says it matches, follows or was checked against MAME — 9
- rtl/bjtwin/video_timing.sv:22 This was NOT assumed or guessed: every prior port's own polling loops tolerated the old vcount=0 reset silently (it only ever showed up as an already- documented, bounded residual cycle-cost mismatch in verification), and this project spent
- rtl/bjtwin/video_timing.sv:64 see header — matches MAME's own reset-time raster phase
- rtl/macross2/video_macross2.sv:340 Before this conversion the whole picture sat 28 pixels right and 16 lines down of MAME's (measured: shifting a sim frame by (-28,-16) matched MAME's snapshot on 96.5% of all pixels), pushing the rightmost 28 columns and bottom 16 rows off-s
- rtl/macross2/video_macross2.sv:1361 Latching in the same cycle as the address change (as this once did) delivered every word one offset late — the visible flag from the previous slot's colour word, the size from the flag word, the code from the size word — which is why moving
- rtl/nmk_irq/nmk_irq.sv:24 Phase calibration (empirically verified, not derived from documentation alone): MAME's own screen.vpos() — the `y` the reference's address formula uses directly — is NOT the same numbering as this project's own video_timing.sv `vcount` (bot
- rtl/tlcs90/nmk004_periph.sv:3 Built and verified against MAME's cpu/tlcs90/tlcs90.cpp reference model — see docs/tier2-tlcs90.md's "Peripheral registers" section for the full register map and which registers are confirmed exercised by the NMK004 boot ROM.
- rtl/tlcs90/tlcs90.sv:4 Built and verified against MAME's `cpu/tlcs90/tlcs90.cpp` reference model — see docs/tier2-tlcs90.md for the full ISA reference, memory map, and verification plan this was derived from (register model, addressing-mode encodings, exact per-o
- rtl/tlcs90/tlcs90.sv:1095 LDW (mem),mn — reuses OP_LD same as the base-level 0x3f form above (MAME merges LDW into LD|OP_16's own execute case).
- README.md:79 Each core is pixel-identical to MAME in simulation for the whole attract sequence that timing allows, and pixel-identical in hardware screenshots of static scen
Says it was translated, ported or taken from MAME — 2
- rtl/nmk112/nmk112.sv:2 Ported directly from mame/src/devices/machine/nmk112.cpp (131 lines, read in full before implementing — every detail below is confirmed against that source, not assumed).
- rtl/nmk_irq/nmk_irq.sv:5 Ported directly from mame/src/mame/nmk/nmk_irq.cpp's own scanline_callback() — see that file's extensive header comment for the hardware background (dual counters + H/V timing PROMs inside the NMK902 custom chip).
Shares text with the MAME driver without saying so — 11
- rtl/macross2/video_macross2.sv:3 `VIDEO_START_MEMBER(nmk16_state,macross2)` (nmk16_v.cpp:150-162) creates — shares text with nmk/nmk16_v.cpp:150
- rtl/macross2/video_macross2.sv:4 a `common_get_bg_tile_info<0,1>`-driven, `tilemap_scan_pages`-mapped, — shares text with nmk/nmk16_v.cpp:123
- rtl/macross2/video_macross2.sv:331 set_scrolldx(28+64,28+64) and the sprite generator's videoshift(28+64) — both in MAME BITMAP coordinates, see BITMAP_X0 below — shares text with nmk/nmk16_v.cpp:160
- rtl/macross2/video_macross2.sv:336 scrollx (hence MAME's own "leftmost 64 pixels have to be retrieved — shares text with nmk/nmk16_v.cpp:159
- rtl/macross2/video_macross2.sv:648 BG tile-fetch address — gfx_8x8x4_col_2x2_group_packed_msb layout: — shares text with nmk/nmk16.cpp:4184
- rtl/macross2/video_macross2.sv:737 tilemap_scan_pages: (row&0xf) | ((col&0xff)<<4) | ((row&0x10)<<8) — shares text with nmk/nmk16_v.cpp:36
- rtl/macross2/video_macross2.sv:752 common_get_bg_tile_info<0,1>: (code&0xfff)|(m_bgbank<<12) — 14-bit — shares text with nmk/nmk16_v.cpp:123
- rtl/macross2/video_macross2.sv:788 palette base and tile ROM; common_get_bg_tile_info<1, Gfx> — the — shares text with nmk/nmk16_v.cpp:107
- rtl/macross2/video_macross2.sv:829 TILEMAP_SCAN_COLS 8,8,32,32 — 256 logical px, the whole screen), so — shares text with nmk/nmk16_v.cpp:108
- rtl/macross2/video_macross2.sv:1182 nmk214_bg_address_bitswap / nmk214_sprites_address_bitswap. — shares text with nmk/nmk16.cpp:5700
- rtl/tlcs90/nmk004_periph.sv:59 reference (`tdragon_prot_state::mcu_port5_r`/`mcu_port6_r` — shares text with nmk/nmk16.cpp:5040