← All cores
Arcade-TaitoGNET (shmupfan)
Cites hardware documentation that MAME's driver does not — 1
- rtl/gnet/znmcu.vhd:1 znmcu: ZN I/O MCU (NEC uPD78081, ROM not dumped), behavioural model on SIO0 (Taito G-NET core).
Says it was checked on “real hardware” — 1
- rtl/cd_top.vhd:1121 Reject pause while seeking (SeekL/SeekP) or while reading/playing before the first sector has been processed (verified on real hardware).
Notes where it differs from MAME — 3
- rtl/gnet/zn2_io.vhd:24 Map (MAME 0.288 zn.cpp maincpu_program_map 146-164 and zn2_maincpu_program_map 166-173, taitogn.cpp 473-488): A00000 P1, A00100 P2, A00200 SERVICE, A00300 SYSTEM (8-bit, lane 0; active low; writes ignored: the BIOS writes 1-7 and 0Fh to A00
- README.md:318 The core also applies the SPU main volume the games set, which MAME ignores, so at 0.3 the effects are 2.5 to 14.1 dB quieter than in MAME, depending on the gam
- README.md:390 The core differs from MAME 0.288 on purpose in three places:
Cites MAME source — 239
- PSX.sv:588 G-NET: game configuration from the MRA (ioctl index 7, one byte): bit 0 = the set is vertical (ROT270 in MAME taitogn.cpp: psyvaria, psyvarij, psyvarrv, xiistag, shikigam, shikigama).
- PSX.sv:591 Bit 1 = the set has no Taito Zoom board (MAME init_nozoom, taitogn.cpp 416-419: otenamih, otenamhf, zokuoten, zokuotena, zooo, sianniv and the 2011 conversions): the Zoom's MN10200 stays in reset whatever the game writes to the control regi
- PSX.sv:1035 Keyboard, MAME default keys (ps2_key: [10] toggles per event, [9] pressed, [8] extended, [7:0] set-2 scancode) P1: arrows, LCtrl = B1, LAlt = B2, Space = B3, 1 = Start, 5 = Coin P2: R/F/D/G, A = B1, S = B2, Q = B3, 2 = Start, 6 = Coin 9 = S
- PSX.sv:1153 Special controls (gnet_inmode, MAME 0.288 taitogn.cpp INPUT_PORTS mahjngoh, usagi and gobyrc).
- PSX.sv:1154 Bits MAME marks unused read as released.
- PSX.sv:1162 Mahjong panel (taitogn.cpp ttgnmp_state, rows KEY0-KEY3 of mame shared/mahjong.cpp mahjong_matrix_1p) on the keyboard, MAME's default keys (emu/inpttype.ipp): A to N, Kan = LCtrl, Pon = LAlt, Chi = Space, Reach = LShift, Ron = Z; Start 1 is
- PSX.sv:1165 LCtrl, LAlt and Space also stay P1 buttons 1-3, as MAME binds both by default.
- PSX.sv:1210 Wheel: the analog stick's X, or the paddle once it moves (the source that moved last is used), 80h + X; trigger: the stick's Y reversed as MAME's PORT_REVERSE, 80h - Y: rest 80h as MAME (issue #4: ~(Y ^ 80h) gave 7Fh), stick up (Y = -127) F
- PSX.sv:1236 Buttons 1 and 2 (P1 bits MAME marks unused for gobyrc, zm_p1 above, so the game never sees them) give full accelerate and full brake, over the stick: FFh accelerates, 00h brakes (MAME 0.288, the HUD meter after calibration).
- PSX.sv:2263 G-NET: inputs active low (MAME zn/taitogn input ports, docs/zn2_layer_design.md 7.1) zj1/zj2: joysticks, with the MAME keyboard keys in GNET_SHELL builds zd1/zd2: the directions after the Dash sequence (gnet_dash)
- PSX.sv:2340 MAME taitogn.cpp 441-448: SPU to the speakers at 0.3, Zoom at 1.0, both 16-bit full scale (rtl/zoom/zoom_mix.sv; the PCB balance is open, R13).
- PSX.sv:2343 The SPU gain is the OSD SFX Level in shell builds (0.3 default): MAME's spu.cpp ignores the SPU main volume the games set (Ray Crisis 0x1125, about 0.27), spu.vhd applies it, so the effects come out quieter than in MAME at the same route.
- PSX.sv:2358 OSD SFX Level: 0.3 (MAME, default) ...
- PSX.sv:2360 0.3, MAME's route
- rtl/gnet/gnet_ata.sv:18 Evidence: CF+ and CompactFlash specification Rev 1.4 (task file, status, attribute memory); MAME 0.288 ataflash.cpp, atahle.cpp, atastorage.cpp for the Taito lock and every behaviour the specification leaves open.
- rtl/gnet/gnet_ata.sv:22 Bench: sim/gnet/ (directed tests and MAME trace replay through gnet_fc), sim/gnet_ata/tb_ata_t2.sv (Type 2 unlock).
- rtl/gnet/gnet_ata.sv:25 Per-game data comes in through the meta load port (byte address): 000h-1FFh IDENTIFY block (CHD metadata IDNT, returned verbatim as MAME) 200h-2FFh CIS (CHD metadata CIS, padded with FFh) 300h-304h unlock key (CHD metadata KEY); key_valid =
- rtl/gnet/gnet_ata.sv:35 Attribute memory (16-bit word offsets, MAME read_reg/write_reg): 000h-0FFh CIS byte; 100h configuration option; 101h configuration and status; 102h pin replacement (reset 002Eh); Type 1 only (not Type 2 or CompactFlash): 201h lock status (1
- rtl/gnet/gnet_ata.sv:48 While BSY every command block read except the data port returns status (MAME).
- rtl/gnet/gnet_ata.sv:49 Commands: 20h READ SECTORS, 30h WRITE SECTORS, ECh IDENTIFY DEVICE; any other command ends with ERR and ABRT (MAME also implements 90h, EFh, E7h and the multiple/DMA forms; the games never issue them).
- rtl/gnet/gnet_ata.sv:52 While locked every command ends with ERR, error 00h and DRDY clear (all three card types, MAME).
- rtl/gnet/gnet_ata.sv:55 Type 2 unlock (MAME 0.288 taito_pccard2_device): locked at power-on when a key is loaded.
- rtl/gnet/gnet_ata.sv:60 MAME also raises IRQ for FEh and FCh; this card has no IRQ output (the G-NET BIOS polls status), as for the other commands.
- rtl/gnet/gnet_ata.sv:64 CompactFlash unlock (MAME 0.288 taito_compact_flash_device): locked at power-on when a key is loaded.
- rtl/gnet/gnet_ata.sv:65 0Fh, at once and whether locked or not: unlock if feature, sector count, sector number, cylinder low and cylinder high equal key bytes 0-4 (sector count as MAME holds it: 00h written is 100h), else DRDY clears and the card stays locked; no
- rtl/gnet/gnet_ata.sv:69 MAME's IRQ for 0Fh is left out as for the other commands.
- rtl/gnet/gnet_ata.sv:71 Timing (MAME 0.288 values as defaults, all parameters): reset detect 2 ms then diagnostic 2 ms; IDENTIFY 10 us busy; first sector of a read 0 (CF seek time); between sectors 400 ns; each written sector 100 us.
- rtl/gnet/gnet_ata.sv:73 Status bit IDX is always 0 (CF 1.4); MAME's hard disk model has an index pulse in calculate_status, but it never appears in the oracle traces, so MAME and the specification agree.
- rtl/gnet/gnet_ata.sv:79 A read fills the sector buffer in the background; data port reads stall (op_ack) until their word has arrived, so DRQ timing stays as MAME's. A written sector goes to storage during its busy time and sets its 4 KB hunk in the dirty map.
- rtl/gnet/gnet_ata.sv:272 registers the reset sequence leaves (device_reset in MAME)
- rtl/gnet/gnet_ata.sv:321 diagnostic passed (MAME atahle.h IDE_ERROR_DIAGNOSTIC_PASSED)
- rtl/gnet/gnet_ata.sv:337 bad sector (MAME atastorage.cpp IDE_ERROR_BAD_SECTOR)
- rtl/gnet/gnet_ata.sv:554 status as a read sees it: DRDY is set lazily on every register read once the card is ready (MAME command_r/control_r)
- rtl/gnet/gnet_coin_pulse.sv:14 Evidence: MAME 0.288 runs of sianniv (coin held 0.5 s gives COIN ERROR, below); issue #1.
- rtl/gnet/gnet_coin_pulse.sv:23 Space Invaders Anniversary treats a coin switch held for 30 VBLANKs (0.5 s) as a jammed mech and stops with COIN ERROR until the watchdog resets it (MAME 0.288, routine 0x8001102c); a 0.1 s coin is counted.
- rtl/gnet/gnet_crop224.sv:25 Evidence: MAME 0.288 frames (sim/oracle in gnet-mister): Shikigami no Shiro fills lines 0 to 7 and 232 to 239 of its 240 with one flat colour in 343 of 355 sampled frames (both sets), Chaos Heat with black in 67 of 76; no other traced game
- rtl/gnet/gnet_ctrl.sv:16 Evidence: MAME 0.288 taitogn.cpp (control registers, R15), Fujitsu MB3773 datasheet DS04-27401-7E (watchdog, R17); R-items are defined in docs/PLAN.md (research items) and docs/evidence_sources.md.
- rtl/gnet/gnet_ctrl.sv:21 Registers (main CPU, MAME 0.288 taitogn.cpp, docs/hardware_inventory.md 4): 0x1fb40000 control 8-bit R/W, reset 0x10: bit 5 MB3773 CK, bit 4 Zoom reset (1 = held), bit 2 flash bank select 0x1fb60000 control2 16-bit, write only 0x1fa30000 c
- rtl/gnet/gnet_ctrl.sv:33 The default here is 8 s: Taito's own Zoom init delay loop (Night Raid, Ray Crisis, Shikigami) runs without a kick for 2.4 to 2.9 s in MAME, about 3 s or more on a real board (the loop is CPU-bound), and 5.081 s for Night Raid in this core's
- rtl/gnet/gnet_dash.sv:14 Evidence: MAME 0.288 runs of chaoshea (below); design in docs/m4_shell.md 4.
- rtl/gnet/gnet_dash.sv:28 Measured in MAME 0.288 (oracle run output in sim/oracle/dash, a run folder that is not kept in the repository; chaoshea in play, player X and Z words 0x1426ec/0x1426f0 every frame, both VBLANK phases): a dash when the second press starts at
- rtl/gnet/gnet_fc.sv:23 000000-7fffff flash bank window (16-bit devices), bank = control bit 2 | JP1 << 1 (MAME 0.288 taitogn.cpp flashbank_map): bank 0: U30 000000-1fffff, card attribute memory 200000-2fffff (RF5C296 memory window), U27 300000-37ffff bank 1, 3: U
- rtl/gnet/gnet_fc.sv:43 card_present = 0 (empty slot): the RF5C296 reports no card and card attribute memory and task file read FFFFh, writes ignored, as MAME's empty pccard slot (MAME 0.288 pccard.cpp:69-88, read_memory/read_reg return 0xffff).
- rtl/gnet/gnet_flash.sv:16 Evidence: Intel 28F160S3 datasheet 290608-005, 28F160S5 290609-004 and 28F400B5 290599-004 (docs/evidence_sources.md); MAME 0.288 intelfsh.cpp where the datasheets leave a mode transition open.
- rtl/gnet/gnet_flash.sv:19 Bench: sim/gnet/ (gnet_fc directed tests and MAME replay).
- rtl/gnet/gnet_flash.sv:25 Commands (Intel 28F160S3 290608-005 and 28F400B5 290599-004; MAME 0.288 intelfsh.cpp for the mode transitions the datasheets leave open): FFh/F0h read array, 90h read identifier, 70h read status register, 50h clear status register (enters r
- rtl/gnet/gnet_flash.sv:32 TE28F160: B0h/D0h; E28F400B: 89h/4471h (values as MAME; 28F160S3 datasheet Table 12 p24 gives B0h/D0h).
- rtl/gnet/gnet_flash.sv:36 Program: the stored word becomes old AND new (PROGRAM_AND = 1, datasheet: programming only clears bits) or new (PROGRAM_AND = 0, MAME overwrites).
- rtl/gnet/gnet_flash.sv:40 Timing (cycles of clk), PRESET 1 = MAME 0.288 (program instant; erase 1.0 s, E28F400B 0.3 s boot/parameter and 0.6 s main), PRESET 2 = 28F160S3 typical at 2.7 V VPP (290608-005 p50: 20.0 us per word, 0.56 s per block), PRESET 3 = 28F160S5 t
- rtl/gnet/gnet_flash.sv:50 PRESET 1 was kept so a first boot (flash copy) can be compared with MAME; choosing PRESET 3 for a release is an open decision (docs/zn2_layer_design.md 17 item 9).
- rtl/gnet/gnet_flash.sv:53 When a program or erase completes, status returns to 80h whatever the read mode (datasheet: the WSM finishes); MAME only does this in read status mode.
- rtl/gnet/gnet_flash.sv:159 A program or erase that started at the write of cycle W is complete for a status read at cycle R when R - W >= T: the timer then holds 1 (MAME: ready when the read happens at or after the write time + T).
- rtl/gnet/gnet_hiscore.sv:56 The core's reset zero fill covers the first 2 MB of main RAM only (cpu_reset_fill), so after an OSD reset or a reload the SDRAM still holds the previous table at 0x28BF08 with valid start and end bytes; spuzbobl clears it about 12 s after a
- rtl/gnet/gnet_rf5c296.sv:16 Evidence: Ricoh RF5C296/RF5C396L Application Manual EA-028-9804 ("the datasheet" below, pages as cited); MAME 0.288 rf5c296.cpp for the differences noted.
- rtl/gnet/gnet_rf5c296.sv:35 MAME 0.288 returns 00h for every register; the BIOS never reads one (oracle), so the difference is not visible.
- rtl/gnet/gnet_rf5c296.sv:37 Index read back: the last index written (as MAME).
- rtl/gnet/gnet_rf5c296.sv:38 Level, so the card starts its power-on sequence when the bit is set; MAME resets the card at each write with bit 6 = 0 instead.
- rtl/gnet/pll_vid_fixed.v:12 Origin: written for this core by hand (not generated by the Quartus IP tools): one altera_pll instance in the form of PSX_MiSTer's Quartus-generated rtl/pll/pll_0002.v, with the output of rtl/pll2/pll2_0002.v. Evidence: MAME 0.288 zn.cpp:94
- rtl/gnet/pll_vid_fixed.v:20 pll2's static setting is already 53.693175 MHz (NTSC), which is also the ZN-2 GPU dot clock crystal (MAME zn.cpp: CXD8654Q at 53.693175 MHz).
- rtl/gnet/zn2_board.vhd:18 Evidence: MAME 0.288 taitogn.cpp:476-487 (main-CPU map), zn.h:39 (SIO0 RXD), at28c16.cpp:89 (nvram_default); board blocks per docs/evidence_sources.md 1 and 2.
- rtl/gnet/zn2_board.vhd:23 Contents: * bus top: memorymux's zn_* port (expansion 1 and 3, ZN2_MAP = 1) to gnet_fc (flash window, control3, RF5C296 / ATA, control, control2, 0x1FB70000) or zn2_io (inputs, board registers, EEPROM, Zoom stub); anything else answers 0 *
- rtl/gnet/zn2_board.vhd:61 gnet_flash timing: 1 = MAME, 2 = 28F160S3 2.7 V, 3 = 28F160S5 (FC PCB part)
- rtl/gnet/zn2_board.vhd:98 special controls (MRA game configuration byte bits 3:2, PSX.sv): mahjong panel rows (zn2_io A10100) and the znmcu analog channels 0 and 1 (Go By RC / RC De Go wheel and trigger; FFh when unused, as MAME's unused ANALOG ports)
- rtl/gnet/zn2_board.vhd:287 Taito Zoom ports (MAME 0.288 taitogn.cpp:483-487; rtl/zoom/zoom_host.sv decodes the same)
- rtl/gnet/zn2_board.vhd:451 MAME 0.288 zn.h:39: RXD is the AND of the three outputs
- rtl/gnet/zn2_io.vhd:17 Evidence: AT28C16 datasheet (Atmel doc0540); MAME 0.288 zn.cpp, taitogn.cpp, at28c16.cpp as cited below (line numbers at tag mame0288, reference/mame0288).
- rtl/gnet/zn2_io.vhd:34 MAME's KEY ports define bits 0-5 only, so a selected row reads bits 6 and 7 as 0 (mahjong.cpp mahjong_matrix_1p) A10200 board configuration (BOARDCFG; MAME 69h = 4 MB RAM, 2 MB VRAM, 512 KB SPU RAM, revision 1) A10300 znsecsel (R/W): bit 2
- rtl/gnet/zn2_io.vhd:41 Bit 1 clear locks out coin 1, bit 5 clear coin 2 (zn.cpp coin_w 223-231, coin_lockout_w(0, !BIT(m_coin, 1)) and (1, !BIT(m_coin, 5))); a locked-out coin reads as not inserted at A00300, as MAME's ioport.cpp 1312-1327 drops a coin input whil
- rtl/gnet/zn2_io.vhd:47 The lockouts start unlocked and are not reset, as MAME's bookkeeping (constructor, bookkeeping.cpp 25-34; no reset).
- rtl/gnet/zn2_io.vhd:49 Coins 3 and 4 (ttgncl4_state, taitogn.cpp 634-647) are never pressed in this core; ttgncl0_state (the 2011 conversions, taitogn.cpp 619-632) has no lockout and is not supported A40000 reads 0; A51C00-A51DFF reads 0; A60000 bit 3 (MAME's "wo
- rtl/gnet/zn2_io.vhd:54 The games' SPU register read routine does a dummy read at A51C00 + register offset, polls A60000 until bit 3 is set (up to 100 tries, then "SPU:T/O [ReadStatusFlag Error]"), then reads the SPU register itself (MAME trace, main docs/r1_cpu_d
- rtl/gnet/zn2_io.vhd:58 SPU_STATUS = 0: bit 3 toggles on every read of the low half, starting at 1 (MAME); 1: bit 3 always 1 (enough for raycris and psyvaria per that trace, one poll per SPU read; an alternative reading, sim only: PSX.sv never sets it) AF0000-AF07
- rtl/gnet/zn2_io.vhd:66 MAME skips writes of the value already stored (at28c16.cpp 175); the datasheet does not, nor does this model.
- rtl/gnet/zn2_io.vhd:69 B20000-B20007 reads FFFFh (zn.cpp unknown_r) Taito Zoom stub (zn2_board ZOOM = 0, the silent build): B80000-B80003 register writes ignored, BA0000 write ignored, BC0000 reads 0 (as taito_zm.cpp sound_irq_r), BE0000-BE01FF M66220FP mailbox,
- rtl/gnet/zn2_io.vhd:92 AT28C16 self-timed byte write: 200 us, the datasheet's E option and MAME at28c16.cpp:179 (the standard part takes 1 ms; which one the ZN-2 carries is needs-review, docs/zn2_layer_design.md 8)
- rtl/gnet/zn2_io.vhd:118 inputs, active low (zn.cpp INPUT_PORTS in taitogn.cpp 798-857)
- rtl/gnet/zn_cat702.vhd:15 Origin: written for this core (own implementation from MAME's description, no code copied; see below).
- rtl/gnet/zn_cat702.vhd:17 Evidence: MAME 0.288 cat702.cpp (rank 5, no datasheet); bench against MAME 0.288 SIO0 traffic (docs/zn2_layer_design.md 16.1).
- rtl/gnet/zn_cat702.vhd:20 Behaviour from the algorithm description and model in MAME 0.288 src/devices/machine/cat702.cpp (smf; no datasheet exists, evidence rank 5), written as hardware: no code taken.
- rtl/gnet/zn_cat702.vhd:23 select falling : state = FCh, bit counter = 0 select rising : output = 1 SCK falling : if bit counter = 0, state = TF2(state) (fixed initial sbox); output = state(bit counter) SCK rising : if TXD = 0, state = sbox[bit counter](state
- rtl/gnet/zn_cat702.vhd:36 This is MAME's order inside one SIO tick (MAME 0.288 sio.cpp:125-191: SCK low, TXD, SCK high, sample) with no extra clock of latency.
- rtl/gnet/zn_cat702.vhd:64 MAME 0.288 cat702.cpp:90 initial_sbox
- rtl/gnet/zn_cat702.vhd:85 sbox[n] from sbox[n-1] (MAME 0.288 cat702.cpp:150-161 compute_sbox_coef)
- rtl/gnet/zn_sio0.vhd:15 Origin: written for this core (own implementation from MAME's behaviour, no code copied; see below).
- rtl/gnet/zn_sio0.vhd:17 Evidence: MAME 0.288 sio.cpp (rank 5); replay of every SIO0 access of six games against MAME 0.288 (docs/zn2_layer_design.md 16.4).
- rtl/gnet/zn_sio0.vhd:20 Register behaviour from MAME 0.288 src/devices/cpu/psx/sio.cpp (rank 5; no CXD8661R document), written as hardware, on PSX_MiSTer's bus_pad port (offsets 0-F of 0x1F801040): 0 data write: TX byte; TX ready and TX empty cleared; the bit t
- rtl/gnet/zn_sio0.vhd:38 That is MAME's order inside sio_tick (SCK low, TXD, SCK high, sample).
- rtl/gnet/zn_sio0.vhd:49 DSR: status bit 7 follows the line (low = set); a falling edge with the DSR interrupt enabled raises IRQ (sio.cpp write_dsr).
- rtl/gnet/zn_sio0.vhd:59 0 = MAME (prescaler x baud per bit), 1 = joypad.vhd (baud per bit)
- rtl/gnet/zn_sio0.vhd:166 DSR line (sio.cpp write_dsr)
- rtl/gnet/zn_sio0.vhd:272 The MAME replay of docs/zn2_layer_design.md 16.4 matches with it.
- rtl/gnet/znmcu.vhd:15 Origin: written for this core (own implementation from MAME's behaviour, no code copied; see below).
- rtl/gnet/znmcu.vhd:17 Evidence: MAME 0.288 znmcu.cpp:65-142 (rank 5; R16 in docs/PLAN.md 6: no MCU dump); replay against MAME 0.288 SIO0 traffic (docs/zn2_layer_design.md 16.4).
- rtl/gnet/znmcu.vhd:21 The MCU ROM is NO_DUMP (MAME 0.288 taitogn.cpp:1023-1024, R16), so this follows the behaviour of MAME 0.288 src/mame/sony/znmcu.cpp (rank 5), written as hardware (docs/zn2_layer_design.md 7): select falling : byte and bit counters 0; 50 us
- rtl/gnet/zoom_cdc.vhd:18 Evidence: main-CPU Zoom ports from MAME 0.288 taitogn.cpp:483-487; crossing method as rtl/gnet/zn2_cdc.vhd.
- rtl/gpu.vhd:4 Changes: generic VRAM_Y_BITS (default 9 = upstream, 1 MB VRAM; 10 = the ZN-2 CXD8654Q GPU with 2 MB VRAM, docs/m1_gpu_zn2.md 2b), the widths and write FIFO layout that follow from it, and GP1(10h) index 7 answering 2 at VRAM_Y_BITS 10 as th
- rtl/gpu.vhd:760 GPU type (G-NET: the ZN-2 CXD8654Q answers 2, MAME psxgpu.cpp case 0x07; PS1 mode unchanged)
- rtl/gpu_pixelpipeline.vhd:4 Changes: generic VRAM_Y_BITS (default 9 = upstream, 1 MB VRAM; 10 = the ZN-2 CXD8654Q GPU with 2 MB VRAM, docs/m1_gpu_zn2.md 2b), the widths that follow from it and the texture page Y base (tpage bits 11 and 4 at VRAM_Y_BITS 10, MAME 0.288
- rtl/gpu_pixelpipeline.vhd:471 G-NET: texture page Y base: PS1 = tpage bit 4 (0 or 256); ZN-2 CXD8654Q = tpage bits 11 and 4 (0, 256, 512, 768), as MAME 0.288 decode_tpage for GPU type 2
- rtl/gpu_rect.vhd:26 G-NET: 1 = textured rectangle X/Y flip from E1 bits 12/13 (flipX/flipY): U steps -1 per pixel, V -1 per line, left/top clipping moves U/V the other way (MAME 0.288 psxgpu.cpp type 2 SPRITESETUP; psx-spx v2 GPUs).
- rtl/psx_mister.vhd:348 no Taito Zoom board (MAME init_nozoom): its MN10200 held in reset
- rtl/psx_top.vhd:91 gnet_flash timing: 1 = MAME, 2 = 28F160S3 2.7 V, 3 = 28F160S5 (FC PCB part)
- rtl/psx_top.vhd:92 zn_sio0: 0 = MAME bit timing, 1 = joypad.vhd rule
- rtl/psx_top.vhd:93 zn2_io 0x1FA60000: 0 = MAME toggle, 1 = bit 3 set
- rtl/psx_top.vhd:356 no Taito Zoom board (MAME init_nozoom), clk1x, set at load
- rtl/psx_top.vhd:3633 a set without the Zoom board (MAME init_nozoom, taitogn.cpp 416-419, 519-535): the MN10200 stays in reset as at power-on (taitogn.cpp 467), the game's control bit 4 is ignored; the host side (shared RAM, sound_irq_r reads 0) answers as with
- rtl/zoom/mn10200.sv:17 Evidence: MN102L Instruction Manual 12250-030E and MN102H60G LSI User's Manual 22360-014E (docs/evidence_sources.md); MAME 0.288 src/devices/cpu/mn10200/mn10200.cpp where the manuals are silent or the MN1020012A differs.
- rtl/zoom/mn10200.sv:23 Bench: sim/mn10200/ (lockstep against MAME traces).
- rtl/zoom/mn10200.sv:49 0: shared prescalers as on the chip, 1: MAME timer phase (mn10200_periph.sv)
- rtl/zoom/mn10200_core.sv:17 Evidence: MN102L Instruction Manual 12250-030E and MN102H60G LSI User's Manual 22360-014E (docs/evidence_sources.md); MAME 0.288 src/devices/cpu/mn10200/mn10200.cpp where the manuals are silent or the MN1020012A differs.
- rtl/zoom/mn10200_core.sv:44 Semantics follow the MN102L manual; where the MN1020012A differs or the manual is silent, MAME 0.288 mn10200.cpp is the reference (design study 1.1, 1.2, 2.5) and the comments say so.
- rtl/zoom/mn10200_core.sv:92 interrupt entry: MAME charges them before the access debug / trace port (design study 5.8)
- rtl/zoom/mn10200_core.sv:126 MAME m_possible_irq: re-check at next boundary
- rtl/zoom/mn10200_core.sv:446 Zoom board time base (docs/zoom_board_design.md 6.2): an external access lands at the end of its instruction in machine time (mn10200.cpp charges every cycle before the access), so the board looks this far ahead.
- rtl/zoom/mn10200_core.sv:450 first instruction of a handler: no interrupt check (MAME)
- rtl/zoom/mn10200_core.sv:550 ---------------------------------------------------------- reset: clear D0-D3, A0-A3 (MAME device_reset)
- rtl/zoom/mn10200_core.sv:562 MAME take_irq: psw = (psw & 0xf0ff) | level << 8, which clears IE (bit 11) too; the MN102H manual also clears IE on acceptance.
- rtl/zoom/mn10200_core.sv:609 MAME samples interrupts only when m_possible_irq is set (mn10200.cpp execute_run); the core keeps the same flag.
- rtl/zoom/mn10200_core.sv:638 MAME sets m_possible_irq on MOV Dn,PSW and OR imm16,PSW, not on AND imm16,PSW
- rtl/zoom/mn10200_core.sv:656 n = MDR:Dm, d = Dn; overflow (q >= 0x10000, includes d = 0) exactly when MDR >= d. MAME: VF set, Dm and MDR unchanged.
- rtl/zoom/mn10200_core.sv:678 undefined opcode: MAME sets NMICR bit 1 (illegal()) and re-checks synthesis translate_off
- rtl/zoom/mn10200_core.sv:700 flags from (byte & Dm) on 16 bits: NF = 0, ZF, CF = VF = 0 (MAME test_nz16)
- rtl/zoom/mn10200_core.sv:734 MAME: PSW &= 0xff00 first.
- rtl/zoom/mn10200_periph.sv:17 Evidence: MAME 0.288 src/devices/cpu/mn10200/mn10200.cpp (io_control_r/io_control_w, refresh_timer) for the register map the firmware uses; MN102H60G LSI User's Manual 22360-014E, timer chapter, for the shared prescalers (TIMER_EXACT = 0).
- rtl/zoom/mn10200_periph.sv:29 Everything else reads 0 and ignores writes, as MAME 0.288 mn10200.cpp io_control_r/w does for registers it does not decode.
- rtl/zoom/mn10200_periph.sv:33 The register layout is the older MN10200 generation that MAME implements (design study 1 and 4.1; the MN102H manual describes a different map).
- rtl/zoom/mn10200_periph.sv:38 A timer expires (pb + 1) x (cur + 1) machine cycles after it was armed, as MAME's refresh_timer computes; arming by a mode write takes effect at the end of the writing instruction, which is where MAME's write lands in machine time (all cycl
- rtl/zoom/mn10200_periph.sv:44 1: MAME-exact timer phase: each armed timer expires (prescaler base + 1) x (cur + 1) machine cycles after arming, with its own prescale counter and the base latched at arming (mn10200.cpp refresh_timer).
- rtl/zoom/mn10200_periph.sv:84 out | ~dir, as MAME's write_port callbacks
- rtl/zoom/mn10200_periph.sv:108 ------------------------------------------------------------------ interrupt priority MAME check_irq: the lowest level number below PSW.IM wins, ties to the lowest group (strict "<" while scanning groups 1 to 10).
- rtl/zoom/mn10200_periph.sv:130 Values as MAME io_control_r; undecoded registers read 0.
- rtl/zoom/mn10200_periph.sv:169 ------------------------------------------------------------------ timers Per timer: armed (counting from a prescaler) and the cnt down counter; TIMER_EXACT adds a prescale counter and the prescaler base latched at arming (MAME fixes the pe
- rtl/zoom/mn10200_periph.sv:194 chain upwards: a cascaded timer is ticked when the one below underflows (MAME timer_tick_simple)
- rtl/zoom/mn10200_periph.sv:200 does the chain above t fully underflow (MAME return value != 2)
- rtl/zoom/mn10200_periph.sv:216 MAME device_reset: CPUM = 0x8000, then 0 to every register
- rtl/zoom/mn10200_periph.sv:295 re-arm with the new cur (MAME simple_timer_cb -> refresh_timer)
- rtl/zoom/tms57002.sv:18 Evidence: TMS57002 User's Guide (TI 1992, "guide" below, pages cited inline); MAME 0.288 src/devices/cpu/tms57002 (tag mame0288) only where the guide is silent.
- rtl/zoom/tms57002.sv:23 Bench: sim/tms57002/ (replay against MAME 0.288).
- rtl/zoom/tms57002.sv:26 Own implementation from docs/zoom_zsg2_tms57002_design.md and the TMS57002 User's Guide (TI 1992, "guide" below); MAME 0.288 (src/devices/cpu/tms57002 at tag mame0288) is used only where the guide is silent, and the comments say so.
- rtl/zoom/tms57002.sv:184 Opcode numbers as in MAME's tmsinstr.lst.
- rtl/zoom/tms57002.sv:197 Opcode numbers below are MAME 0.288 tmsinstr.lst's: primary (category 1) in bits 23:18, secondary (category 2) in bits 17:11, category 3 when the primary field is 3F (guide Fig. 4-2 and 4-3).
- rtl/zoom/tms57002.sv:238 Post increments apply to an operand the word references (MAME tms57kdec.cpp:15-30; the guide is silent; both programs set E or P only on referenced operands, docs/tms57002_rtl.md).
- rtl/zoom/tms57002.sv:277 RND 1 rounds to 32 bits (bit 15, MAME tmsmake.py:48); RND 0 is 48 bits
- rtl/zoom/tms57002.sv:307 secondary (category 2) results first: they use the old AACC and MACC and own the bus, so a primary reading the same operand sees them (guide p.4-2; MAME runs them first, tmsmake.py EmitCdec)
- rtl/zoom/tms57002.sv:355 32-bit overflow sets AOV; ST1 bit 3 (MAME's AOVM, set by SAOM) saturates.
- rtl/zoom/tms57002.sv:356 Bit 3 is "reserved" in Fig. 3-24 and SAOM / RAOM are not in the guide: MAME tmsmake.py:70 and tmsinstr.lst:549.
- rtl/zoom/tms57002.sv:431 RS (p.3-34) plus MAME tms57002.cpp:76-102 for what the guide omits
- rtl/zoom/tms57002.sv:448 MAME tms57002.cpp:40-74: PLOAD low restarts the download at ST0 and resets PC and CA; CLOAD low expects SA next.
- rtl/zoom/tms57002.sv:495 Ignored while PLOAD is low (MAME tms57002.cpp:220; the guide is silent).
- rtl/zoom/zoom_board.sv:16 Evidence: MAME 0.288 taito_zm.cpp and taitogn.cpp (cited inline); board parts as listed in docs/evidence_sources.md.
- rtl/zoom/zoom_board.sv:20 Bench: sim/zoomboard/ (board against MAME).
- rtl/zoom/zoom_board.sv:48 Reset sequencing (taitogn.cpp:513-533, taito_zm.cpp:73-79): - zoom_reset is control bit 4 (gnet_fc).
- rtl/zoom/zoom_board.sv:51 - On its falling edge MAME resets the taito_zoom device, so the ZSG-2, the TMS57002 and the MN10200 restart; the ZSG-2 and the TMS57002 are not held during the reset period (MAME) unless RST_LEVEL = 1 (the PCB's wiring is unknown, docs/zoom
- rtl/zoom/zoom_board.sv:58 ZSG-2 register 0xB read (MAME 61c7940)
- rtl/zoom/zoom_board.sv:61 MN10200 timers: 1 = MAME phase (verification)
- rtl/zoom/zoom_board.sv:73 the lockstep testbench uses MAME's 32,552 Hz
- rtl/zoom/zoom_board.sv:74 volume law: 0 MB87078, 1 MAME linear
- rtl/zoom/zoom_board.sv:76 TMS57002: 0 the User's Guide (default), 1 MAME 0.288 (oracle)
- rtl/zoom/zoom_board.sv:119 testbench: IRQ1 pin from tb_pin1 (MAME FC57)
- rtl/zoom/zoom_board.sv:207 port 1 input: MAME's tms_ctrl_r returns the last value written (taito_zm.cpp:99-112), which is out | ~dir (mn10200.cpp:2080)
- rtl/zoom/zoom_board.sv:285 A host byte (0xC00000) and a PLOAD/CLOAD change (port 1 bits 0 and 1) reach the DSP at the end of the writing instruction in virtual time, where MAME places every access (mn10200.cpp charges the cycles first): machine cycle cyc_cnt + acc_cy
- rtl/zoom/zoom_board.sv:423 route gains 0.5 / 0.5 / 1 / 1 and SIM = 1 (taito_zm.cpp:205-208, tms57002.cpp:927-931)
- rtl/zoom/zoom_bus.sv:16 Evidence: MAME 0.288 taito_zm.cpp:114-125 (MN10200 memory map).
- rtl/zoom/zoom_bus.sv:23 Map (taito_zm.cpp:114-125, MAME 0.288): 0x080000-0x0FFFFF program flash U27, read only (program cache) 0x400000-0x41FFFF work RAM (32 KB on the PCB, mirrored; zoom_wram) 0x800000-0x8007FF ZSG-2, 16-bit (zsg2) 0xC00000 TMS57002
- rtl/zoom/zoom_bus.sv:38 Before a ZSG-2 access the decoder asks the time base to tick any sample boundary that MAME would place before the access (zoom_tbase look_*), then waits until the ZSG-2 has counted the tick (t_idle: at least a clock; at CLK_H 4 also until t
- rtl/zoom/zoom_host.sv:17 Evidence: MAME 0.288 taitogn.cpp:483-487 and taito_zm.cpp:73-79, 139-177; MB87078 data sheet (Fujitsu Edition 2.0A, pp.4 and 6).
- rtl/zoom/zoom_host.sv:25 Addresses are offsets from 0x1F000000, the convention of gnet_fc and the zn bus (32-bit data, byte enables, req pulse, ack pulse with data): B80000 lane 0-1 reg_data_w (MAME taitogn.cpp:483, taito_zm.cpp:151-172) B80000 lane 2-3 reg_
- rtl/zoom/zoom_host.sv:44 MAME (MAME_GAIN = 1): register 4 sets the left gain and 5 the right gain to (data & 0x3F) / 63, linear; the register number resets to 0 at the Zoom reset (taito_zm.cpp:73-79).
- rtl/zoom/zoom_host.sv:103 MAME: round(32768 x d / 63)
- rtl/zoom/zoom_host.sv:114 MAME m_reg_address
- rtl/zoom/zoom_mbox.sv:18 Evidence: Mitsubishi M66220SP/FP data sheet pp.3-3 to 3-8 (docs/evidence_sources.md); MAME 0.288 taito_zm.cpp:88-96, 124 and taitogn.cpp:487.
- rtl/zoom/zoom_mbox.sv:29 MAME models it as a plain 256-byte shared RAM (taito_zm.cpp:88-96, 124; taitogn.cpp:487), and so does this block: a true dual-port RAM, one port per side.
- rtl/zoom/zoom_mbox.sv:31 The collision arbiter is not modelled (Not Ready never reaches either CPU in MAME).
- rtl/zoom/zoom_mix.sv:17 Evidence: MAME 0.288 taitogn.cpp:441-448 (speaker routes 0.3 and 1.0), spu.cpp, tms57002.cpp:933-936.
- rtl/zoom/zoom_mix.sv:24 MAME routes the SPU to the speaker at 0.3 and the Zoom at 1.0 (taitogn.cpp:441-448); both streams are 16-bit full scale there (spu.cpp put_int(..., 32768); tms57002.cpp:933-936 puts so << 8 / 2^31, so the 16-bit SO1 word is full scale).
- rtl/zoom/zoom_mix.sv:28 MAME's 0.3 was set by ear in 2018 (before: SPU 0.35/0.45 against Zoom 0.5, a ratio of about 0.9), and MAME's spu.cpp ignores the SPU main volume (0x1F801D80/82, spureg.mvol_l/r stored, never applied), which the games set low (Ray Crisis 0x1
- rtl/zoom/zoom_mix.sv:32 So the SPU gain is selectable (spu_lvl, the shell's OSD "SFX level"): 0 = G_SPU (0.3, MAME), 1 = 0.45, 2 = 0.6, 3 = 0.9 (the pre-2018 MAME ratio), 4 = 1.2, 5 = 1.5, 6 and 7 = G_SPU.
- rtl/zoom/zoom_mix.sv:39 Output level (2026-10-21): with the MAME gains alone the core played about 7 to 17 dB under the mister-core reference (-16.4 dBFS, 1 s RMS median), measured in full-system simulation on six sets (intros and attract, no peak above -9.9 dBFS)
- rtl/zoom/zoom_mix.sv:42 OUT_SHIFT = 15 (the default) doubles the whole mix (+6.02 dB), which keeps every SFX level ratio and left the loudest measured content (Psyvariar) peaking at -3.9 dBFS; 16 is the MAME scale.
- rtl/zoom/zoom_mix.sv:48 16: MAME scale; 15: +6.02 dB (see above)
- rtl/zoom/zoom_out.sv:32 Gain: unsigned Q1.15 per channel from zoom_host (MB87078 law or MAME's linear law), applied as (s x g) >> 15, which cannot overflow 16 bits for g <= 32768.
- rtl/zoom/zoom_pcache.sv:17 Evidence: MAME 0.288 taito_zm.cpp:116-117 (U27 at 0x080000-0x0FFFFF); MAME 0.288 oracle traces for the U27 write pattern (docs/zoom_board_design.md 3.4).
- rtl/zoom/zoom_pcache.sv:23 Taito Zoom board: MN10200 program cache for flash U27 (512 KB at 0x080000-0x0FFFFF, taito_zm.cpp:116-117), docs/zoom_board_design.md 4.
- rtl/zoom/zoom_pcache.sv:48 The board sweeps while the Zoom is held in reset, which is the only time the main CPU writes U27 (MAME traces, all six games, docs/zoom_board_design.md 3.4).
- rtl/zoom/zoom_tbase.sv:17 Evidence: board clocking 25 MHz / 768 = 192 machine cycles per sample (docs/zoom_zsg2_tms57002_design.md 2.2); MAME 0.288 zsg2.cpp:137, taitogn.cpp:519-533, mn10200.cpp access timing (cited inline).
- rtl/zoom/zoom_tbase.sv:29 While the CPU is held in reset the cycles come from a real-time accumulator (the ZSG-2 keeps rendering in MAME while the MN10200 is held, taitogn.cpp:519-533).
- rtl/zoom/zoom_tbase.sv:34 An external access of the MN10200 lands at the end of its instruction in machine time (mn10200.cpp charges every cycle before the access), so before a ZSG-2 access the bus asks look_req with the instruction's cycles; a boundary inside that
- rtl/zoom/zoom_tbase.sv:48 MAME 0.288 computes the ZSG-2 stream rate as 25 MHz / 768 in integers, 32,552 Hz (zsg2.cpp:137), which is 6,250,000 / 32,552 = 192 + 16 / 32,552 cycles; the testbench uses that and loads the phase at each Zoom reset.
- rtl/zoom/zoom_tmsfeed.sv:16 Evidence: two TMS57002 instruction slots per MN10200 machine cycle from the one 25 MHz crystal (docs/zoom_board_design.md 6.3); MAME 0.288 access placement for host events (docs/zoom_board_design.md 15.1).
- rtl/zoom/zoom_tmsfeed.sv:38 Host events (I5, docs/zoom_board_design.md 15): a TMS57002 host byte or a PLOAD/CLOAD change carries its time in slots (ev_slot = 2 x the machine cycle count at the end of the writing instruction, where MAME places the access).
- rtl/zoom/zoom_wram.sv:16 Evidence: Sharp LH52B256 32 KB SRAM on the FC PCB (PLAN.md R7, docs/evidence_sources.md); MAME 0.288 taito_zm.cpp:121.
- rtl/zoom/zoom_wram.sv:23 The FC PCB carries one LH52B256 (32 KB, PLAN.md R7); MAME maps 128 KB at 0x400000-0x41FFFF (taito_zm.cpp:121).
- rtl/zoom/zsg2.sv:16 Evidence: MAME 0.288 zsg2.cpp (behaviour; there is no ZSG-2 data sheet) and MAME commit 61c7940 for register 0xB.
- rtl/zoom/zsg2.sv:17 zsg2.cpp:N below are MAME 0.288 line numbers; 61c7940 differs only in the register 0xB read (0.288 lines 477-480), so from line 481 on its numbers are one lower.
- rtl/zoom/zsg2.sv:23 Bench: sim/zsg2/ (replay against MAME).
- rtl/zoom/zsg2.sv:26 Written from docs/zoom_zsg2_tms57002_design.md (sections 3 and 6.2) and the behaviour of MAME's zsg2.cpp (0.288 and commit 61c7940); status and verification in docs/zsg2_rtl.md.
- rtl/zoom/zsg2.sv:38 The bus therefore sees the state MAME shows at the same sample position.
- rtl/zoom/zsg2.sv:46 reg 0xB read = vol >> 3 (MAME 61c7940); 0 = MAME 0.288
- rtl/zoom/zsg2.sv:54 Zoom reset: MAME device_reset semantics (zsg2.cpp:193-205)
- rtl/zoom/zsg2.sv:64 outputs after each pass (out_valid one clock): sends 0-3 = reverb, chorus, left direct, right direct; si0-si3 = the TMS57002 serial input words as taito_zm.cpp:205-208 routes them (sends 0/1 at 0.5) with SIM = 1 (tms57002.cpp:927-931)
- rtl/zoom/zsg2.sv:91 send gain table: 65535 * 10^(-(31 - i) / 20) truncated, entry 0 = 0 (MAME's -1 dB per step law, zsg2.cpp:148-154)
- rtl/zoom/zsg2.sv:106 ramp byte to step: low nibble sign-extended, XOR 8, shifted left by the high nibble, truncated to 16 bits, arithmetic shift right 4 (zsg2.cpp:494-499)
- rtl/zoom/zsg2.sv:117 one ramp step with clamp at the target (zsg2.cpp:501-510)
- rtl/zoom/zsg2.sv:125 decode sample i of a block: 42222222 51111111 60000000 ssss3333, 7-bit value left-aligned in 16 bits, arithmetic shift right by s (zsg2.cpp:249-262)
- rtl/zoom/zsg2.sv:139 position after the next block advance: cur + 1, or the loop point at the end; stop when loop + 1 >= end (zsg2.cpp:301-312).
- rtl/zoom/zsg2.sv:140 Positions are 17 bits so that start - 1 wraps like MAME's 32-bit cur_pos.
- rtl/zoom/zsg2.sv:163 registers: words 0-191 = channel ch registers 4w..4w+3 at {ch, w}; words 192-199 = control registers 0x00-0x1f (MAME m_reg)
- rtl/zoom/zsg2.sv:292 register fields (zsg2.cpp:365-465)
- rtl/zoom/zsg2.sv:453 ---------------- reset sweep (MAME device_reset) ----------------
- rtl/zoom/zsg2.sv:483 ---------------- apply one CPU write ---------------- Word offsets below 0x300 are channel registers (channel = offset >> 4, register = offset & 0xF; 0x9, 0xB and 0xF also update the channel state RAM); from 0x300 the control registers, off
- rtl/zoom/zsg2.sv:513 ---------------- key on / key off (zsg2.cpp:518-554) ----------------
- rtl/zoom/zsg2.sv:550 ---------------- CPU read ---------------- Control reads (zsg2.cpp control_r): 0x1E / 0x1F ROM readback data, 0x14 and anything from 0x20 read 0; channel register 0x3 carries the channel's active bit in bit 15, 0xB reads the volume >> READB
- rtl/zoom/zsg2.sv:578 ---------------- one sample: the channel pass (zsg2.cpp:286-361) ----------------
- rtl/zoom/zsg2_fetch.sv:17 Evidence: MAME 0.288 zsg2.cpp (m_mem_blocks, ROM readback registers 0x1c to 0x1f, control_w and control_r at zsg2.cpp:514-607).
- rtl/zoom/zsg2_fetch.sv:31 32-bit blocks present (MAME m_mem_blocks)
- README.md:19 There are MRAs for all 30 MAME 0.288 G-NET sets on Taito cards.
- README.md:71 "No Zoom board" sets do not use the Taito Zoom sound board (MAME `init_nozoom`); their sound comes from the PlayStation SPU.
- README.md:120 MAME gives no button names for these games and I have not found the game manuals, so most games show Button 1 to 3.
- README.md:148 Four sets use other controls, as MAME 0.288 maps them:
- README.md:173 With a fresh EEPROM the game stops on its CALIBRATION screen, as it does in MAME.
- README.md:221 **SFX Level**: the PlayStation SPU's level in the mix against the Zoom board: 0.3 (MAME's setting, the default), 0.45, 0.6, 0.9, 1.2, 1.5.
- README.md:233 Switch 4 is Test Mode (the operator manual says to use switch 4 only); switch 2 is the BIOS service mode in MAME; switches 1 and 3 are unknown.
- README.md:275 Beta 1, measured on my MiSTer against a direct board capture (2026-10-22): Shikigami no Shiro's attract demos 1 to 3 take 1.010, 1.005 and 1.090 of MAME's time,
- README.md:318 **Sound balance.** The SFX Level default follows MAME (0.3).
- README.md:333 The saved Psyvariar file holds the three card sectors the game writes for its GAME CONFIGURATION, the same three MAME writes.
- README.md:336 The TAITO logo is drawn by the BIOS and does not turn with the game's screen direction setting, in MAME as well.
- README.md:340 The real board and MAME lose them at power off.
- README.md:350 **Watchdog period.** The core uses 8 s where MAME uses 5 s. The board's real period is not known (the timing capacitor's value is not legible in any photo I hav
- README.md:354 MAME and a note from a real board give 59.826 Hz.
- README.md:354 A cabinet recording agrees with MAME to about 0.3%, which cannot tell the two apart; a frequency counter on a board would.
- README.md:387 [docs/ACCURACY.md](docs/ACCURACY.md) has the evidence for each subsystem and every known difference from MAME and from the real board.
- README.md:392 **GPU:** it matches the PS1 hardware test images of JaCzekanski's ps1-tests, which MAME does not, and keeps the ZN-2's 2 MB VRAM.
- README.md:394 **ZSG-2:** the volume readback is 13 bits, as in MAME's later fix (commit 61c7940).
- README.md:395 MAME 0.288 returns 16 bits, which corrupts the Zoom sound driver's voice allocator.
- README.md:414 The MAME reference traces need MAME 0.288 and your own files; the trace scripts are in `tools/mame/`.
- README.md:421 The MAME 0.288 sources used as the reference are not copied into the repository; [docs/mame_sources.md](docs/mame_sources.md) links each one at the exact versio
- README.md:487 MAME 0.288 closes JP1 by default for Kollon (V2.04JC) and Otenami Haiken Final so its flasher can run first; these MRAs keep it open for a normal boot.
- README.md:505 **MAME** is the behavioural reference for everything without a better source: the taitogn, zn and taito_zm drivers and the zsg2, tms57002, mn10200, psx, cat702,
- README.md:509 The core follows superctr's later ZSG-2 fix (MAME commit 61c7940).
Says it matches, follows or was checked against MAME — 6
- rtl/gnet/gnet_fc.sv:17 Evidence: MAME 0.288 taitogn.cpp:490-506 (flashbank_map) and the register map in docs/hardware_inventory.md 4; behaviour checked by lossless MAME 0.288 trace replay (docs/m2_glue_findings.md).
- rtl/gnet/gnet_flash.sv:38 Erase blocks: TE28F160 64 KB; E28F400B bottom boot 16 KB, 8 KB, 8 KB, 96 KB, then 128 KB (28F400B5 datasheet; same as MAME).
- rtl/zoom/tms57002.sv:46 Parameters select MAME 0.288 behaviour where it differs from the guide, for the bit-exact replay against MAME (sim/tms57002/tb.cpp): XM_CYCLES external RAM access length in slots: 6 = guide (DRAM, 8-bit port, 16-bit word: 2(m+1), p.3-
- rtl/zoom/zoom_board.sv:433 TMS57002 parameters (docs/tms57002_rtl.md 5): the guide's behaviour by default; TMS_MAME = 1 selects the set that is bit-exact with MAME 0.288
- README.md:297 Beta 1 always finishes a shape that is still making progress, and in simulation the frame matches MAME pixel for pixel, and on my MiSTer the game's attract now
- README.md:388 The Taito Zoom board was checked against MAME instruction by instruction and sample by sample.
Keeps a MAME approximation — 3
- rtl/gnet/gnet_ata.sv:46 Access width follows each access (MAME's m_8bit_data_transfers hack: byte accesses move one byte of the sector buffer, 16-bit accesses two).
- rtl/gnet/gnet_ctrl.sv:33 MAME uses 5 s, a guess.
- rtl/gnet/gnet_flash.sv:55 zoom_release puts U27 and the wave chips into read array mode (MAME taitogn.cpp control_w: "assume that this also readies the sound flash chips"; no board evidence).
Shares text with the MAME driver without saying so — 2