← All cores
S32
Cites hardware documentation that MAME's driver does not — 16
- rtl/sys32/eeprom_93c46.sv:3 System 32 wires it to 315-5296 port D outputs (bit7 = DI, bit6 = SCLK, bit5 = CS) with DO read back on port F bit 7 (MAME segas32.cpp hookup; schematic sheet 6: BR93C45AP at IC76).
- rtl/sys32/s32_msm6253.sv:11 Sega schematic 834-6510 I/O BD HOT ROD (1988): MSM6253RS pinout, S.O. on D7, A0/A1 written with /WR, ALE tied high (Q51).
- rtl/sys32/s32_sys.sv:321 NMI tied off: the schematic (sheet 7) wires the MB3771 power monitor here, and there is no arcade supply to watch
- rtl/sys32/s32_v60bus.sv:268 Two 8-bit lane arrays: a CPU byte write touches one lane, as on the real board, where the 315-5386 takes BUBE and BA0 on its CPU side and drives two write strobes, RWE0 (BD0-7 pair IC66/IC65) and RWE1 (BD8-15 pair IC64/IC63), to its four 64
- rtl/sys32/s32_v60bus.sv:520 The RAM is a single-port SRAM on the Z80's bus (IC16, sheet 7/9), so the 315-5385 raises the Z80's /BUSRQ and the V60 cycle waits for /BUSAK.
- rtl/sys32/s32_v60bus.sv:774 VRAM proper ($300000-$3FFFFF) takes byte writes as single lane writes, like the real board: the 315-5387 drives two write strobes to its four 64Kx4 VRAMs, EWR for the DQ0-7 pair and OWR for the DQ8-15 pair (schematics sheet 2/9, IC68-71 /WE
- rtl/sys32/s32_v60bus.sv:783 The palette keeps the read-first merge: sheet 5/9 gives the 315-5388 one write strobe per 8Kx8 SRAM pair and no byte enable on its CPU side, so a byte write there is not a native lane write (2026-10-31, docs/OPEN-QUESTIONS.md Q56).
- rtl/sys32/s32_v60bus.sv:789 Sprite RAM byte writes are lane writes too: sheet 3/9 gives the 315-5386 BUBE and BA0 on its CPU side and two write strobes (RWE0/RWE1) to its RAM pairs.
- rtl/sys32/s32_v60bus.sv:1253 byte strobes for register-class, VRAM and sprite RAM byte lanes; palette RMW-merged writes are full words (the 315-5388 has no byte enable, sheet 5/9)
- rtl/v60/v60.sv:54 non-maskable interrupt: the schematic (sheet 7) wires the MB3771 power monitor to NMI, and there is no arcade supply to watch, so s32_sys ties it off; the entry path is implemented.
- rtl/v60/v60.sv:1581 Figure 8-6; the bus carries 24 bits of it)
- rtl/v60/v60_regs.sv:32 - Privileged registers for ldpr/stpr, by the manual's register ID (LDPR p.7-52, STPR p.7-103, Figure 3-2): 0 ISP, 1-4 L0SP..L3SP, 5 SBR, 6 TR, 7 SYCW, 8 TKCW, 9 PIR (read-only), 15 PSW2.
- rtl/v60/v60_regs.sv:47 Reset values (manual Figure 8-6, p.8-20): PSW = 10000000h (IS set, level 0, interrupts masked), SYCW = 00000070h, TKCW = 0000E000h, PSW2 = 0000F002h.
- rtl/video/s32_video.sv:326 ---- $608000-$60FFFF palette 4-4-4 window ---- The palette is ONE physical 16K store exposed through TWO byte windows (schematic sheet 5).
- rtl/video/s32_video.sv:406 OREGB=1: the mixer reads a new entry every pixel, at addresses that jump all over the 16K RAM, so its read uses the M10K's own output register (see s32_tdp).
- README.md:427 **Sound levels.** The core models the board's stereo line-out filter, taken from the schematic: the FM treble roll-off, and the PCM chip's bass cut and reconstr
Reports a measurement taken on the original PCB — 1
- README.md:429 The schematic does not give the two DACs' output voltages, so the balance between FM and PCM was measured from a recording of a real board: PCM sits about 9 dB
Notes where it differs from MAME — 8
- rtl/sys32/mb8421.sv:22 That is a real outcome for two asynchronous CPUs (the reader's access starting just after the write), it never drops a write (MAME's atomic accesses never do), and it keeps the M10K's mixed-port read-during-write — DONT_CARE, i.e. garbage o
- rtl/sys32/s32_dspbd.sv:50 Command 3's answer differs from MAME's guessed $8000/$0001; the V60 reads it at boot and never uses it.
- rtl/v60/v60.sv:891 The mask pattern (extension byte) is ignored, as MAME ignores it: Rad Mobile passes #0, which masks nothing.
- rtl/v60/v60_regs.sv:27 One corner differs from MAME and is recorded as open (docs/OPEN-QUESTIONS.md Q68): ldtask at IS = 0 with the level in use left out of the walk keeps SP here, where MAME reloads it from the register.
- rtl/video/s32_mixer.sv:560 S32_MIX_SHADOW_MAME (benches only, sim/s32_video_mixfuzz.sh) takes MAME's order instead, so that a fuzz sample which differs from MAME can be told apart: this known difference, or a new one.
- rtl/video/s32_video.sv:484 MAME leaves these bits unread; S32_OPAQUE_MAME (benches only, sim/s32_video_mixfuzz.sh) does the same, so that a fuzz sample which differs from MAME can be told apart: this known difference, or a new one.
- README.md:384 **Interval timers** load and start on every write, a zero count included, as the hardware notes describe (MAME ignores a zero count).
- README.md:409 **Wait states.** Games program the bus controller's wait-state table, one setting per megabyte of the main CPU's address space, and the core applies it as 3-, 4
Cites MAME source — 320
- S32.sv:432 bit 0 coin wiring: 0 = World/Japan (JAMMA edge), 1 = US 4-player cabinet bit 1 vertical mirror: 1 = Holosseum's cabinet, which shows the monitor through a mirror (MAME ORIENTATION_FLIP_Y).
- S32.sv:436 bit 2 protection V25 opcode table: 0 = Golden Axe's, 1 = Arabian Fight's. The table is masked into the V25 part on the protection module, so it is board build, not wiring, but it is just as fixed per game (MAME sega_system32_ga2 vs sega_sy
- S32.sv:440 bit 3 two-player six-button harness (Burning Rival): buttons 4-6 of players 1 and 2 arrive on the 4-player I/O board's EXTRA2 port and EXTRA1/EXTRA3 are unused (MAME INPUT_PORTS_START(brival)).
- S32.sv:443 bit 4 FD1149 protection module 317-0212 (Burning Rival): s32_v60bus's flag-word rule (MAME init_brival).
- S32.sv:445 bit 5 FD1149 protection module 317-0204 (Dark Edge): s32_v60bus's vblank writes and $A00000 window (MAME init_darkedge) bit 6 837-8685 trackball I/O board (SegaSonic): three uPD4701A at $C00040/48/50, and the game's one-button, three-play
- S32.sv:454 byte 1 bit 0 837-7536 A/D board (Rad Mobile): one MSM6253 at $C00050 and the game's driving harness: the wheel, accelerator and brake on A/D channels 0-2, Light and Wiper on P1_A bits 1/2, every other P1_A/P2_A bit and START2 unused (MAME
- S32.sv:494 byte 2 bit 0 FD1149 protection module 317-0222 (The J.League 1994): s32_v60bus's browser hook on writes to $20F700/$20F704 (MAME init_jleague; docs/jleague-bringup.md) byte 2 bit 1 F1 Exhaust Note's seat, with byte 1 bit 0: the main seat
- S32.sv:498 The bridge board's RAM at $810000 and main/sub register at $818000 (s32_v60bus "bridge board"; MAME sega_system32_dual_direct, init_f1en), and the seat's harness: Gear Up and Gear Down, momentary buttons, on P1_A bits 0/1; every other P1_A
- S32.sv:506 The bridge board as F1 Exhaust Note's plus the partner's half of the boot handshake, and the 837-8341 DSP board at $A00000, a uPD77P25 running d7725.01 from the V25's ROM slot (s32_v60bus "bridge board", "DSP board"; MAME sega_system32_dual
- S32.sv:511 The harness: Button 1 / Button 2 on P1_A bits 0/1, START1/START2 unused; the flight stick X (reversed) / Y and the collective on A/D channels 0-2 (MAME INPUT_PORTS_START(arescue), the mainpcb half; docs/arescue-bringup.md)
- S32.sv:535 MAME segas32.cpp system32_generic + the 4-player extras, all active low: P1/P2/EXTRA1/EXTRA2: bit0 B1 bit1 B2 bit2 B3 bit4 DOWN bit5 UP bit6 RIGHT bit7 LEFT SERVICE12: bit0 SERVICE bit1 TEST bit2 COIN1 bit3 COIN2 bit4 START1 bit5 S
- S32.sv:550 Trackball harness (board_cfg[6], SegaSonic): each player has one button, P1's on P1_A bit 0, P2's on P2_A bit 0 and P3's on P1_A bit 2; every other bit of both ports is unused and reads high (MAME INPUT_PORTS_START(sonic)).
- S32.sv:555 Driving harness (board_cfg2[0], Rad Mobile): Light on P1_A bit 1 (pad 1 button 3), Wiper on bit 2 (pad 1 button 4); every other bit of P1_A and P2_A is unused and reads high (MAME INPUT_PORTS_START(radm)).
- S32.sv:560 Gear-shift harness (board_cfg2[1], Slip Stream): the lever stays where it is thrown, so pad 1 button 3 throws it, one press per change of gear (MAME stands in for the lever the same way, PORT_TOGGLE on "Gear Change").
- S32.sv:571 Gun harness (board_cfg2[2], Alien3): each gun's trigger (pad button 1) on bit 0 of its player's port and its button (pad button 2) on bit 1; bits 2-7 unused (MAME INPUT_PORTS_START(alien3)).
- S32.sv:575 Paddle-shift harness (board_cfg2[3], F1 Super Lap): Gear Up (pad button 3) on P1_A bit 0, Gear Down (button 4) on bit 1, Overtake (button 5) on bit 2, all momentary; bits 3-7 unused (MAME INPUT_PORTS_START(f1lap)).
- S32.sv:586 F1 Exhaust Note's seat (board_cfg3[1]): Gear Up (pad button 3) on P1_A bit 0, Gear Down (button 4) on bit 1, momentary; bits 2-7 unused (MAME INPUT_PORTS_START(f1en)).
- S32.sv:592 Its harness: Button 1 and Button 2 on P1_A bits 0/1, bits 2-7 unused, START1/START2 unused, Button 1 starts the game (MAME INPUT_PORTS_START(arescue), the mainpcb half); the flight stick and the collective are on the A/D board (below).
- S32.sv:622 Six-button harness (board_cfg[3], Burning Rival): EXTRA2 carries buttons 4-6 of players 1 and 2 in MAME INPUT_PORTS_START(brival)'s bit order, bits 3 and 6 unknown (read high); EXTRA1 and EXTRA3 are unused.
- S32.sv:632 The US programs are built for the dedicated 4-player cabinet, whose coin switches 1/2 arrive on the 4-player I/O board (EXTRA3 bits 3/2), and the JAMMA-edge bits become COIN4/COIN3 (MAME segas32.cpp INPUT_PORTS_START(ga2u)).
- S32.sv:651 The game ignores a press in its first frames (MAME: frame 2 ignored, frame 30 accepted), so the switch is only armed ~2 s (2^27 clk_sys) after rst_core releases: a switch already On at load opens the menu once the game is running.
- S32.sv:687 The PCB's own push switches SW1/SW2 (MAME "Push SW1 (Service)" / "Push SW2 (Test)") follow the same two buttons.
- S32.sv:693 A real ball turns two optical encoders, and the uPD4701A counts their edges continuously; here every source adds steps as they arrive, never once a frame (docs/sonic-bringup.md §3): - P1: the PS/2 mouse, one count per mouse count (MAME's se
- S32.sv:705 A held d-pad direction counts as a deflection of 117, ~1,797 counts a second, which is MAME's digital speed (PORT_KEYDELTA(30): 30 counts a frame at 59.9 Hz).
- S32.sv:710 Directions follow MAME's ports: the X counter runs DOWN as the ball rolls right (PORT_REVERSE on TRACKX), the Y counter up as it rolls toward the player (screen down).
- S32.sv:779 The cabinet's wheel and pedals are potentiometers that the MSM6253 converts continuously, so each channel here is simply the control's current position (MAME INPUT_PORTS_START(radm): ch0 wheel, centre $80; ch1 accelerator and ch2 brake, rel
- S32.sv:854 Air Rescue (ar_seat): ch0 the flight stick's X, reversed (MAME ANALOG1, AD_STICK_X with PORT_REVERSE: full right reads $00), ch1 its Y (ANALOG2, full down reads $FF), ch2 the collective (ANALOG3, AD_STICK_Z); all centre $80, ch3 not connect
- S32.sv:857 The stick is pad 1's left stick, or the d-pad: while the left stick rests in its dead zone and a direction is held, or the d-pad's position has not yet sprung back to centre, that axis follows the d-pad, 3 counts per 2^18 clk_sys towards th
- rtl/sys32/eeprom_93c46.sv:3 System 32 wires it to 315-5296 port D outputs (bit7 = DI, bit6 = SCLK, bit5 = CS) with DO read back on port F bit 7 (MAME segas32.cpp hookup; schematic sheet 6: BR93C45AP at IC76).
- rtl/sys32/eeprom_93c46.sv:27 MAME's eepromser.cpp does the same.
- rtl/sys32/eeprom_93c46.sv:40 Were those erases carried out the game would wipe its own settings after every save and start from defaults at every power-on, which is what it does in MAME.
- rtl/sys32/eeprom_93c46.sv:49 the self-timed programming cycle in clk (below); a parameter so that sim/eeprom_93c46/replay.sv can follow a MAME pin log, whose cycle is shorter
- rtl/sys32/s32_board.sv:572 A shadow write (fb_shadow) carries no data: it clears bit 15 of the stored word (MAME render_one_sprite `dest &= 0x7fff`; s32_fbddr does it by read-modify-write).
- rtl/sys32/s32_dpad_axis.sv:5 References: MAME latest master src/mame/sega/segas32.cpp: INPUT_PORTS_START(radm) ANALOG1 (IPT_PADDLE, the wheel) and INPUT_PORTS_START(arescue) ANALOG1/ANALOG2 (IPT_AD_STICK_X/Y, the flight stick): both centre $80, both driven from digital
- rtl/sys32/s32_dsp7725.sv:1 s32_dsp7725.sv — NEC uPD7725 (the uPD77P25 on Air Rescue's 837-8341 DSP board): the 16-bit fixed-point DSP, running its internal program from the dumped image (MAME ROM_START(arescue) "d7725.01", 10 KB).
- rtl/sys32/s32_dsp7725.sv:5 References: MAME latest master a40c1f06196, src/devices/cpu/upd7725/upd7725.cpp (necdsp_device, by byuu and R. Belmont): execute_run (one opcode per clock, the interrupt's NOP + LCALL $100 pair, the multiplier after every instruction), exec
- rtl/sys32/s32_dsp7725.sv:17 2-25..2-38): 122 ns instruction cycle at 8.192 MHz, so one instruction per input clock; 2048 x 24 program ROM, 1024 x 16 data ROM, 256 x 16 data RAM; 4-level stack; INT is level-sensitive (2-29), minimum pulse 3 clocks (2-37); instruction o
- rtl/sys32/s32_dsp7725.sv:24 Where this core follows the chip rather than MAME's shared 7725/96050 core (none of these is reachable from the Air Rescue program, docs/ arescue-bringup.md §3): PC 11 bits, DP 8 bits, RP 10 bits, a 4-level circular stack (MAME: 16-bit regi
- rtl/sys32/s32_dsp7725.sv:32 The serial ports are not wired on the 837-8341 as far as is known: SI reads 0 and SO goes nowhere (MAME emulates neither).
- rtl/sys32/s32_dsp7725.sv:45 ROM loading: ld_addr is the byte offset in d7725.01 as MAME's regions slice it: $0000-$1FFF the program, 2048 32-bit big-endian words whose top 24 bits are the instruction (the low byte is $FF padding); $2000-$27FF the data ROM, 1024 16-bit
- rtl/sys32/s32_dsp7725.sv:110 The write goes to the DP the instruction started with (dram_wa): an OP that stores to RAM and steps or flips DP in its DPL/DPH fields stores first (MAME exec_op: exec_ld writes at m_dp, then the DP modify), and by the write's edge dp is alr
- rtl/sys32/s32_dsp7725.sv:126 ------------------------------------------------------------ registers power-up values as declaration initialisers (the reset below clears only what MAME's device_reset clears)
- rtl/sys32/s32_dsp7725.sv:149 MAME data_r: 8-bit mode the low byte; 16-bit mode low then high
- rtl/sys32/s32_dsp7725.sv:175 INT is a level, taken whenever EI is set (data sheet p. 2-29; MAME: a rising edge).
- rtl/sys32/s32_dsp7725.sv:182 MAME data_w
- rtl/sys32/s32_dsp7725.sv:196 MAME data_r
- rtl/sys32/s32_dsp7725.sv:274 a move into the accumulator the ALU selects makes the ALU operation a NOP, flags held (data sheet p. 2-31; MAME updates the flags)
- rtl/sys32/s32_dsp7725.sv:335 -------- the move (MAME exec_ld), OP/RT and LD
- rtl/sys32/s32_dsp7725.sv:417 ---- ph4: the multiplier (MAME: after every instruction)
- rtl/sys32/s32_dspbd.sv:5 References: MAME latest master a40c1f06196: segas32.cpp segas32_upd7725_state (the uPD7725 at 16 MHz / 2 "on the 837-8341 daughterboard which plugs into the socket on the main pcb's ROM board where an fd1149 could go", left disabled: "TODO:
- rtl/sys32/s32_dspbd.sv:10 TODO: trace out the 837-8341 pcb"); segas32_m.cpp arescue_dsp_r/_w, MAME's stand-in for the board, and its comment: "a00000 - a00002 dsp i/o, a00004 - dsp int/ack; dsp uses its p0/p1 for address select: sr = ???0 read a00000 into dsp.a, ???
- rtl/sys32/s32_dspbd.sv:43 The reset path posts twice ($0000, then $1234 after ~750 DSP clocks of RAM clear with interrupts off), so a command written between the two is dropped: the boot's command 1 after its command 0, whose effect (DP = 0) the reset already leaves
- rtl/sys32/s32_dspbd.sv:53 The DSP clock is 16 MHz / 2 (MAME), from clk by a fractional accumulator: 80000 / 644318 = 8.000 MHz / 64.4318 MHz.
- rtl/sys32/s32_gun_aim.sv:4 References: MAME latest master src/mame/sega/segas32.cpp INPUT_PORTS_START(alien3): ANALOG1/ANALOG2 P1 gun X/Y, ANALOG3/ANALOG4 P2 gun X/Y (IPT_AD_STICK_X/Y, centre $80; Y PORT_MINMAX(0x01, 0xff)); sega_system32_analog: adc.set_input_tag<0.
- rtl/sys32/s32_gun_aim.sv:107 the stick as a pointer: {Y, X}, Y kept at or above y_lo as MAME's port is
- rtl/sys32/s32_i8255.sv:7 Modes 1 and 2 (strobed, bidirectional) are not modelled: System 32 only uses mode 0 (MAME segas32), and a mode 1/2 control word behaves as mode 0 here.
- rtl/sys32/s32_intctl.sv:11 MAME's signal_v60_irq marks every such vector, and the lower-priority ones then fire one after another as each is acknowledged; this module copied that until this date.
- rtl/sys32/s32_intctl.sv:14 Every game in the library gives the five vectors five different sources (the vecsrc lines of tools/mame/s32_timer_census.lua, all 18 games), so no game can tell.
- rtl/sys32/s32_intctl.sv:33 Timers (rates per MAME segas32 int_control_w, consistent with the notes' relative speeds): Timer A counts once per 2048 cycles of 16.10795 MHz (~7.865 kHz), Timer B once per 256 cycles of 3.125 MHz (~12.21 kHz).
- rtl/sys32/s32_intctl.sv:42 MAME's int_control_w drops a zero duration ("if (duration)") and never fires, which the core used to copy.
- rtl/sys32/s32_intctl.sv:92 count configuration registers, separate from the live counters: like MAME (int_control_w cases 8-11), every write recomputes the duration from both stored bytes and restarts the timer
- rtl/sys32/s32_io5296.sv:5 Behaviour per MAME 315_5296.cpp (the game's I/O self-check toggles output ports and verifies the latch readback): 0-7 ports A-H: dir bit set -> read back the output latch, else the input port 8-B 'S','E','G','A' protection bytes C/E CNT
- rtl/sys32/s32_io5296.sv:10 On System 32 single MAME wires out_cnt1 (bit 1) to display_enable_w: the game clears it across scene transitions and the screen blanks (s32_sys routes cnt[1] to s32_video's display-enable blank).
- rtl/sys32/s32_io5296.sv:19 A port set as an input does not drive its pins: `out_pins` carries the latch only where the direction bit is 1 and 0 elsewhere, as MAME's device does (write, cases 0-7 and 0xf: the port callback gets the latch on a write to an output port a
- rtl/sys32/s32_io5296.sv:25 No game in the library writes those bits while the port is an input (tools/mame/s32_iodir_census.lua, OPEN-QUESTIONS Q72), so nothing a game does changes; what the undriven pins really sit at on the board (pull resistors) is the open half o
- rtl/sys32/s32_io5296.sv:34 That is MAME's order and this module's.
- rtl/sys32/s32_jpdrive.sv:9 MAME latest master src/mame/sega/segas32.cpp ROM_START(jpark): region cpu2 epr-13908.xx "cabinet movement" (the drive board's Z80 program, not emulated); init_jpark() patches the program at $C15A8 ("Temp.
- rtl/sys32/s32_jpdrive.sv:27 MAME with the patch removed and this reply answered from a Lua tap passes it (151/151 compares) and boots (tools/mame/jpark_probe.lua JP_RAW=1 JP_DRIVE=1).
- rtl/sys32/s32_msm6253.sv:1 s32_msm6253.sv — OKI MSM6253 8-bit 4-channel A/D converter, as used on Rad Mobile's 837-7536 A/D board (MAME sega_system32_analog: one chip at $C00050-$C00057, even bytes, repeating every $80 through $CFFFFF).
- rtl/sys32/s32_msm6253.sv:5 References: MAME latest master src/devices/machine/msm6253.cpp (address_w, d7_r, shift_out) and src/mame/sega/segas32.cpp system32_analog_map / INPUT_PORTS_START(radm) (ch0 wheel, ch1 accelerator, ch2 brake).
- rtl/sys32/s32_msm6253.sv:9 MAME segas32.cpp ROM_START(radm) comment: "A/D BD NO. 837-7536".
- rtl/sys32/s32_msm6253.sv:16 Bus view (MAME): write, any data, to word offset n -> the shift register loads channel n & 3's conversion result read, any of the four words -> D7 = the shift register's MSB, D0-D6 open bus (1s); then the register shifts left, 0 in
- rtl/sys32/s32_msm6253.sv:25 The chip converts continuously and keeps a latch per channel; MAME reads the input port at the write, and so does this model (ain* are the live values).
- rtl/sys32/s32_pedals.sv:4 References: MAME latest master src/mame/sega/segas32.cpp INPUT_PORTS_START(radm): ANALOG2 IPT_PEDAL (accelerator), ANALOG3 IPT_PEDAL2 (brake), both released $00; the same channels in (radr), (slipstrm), (f1lap) and (f1en).
- rtl/sys32/s32_pedals.sv:9 MiSTer Main input.cpp (QUIRK_WHEEL, mister_framework/main @915ca33, lines 3952-3985): a recognised wheel sends its steering on the left stick X, its accelerator on the LEFT stick Y and its brake on the RIGHT stick Y, each pedal 0 released .
- rtl/sys32/s32_sys.sv:214 The 416-pixel mode's dot is the 315-5387's 8.053975 MHz (32.2159 MHz / 4, s32tech / segas32_v.cpp), exactly clk / 8.
- rtl/sys32/s32_sys.sv:550 timer enables per MAME rates: A = 16.108M/2048, B = 3.125M/256 (12.21 kHz).
- rtl/sys32/s32_sys.sv:720 315-5296 CNT bit 2 = SRES: resets the Z80, both YM3438s (/IC) and the RF5C105 PCM chip (schematic sheets 6 and 8; MAME out_cnt2 -> sound_reset).
- rtl/sys32/s32_sys.sv:750 315-5296 CNT bit 1 = display enable (MAME io_chip.out_cnt1 -> display_enable_w; segas32_v.cpp:2098 shows black while it is clear).
- rtl/sys32/s32_sys.sv:758 mixer sprite group mode 0-3 -> the sprite engine's pixel bit 15 (s32_mixer "sprite grouping"; MAME #16651, Q53)
- rtl/sys32/s32_upd4701.sv:5 References: MAME latest master src/devices/machine/upd4701.cpp (read_xy, d_r, reset_xy_w, cs_w) and src/mame/sega/segas32.cpp system32_trackball_map / INPUT_PORTS_START(sonic).
- rtl/sys32/s32_upd4701.sv:9 NEC uPD4701A pinout (MAME upd4701.h): 12-bit up/down counters per axis, /CS, X/Y and U/L select the byte on D0-D7, RESET X / RESET Y pins, /LEFT /RIGHT /MIDDLE switch inputs reported in D4-D7 of the upper byte.
- rtl/sys32/s32_upd4701.sv:14 Bus view (MAME read_xy): offset[1] = X/Y, offset[0] = upper/lower byte.
- rtl/sys32/s32_upd4701.sv:15 lower byte = count[7:0] upper byte = {any-switch, left, right, middle, count[11:8]} (NEC data sheet IC-3303, Fig. 3 and Table 1, pp.3/5: bits 7-4 = SF, L, R, M; the switch inputs are active low, the status bits active high, and the inputs h
- rtl/sys32/s32_upd4701.sv:24 Sega's 1988 Hot Rod I/O board, 834-6510, ties them to the supply, which reads $0x as here.) A write resets both axes of this chip only: the board NORs its '138 write output with /VLWR into RESET X and RESET Y together (Q50, 2026-11-07; MAME
- rtl/sys32/s32_upd4701.sv:34 MAME counts once a frame instead (upd4701_device::update).
- rtl/sys32/s32_v25.sv:1 s32_v25.sv — NEC V25 subset core for the System 32 V25 protection modules: Golden Axe's 315-5533-02 and Arabian Fight's (MAME builds both as SEGA_S32_V25_DEVICE; only the V25's opcode table differs).
- rtl/sys32/s32_v25.sv:3 Executes the original mcu ROM: the ROM address-line scramble is undone combinationally on the fetch address and the per-instruction opcode encryption through a 256-entry LUT, exactly as the real module does (MAME decrypt_protrom + ga2_opcod
- rtl/sys32/s32_v25.sv:18 cen is fX, the oscillator (10 MHz, MAME's V25 device clock).
- rtl/sys32/s32_v25.sv:83 ---------------------------------------------- opcode decryption ga2_opcode_table / arf_opcode_table (segas32_m.cpp); FF = an entry the table leaves undefined (MAME decrypts those to 00, but neither program executes one: tools/v25_trace_cen
- rtl/sys32/s32_v25.sv:128 ROM address-line descramble (MAME decrypt_protrom bitswap<16>)
- rtl/sys32/s32_v25.sv:816 ---------------------------------------- push/pop A word on the 8-bit bus goes out low byte first, at the ascending address, as MAME's write stream shows (golden sim/golden/arf_v25).
- rtl/sys32/s32_v60bus.sv:11 Map (MAME system32_map; mirrors per s32tech "Memory map"): 000000-1FFFFF / F00000+ program ROM 200000-2FFFFF work RAM, 64KB (16K x 32, dual-port so an unaligned access can read a word and the next one together) 300000-3FFFFF + 600000-6FFF
- rtl/sys32/s32_v60bus.sv:147 ---- trackball board (SegaSonic's 837-8685, board descriptor bit 6): three uPD4701A at I/O offsets 40-47 / 48-4F / 50-57, even bytes (MAME system32_trackball_map).
- rtl/sys32/s32_v60bus.sv:157 ---- A/D board (Rad Mobile's 837-7536, descriptor byte 2 bit 0): one MSM6253 at I/O offsets 50-57, even bytes (MAME system32_analog_map).
- rtl/sys32/s32_v60bus.sv:314 ------------------------------------------------- bridge board F1 Exhaust Note (brg_board): MAME builds the cabinet as two analog boards, one per seat, and a bridge board "sitting underneath the ROM board bridging 2 PCBs (not a network link
- rtl/sys32/s32_v60bus.sv:326 The boot code takes the main role on bit 0 = 0 (FF6394), times out waiting for the other seat and plays unlinked; on open bus it would take the sub role and wait forever at FF63ED (MAME, tools/mame/f1en_probe.lua).
- rtl/sys32/s32_v60bus.sv:330 What drives the bit on a real cabinet, and how its RAM powers up, is Q63; the $FF fill is MAME's. Writes to the register and to the open part of the window are dropped.
- rtl/sys32/s32_v60bus.sv:338 With no partner the core applies that AND to every write of byte $810001, which is what the partner does to it within the handshake; MAME with the main board's bridge RAM private and only this answered matches the two-board run pixel for pi
- rtl/sys32/s32_v60bus.sv:405 F1 Exhaust Note's bridge board (MAME init_f1en's handlers)
- rtl/sys32/s32_v60bus.sv:407 Dark Edge's FD1149 answers the mailbox window instead: reads $FFFF, writes ignored (MAME darkedge_protection_r/_w) Air Rescue's DSP board (see "DSP board")
- rtl/sys32/s32_v60bus.sv:435 ga2 and spidman write 00 00 03 02 02 00 00 02 0x 00 00 00 03 02 00 00 (latest MAME master, write tap at $E00000, 2026-11-01): no region is ever short.
- rtl/sys32/s32_v60bus.sv:437 MAME stores the table and ignores it.
- rtl/sys32/s32_v60bus.sv:450 Two real ga2 boards on footage run the attract's load segments at 1.7-2.4x MAME's flat 8 clk/instruction, the core with every cycle 3 clocks at 1.25x (docs/OPEN-QUESTIONS.md Q39); with ETMG_LONG_W = 1 the bus-bound LZ decompressor (tools/pc
- rtl/sys32/s32_v60bus.sv:542 MAME models the result: a 16-bit read of $20BA00, $20BA04 or $20BA06 returns 0, every other read returns work RAM (segas32_m.cpp brival_protection_r; the handler covers exactly $20BA00-$20BA07, no mirror).
- rtl/sys32/s32_v60bus.sv:546 MAME's V60 runs a 16-bit bus, so the rule applies per halfword: a halfword is forced to 0 only when the access covers both of its bytes (an aligned halfword, or a halfword inside a dword).
- rtl/sys32/s32_v60bus.sv:551 MAME's other half, brival_protection_w (a write at $A00800-$A0080A copies a 16-byte ROM string into protection RAM), has no V60-visible effect: nothing maps that RAM for reading, and the game's read-back check of it at $A00000/$A00100 is de
- rtl/sys32/s32_v60bus.sv:575 MAME models it with a hook that runs at every vblank-in (segas32_m.cpp darkedge_fd1149_vblank, called from start_of_vblank_int): word 0 to $20F072 and $20F082, and if byte $20A12C is nonzero it is decremented, with byte $20A12E set to 1 whe
- rtl/sys32/s32_v60bus.sv:589 MAME runs the hook between V60 instructions; here it can fall between the bus cycles of one instruction.
- rtl/sys32/s32_v60bus.sv:601 ------------------------------- FD1149 vblank writes (f1lap) F1 Super Lap (f1lap, f1lapj) carries FD1149 317-0210 (MAME's header above ROM_START(f1lap)), undumped like the others.
- rtl/sys32/s32_v60bus.sv:603 MAME's hook, run at every vblank-in (segas32_m.cpp f1lap_fd1149_vblank): byte 0 to $20F7C6, and if byte $20EE81 reads $FF it is set to 0 ("needed to start a game").
- rtl/sys32/s32_v60bus.sv:606 The factory-unprotected set f1lapt has no hook and does not get this model (MAME init_f1lapt).
- rtl/sys32/s32_v60bus.sv:607 The two programs are different builds, not a patch of one another, so unlike SegaSonic's the module's effect is MAME's reading, not one proved from the code (docs/f1lap-bringup.md; Q57).
- rtl/sys32/s32_v60bus.sv:611 The module takes the bus exactly as Dark Edge's does (fd_go, the same four-state shape and read timing): A_FL0 $20F7C6 = 0; set up the read of $20EE80 (lane 1 = $EE81) A_FL1 BRAM read A_FL2 OREGA stage A_FL3 $20EE81 = 0 if it read
- rtl/sys32/s32_v60bus.sv:621 ----------------------------------- FD1149 state copy (dbzvrvs) Dragon Ball Z: V.R. V.S. carries FD1149 317-0215/0217 (MAME's header above ROM_START(dbzvrvs)), undumped like the others.
- rtl/sys32/s32_v60bus.sv:623 MAME's handlers on $A00000-$A7FFFF (segas32_m.cpp dbzvrvs_protection_r/_w): a read returns $FFFF, and a write, at any address and of any value, copies the work RAM word at $200044 to $2080C8.
- rtl/sys32/s32_v60bus.sv:626 What the game does with it (MAME latest master, tools/mame/dbzvrvs_probe.lua; docs/dbzvrvs-bringup.md §5): once a frame, in its vblank handler, it writes $1800 to $A00000 and polls $A00001 until bit 7 reads 1 (0A572C: mov.h #1800, A00000 /
- rtl/sys32/s32_v60bus.sv:634 The real module's timing and its reply to the $1800 command are not known (Q60); here, as in MAME, the copy is part of the trigger write and the window always reads ready.
- rtl/sys32/s32_v60bus.sv:647 ---------------------------------------- FD1149 level load (sonic) SegaSonic rev C carries an FD1149, 317-0213 (MAME's comment above ROM_START(sonic)).
- rtl/sys32/s32_v60bus.sv:649 MAME models it as a write handler on $20E5C4-5 (segas32_m.cpp sonic_level_load_protection): the word written there is the count of cleared stages n; the module sets $20F06E to the next stage, 7 for n = 0 and otherwise the BIG-endian halfwor
- rtl/sys32/s32_v60bus.sv:663 A_SN0 the write lands; set up the read of the $20E5C4 word (a byte write still triggers, and MAME then uses the whole word) A_SN1/2 BRAM read latency (A_WRAM1/1B) A_SN3 n in hand; n = 0 -> level 7, else point the ROM data adapter at the
- rtl/sys32/s32_v60bus.sv:688 ------------------------------------- FD1149 browser hook (jleague) The J.League 1994 (jleague, jleagueo) carries FD1149 317-0222 (MAME's header above ROM_START(jleague); svs's header names the same part and MAME gives svs no hook).
- rtl/sys32/s32_v60bus.sv:691 MAME's write handler on work RAM $20F700-$20F705 (segas32_m.cpp jleague_protection_w) lets the write land, then, with `data` the handler's raw 16-bit argument: offset 0 ($20F700): byte $20F708 = the low byte of the word at program ROM $7BBC
- rtl/sys32/s32_v60bus.sv:703 Rev A (jleague) does both in software (07855F `mov.b #8, 16[R25]`; 078AB6 a byte table at $7BB90), and that table is exactly MAME's rule on jleagueo's word table at $7BBC0 for the 12 teams, so the effect is settled the way SegaSonic's is; h
- rtl/sys32/s32_v60bus.sv:710 The bus unit gives the fabric MAME's handler calls one for one: a byte at any address or an even-aligned word (v60_bcu split table).
- rtl/sys32/s32_v60bus.sv:712 A word's `data` is the word; a byte's is the byte in its own lane (MAME shifts a byte into the lane its address selects), so a byte at $20F701/$20F705 has data = byte << 8.
- rtl/sys32/s32_v60bus.sv:796 The bridge RAM takes byte writes as lane writes as well (MAME's 16-bit handler applies mem_mask: COMBINE_DATA in dual_pcb_comms_w); f1en writes it a byte at a time (FF63CA, FF6431, FE7EFB).
- rtl/sys32/s32_v60bus.sv:954 MAME maps it at $A00000-$A00007 only (init_arescue); the rest of the window reads open bus here, and writes there are dropped.
- rtl/sys32/s32_wheel_slew.sv:16 MAME shows it the same way (tools/mame/radm_wheel_probe.lua: the wheel snapped $FF -> $80 leaves $20F02C at $FF).
- rtl/v60/v60.sv:56 Edge-triggered (MAME v60.cpp execute_set_input), fixed vector table slot 2 (v60_do_irq(2)), taken regardless of PSW.IE; further NMIs are held off until RETIS (NEC manual ch.8: "another NMI will not be acknowledged until ...
- rtl/v60/v60.sv:357 F7a/F7b put an extension byte between the operands; F7c puts its one extension byte after both (MAME F7cDecodeOperands; radmu's `insbfr #1, R11@[R17], #1` is
- rtl/v60/v60.sv:655 MAME agrees: setf #B stores 0 even with GT-true flags.
- rtl/v60/v60.sv:721 (That the chip tests before it evaluates the operands is the reading of "before the instruction executes"; the manual gives no bus trace.) MAME checks privilege nowhere.
- rtl/v60/v60.sv:752 MAME has neither exception.
- rtl/v60/v60.sv:800 Until 2026-11-23 the core took the offset's low five bits (MAME shifts by the whole value, which an x86 host reduces the same way).
- rtl/v60/v60.sv:853 (MAME WriteAM, no read)
- rtl/v60/v60.sv:888 adddc/subdc/subrdc (NEC V60 manual ADDDC p.7-6, SUBDC p.7-107, SUBRDC; MAME opADDDC/opSUBDC/opSUBRDC, op7a.hxx): two packed-BCD digits per byte.
- rtl/v60/v60.sv:893 Invalid digits raise a Decimal Format exception on the real CPU; like MAME, this computes with them instead (docs/radm-bringup.md §4).
- rtl/v60/v60.sv:1102 Each operand resolves to a byte base (op1/op2_ea_q) plus a signed bit offset (bs_off1/2); the loop keeps the current source and destination bytes cached, as MAME's opMOVBSU/D (op7a.hxx) does, and moves one bit per cycle.
- rtl/v60/v60.sv:1120 bit fields (extbfs/z/l, insbfr/l; NEC V60 manual EXTBF p.7-41 and INSBF p.7-49; MAME opEXTBF*/opINSBF*, op7a.hxx).
- rtl/v60/v60.sv:1155 Until 2026-11-23 a down-copy with two different lengths moved the HEAD min(slen, dlen) elements of both strings, as MAME's opMOVSTRDB/DH do, while leaving R28 / R27 as a move from the tails does (MAME's own formulas); with equal lengths, th
- rtl/v60/v60.sv:1212 The chip first checks the digits (0-9) and, for zoned data, the zone nibbles against the pattern's, and raises Decimal Format with the destination unchanged; like MAME (opCVTDPZ / opCVTDZP) and like adddc here, the core computes with what i
- rtl/v60/v60.sv:1376 quotient at EA, remainder at EA+4 (MAME opDIVUX)
- rtl/v60/v60.sv:1482 priority: a new source byte, then the finished destination byte, then the new destination byte (MAME's order within one bit: src refill first, then dst write + refill)
- rtl/v60/v60.sv:1552 mov.w [sp+], dst" (manual p.7-79), so the word is read and SP stepped first (S_EXEC, S_POP_RD) and the destination's address is formed from the stepped SP: `pop 4[sp]` stores at the old SP + 8 (MAME opPOP does the same).
- rtl/v60/v60.sv:1643 External IRQs use the bus-supplied vector: the 315-5385 drives 0x40 + n during IACK (MAME update_irq_state), so the table slot is 64 + n, not n. The NMI uses the FIXED architectural slot 2 (MAME v60_do_irq(2)).
- rtl/v60/v60.sv:2030 MAME's update_psw_for_exception also clears IE; the manual is followed, as for CHLVL and Zero Divide (docs/OPEN-QUESTIONS.md Q52, 2026-11-04)
- rtl/v60/v60.sv:2067 MAME's update_psw_for_exception also clears IE here; the manual is followed (docs/OPEN-QUESTIONS.md Q52).
- rtl/v60/v60.sv:2109 "The ISP becomes the current stack pointer during the execution of the STTASK instruction" (p.7-104): PSW.IS is set, and stays set until the ldtask that follows clears it (MAME opSTTASK does the same).
- rtl/v60/v60.sv:2124 dest.w <- PSW (NEC V60 manual p.7-46; MAME opGETPSW / v60ReadPSW).
- rtl/v60/v60.sv:2125 psw[3:0] already holds Z/S/OV/CY in MAME's bit order, so the register is the value.
- rtl/v60/v60.sv:2161 num was read before the push, so an operand through SP or FP sees the old registers (MAME opPREPARE likewise).
- rtl/v60/v60.sv:2185 MAME's brkv takes the exception whatever OV is and writes a count of 4; its trapfl is a fatalerror.
- rtl/v60/v60.sv:2219 MAME skips both too.
- rtl/v60/v60.sv:2226 The port operand is an address in the I/O space ("I/O space accesses are always generated by the execution of the privileged IN and OUT instructions", p.4-10); MAME takes it the same way (ReadAMAddress).
- rtl/v60/v60.sv:2237 The manual prints opcodes 21/23/25 on both pages; IN is 20/22/24, the even code of each pair (MAME's table, and the uPD70632 data sheet's: IN ends in 0, OUT in 1).
- rtl/v60/v60.sv:2261 MAME's opCHKAR/W/E write the same flags.
- rtl/v60/v60.sv:2285 MAME has no caxi.
- rtl/v60/v60.sv:2308 call (NEC V60 manual p.7-15; MAME opCALL): [-SP] <- AP (write comb), AP <- EA(arg), then S_CALL2 pushes next PC and jumps.
- rtl/v60/v60.sv:2331 No game runs one and MAME has none.
- rtl/v60/v60.sv:2352 MAME has no cmpbf.
- rtl/v60/v60.sv:2389 MAME skips halt ("It should wait for an interrupt").
- rtl/v60/v60.sv:2418 MAME skips brk (its commented-out code pushes PC+1 too).
- rtl/v60/v60.sv:2499 MAME takes no trap at all (docs/OPEN-QUESTIONS.md Q3).
- rtl/v60/v60.sv:2553 ret (NEC V60 manual p.7-86; MAME opRET): the second word is AP (R29), not the PSW.
- rtl/v60/v60.sv:2798 MAME (opMOVSTRUB/UH, bStop) moves it too, leaves the pointers ON it and never writes CY.
- rtl/v60/v60.sv:2821 MAME opCMPSTRB/H (op7a.hxx) agrees on the flags but writes R28/R27 = LENGTH + i, not the addresses the manual specifies; this follows the manual, as the core's movcu/skpcu already do for the same registers.
- rtl/v60/v60.sv:2836 MAME writes the fill character into memory behind the shorter string and compares the shorter length only.
- rtl/v60/v60.sv:2847 MAME tests the stop character only after an equal pair and leaves Z = 0 there.
- rtl/v60/v60.sv:2877 MAME opMOVSTRUB/UH(bFill=1, bStop=0), op7a.hxx, agrees: fill only when slen < dlen.
- rtl/v60/v60.sv:2882 MAME's two sizes disagree with each other here (the byte form fills the tail behind a head-aligned copy, the halfword form the head, over what it has just copied); its final R28 / R27 are these.
- rtl/v60/v60.sv:2892 (str_a1, the element address at the final index) movcfu: str_i has run on through the fill, but R28 is the next SOURCE element = src + min*elem (manual "address of the next logical character"; MAME R28 = m_op1 + i taken before the fill loop
- rtl/v60/v60.sv:2903 MAME opSEARCHDB/DH agree on R28.
- rtl/v60/v60.sv:2913 For skpcd the start is the tail, so this is NOT the element's index from the head, which MAME writes (opSEARCHDH R27 = i); docs/OPEN-QUESTIONS.md Q47.
- rtl/v60/v60.sv:2928 the downward form starts at the LAST bit of each string (offset + len - 1, as MAME's opMOVBSD); a bit address is byte (offset >>> 3), bit (offset & 7)
- rtl/v60/v60.sv:3044 empty search: Z = 1, dst = 0, R28 untouched (MAME's loop never runs)
- rtl/v60/v60.sv:3071 sch0bsu / sch1bsu (NEC V60 manual SCH0BS p.7-94 / SCH1BS p.7-95; MAME opSCHBS, op7a.hxx): scan upward for the first 0 (or 1) bit; dst = its offset from the string start (Z = 0), or blen when none (Z = 1); R28 = the byte holding the detected
- rtl/v60/v60.sv:3075 The offset is relative to the start, as MAME writes it and as radmu's decoder needs (it adds dst + 1 to its own bit cursor, 07FD2E).
- rtl/v60/v60.sv:3078 sch0bsd / sch1bsd (2026-11-23; no game runs one and MAME has neither): the same scan from the string's last bit toward its first.
- rtl/v60/v60_ea.sv:25 The mode encodings and lengths are the ordinary ones, but what would be a byte displacement or a scaled index becomes a signed BIT offset from the base instead (NEC V60 manual ch.3 "bit addressing"; MAME am2.hxx bam2* / s_BAMTable2):
- rtl/v60/v60_ea.sv:31 [Rn+], [-Rn] step 1 byte for a bit string, 4 for a bit field (bitfield = 1; manual p.6-19: "by 1 for the bit string data type or by 4 for the bit field data type"; MAME moddim 10/11) disp[Rn](Rx), [Rn](Rx), disp[PC](Rx), /add
- rtl/v60/v60_ea.sv:58 deferred-indexed modes: scaled index the sequencer adds to the fetched pointer (EA = *[stage-1] + Rx*size, per MAME am1 DisplacementIndirectIndexed / PCDisplacementIndirectIndexed / DirectAddressDeferredIndexed); 0 for every other mode
- rtl/v60/v60_ea.sv:93 The doubleword row is the 64-bit destination of mulx/mulux/divx/divux and both operands of mov.d; it was 4 before 2026-11-11 (MAME am2.hxx `case 3`: 8).
- rtl/v60/v60_ldec.sv:211 second AM position: F2 at 2+l1; F7a/F7b at 3+l1 (skips the string-length/extension byte); F7c at 2+l1, its one extension byte following both AMs (MAME F7cDecodeOperands; 2026-10-27, Rad Mobile's subdc/insbfr, the first F7c instructions the
- rtl/v60/v60_muldiv.sv:4 Flags ({CY,OV,S,Z} = PSW[3:0]): mul : result = low <width> bits of signed product; OV = product not representable in <width> (NEC manual; MAME tests the high half != 0, which mis-flags e.g. -1 * n) CY preserved; S/Z from result mulu : as m
- rtl/v60/v60_muldiv.sv:17 MAME's opDIV*/opREM* leave OV clear and take no trap; its opDIVX/opDIVUX hand a zero divisor to the host divide (x86 #DE) — docs/OPEN-QUESTIONS.md Q3/Q9 divx / divux (mode_dvx): 64/32 -> 32-bit quotient (low) + remainder (high).
- rtl/v60/v60_muldiv.sv:26 MAME's opDIVX/opDIVUX leave OV untouched and store the truncated quotient — Q9 mulx / mulux (mode_mlx, with mul / mulu at word width): the whole 64-bit product, low word on result, high word on rem_out (the sequencer writes them to Rn / Rn+
- rtl/v60/v60_muldiv.sv:32 MAME's opMULX/opMULUX set S and Z the same way but leave OV untouched; the manual is followed (docs/slipstrm-bringup.md §4)
- rtl/v60/v60_muldiv.sv:54 div/divu iteration (sign of the DIVIDEND when signed; MAME opREM*)
- rtl/v60/v60_muldiv.sv:153 MAME's .b/.h REM agree via C int promotion; .w would #DE in MAME (same class as the divux quotient-overflow crash) so 0 here is the mathematical answer (MAME cannot be compared).
- rtl/v60/v60_muldiv.sv:223 Signed form restores the signs — quotient = dividend^divisor, remainder = dividend (C-style truncation, as MAME's div_64x32_rem).
- rtl/v60/v60_muldiv.sv:244 S/Z from the quotient; OV CLEARED (manual; MAME opDIVX/opDIVUX leave OV untouched — Q9)
- rtl/v60/v60_muldiv.sv:252 follows the dividend (MAME opREM*).
- rtl/v60/v60_muldiv.sv:268 (MAME instead uses high-half != 0 for both, which mis-flags signed cases like -1*n)
- rtl/v60/v60_pfu.sv:210 Before this the unit re-requested one slot after retiring, so every prefetch word cost 4 clocks instead of 3, and the decompressor in ga2's scene loads (tools/pcbtests/pt_lz.py) ran fetch-bound at 1.66x MAME's time.
- rtl/v60/v60_regs.sv:17 Because the SP is updated by any instruction affecting R31, the contents of the SP and the associated stack pointer register can differ during the execution of a program." So `stpr` of the active one returns what it held at the last stack c
- rtl/v60/v60_regs.sv:40 The four read 0 here until 2026-11-16, as in MAME.
- rtl/v60/v60_regs.sv:53 It read 00 here, as in MAME, until 2026-11-16 (OPEN-QUESTIONS Q68).
- rtl/v60/v60_shifter.sv:18 MAME's SHIFTLEFT_OV tests only the top n bits (the ones shifted out), so `sha #1` on 40h (result 80h) reads OV = 0 there and could never set OV; the manual is followed here (2026-11-11 audit, docs/OPEN-QUESTIONS.md Q68).
- rtl/video/s32_bitmap_live.sv:113 MAME bitmap Y: 8bpp masks to 256 rows, 4bpp to 512
- rtl/video/s32_clip.sv:3 References: s32tech, 315-5387 ($31FF60-$31FF7E window rects, $31FF02 enable/in-out bits, $31FF06 window assignment; only the GLOBAL flip bit repositions windows; left == right draws a 1-pixel column — hardware bug the encoding of max = righ
- rtl/video/s32_clip.sv:15 Per-line windows (MAME compute_clipping_extents after 0.288, mamedev/mame#16038): when lw_arm[w] is set, window w keeps its register Y range but its X range on this line is REPLACED by the line table's span.
- rtl/video/s32_clip.sv:30 visible width, 320 or 416: the flip mirrors the windows over it (MAME: visarea.right() + 1)
- rtl/video/s32_mixer.sv:4 References: s32tech (315-5388 registers) and MAME segas32_v.cpp mix_all_layers.
- rtl/video/s32_mixer.sv:24 `line` is the backdrop line index: the caller passes 223 - line under the global flip (MAME update_background).
- rtl/video/s32_mixer.sv:45 pixel stream (all layer pixels pre-masked to 13 bits — MAME masks every non-sprite layer with &0x1fff before the palette lookup)
- rtl/video/s32_mixer.sv:84 ------------------------------------------------------ register file power-up state: zero, as in MAME (the games write every register during boot; the real chip's power-up state is not known)
- rtl/video/s32_mixer.sv:128 -------------------------------------------- per-layer static config laynum: 0 text, 1-4 NBG0-3, 7 background Select polarity (docs/OPEN-QUESTIONS.md Q38, SETTLED 2026-11-04): select bit 1 = set A ($40-44), 0 = set B ($46-4A), as MAME's com
- rtl/video/s32_mixer.sv:132 s32tech's "0= A, 1= B" is inverted: ga2 fades with set A only (B stays 0) and every select bit set, and the owner's real-PCB intro capture shows that fade with the same curve as MAME (10-90 % in 36 vs 38 frames); Dragon Ball Z fades with se
- rtl/video/s32_mixer.sv:159 MAME segas32_v.cpp compute_sprite_blend (0.288): the $30-family bits 5:0 encode WHICH sprite groups a layer blends with — {mode[1:0], value[3:0]}: 0 = only group `value`, 1 = groups 0..value, 2 = groups value..15, 3 = all.
- rtl/video/s32_mixer.sv:230 ------------------------------------------------- sprite grouping $4C[3:0] selects the group field position (MAME table); per-group control regs $00-$1E give priority/palbase/mixshift.
- rtl/video/s32_mixer.sv:235 Modes 0-3 (MAME master since #16651, 336230f88fa): the group's top bit is pixel bit 15, which the sprite engine then takes from the sprite's word 7 bit 15 rather than forcing it to 1 (spr_grp_w7, below; s32_sprite).
- rtl/video/s32_mixer.sv:336 virtual 8-slot scan: the sprite entry inserts before the first sorted slot it outranks (slot k); shadow pixels pass through and darken whatever wins below (MAME mix loop semantics)
- rtl/video/s32_mixer.sv:380 v == 8 ("none"): a zeroed entry, as MAME's mix loop treats an absent layer (a real slot here would add a phantom blend term)
- rtl/video/s32_mixer.sv:390 mm ($6100xx[9:8]) = MAME's compacting shift ((pix >> mm) & ~$F) + pen.
- rtl/video/s32_mixer.sv:396 Where the surviving bits land is MAME's reading.
- rtl/video/s32_mixer.sv:423 blend gate (MAME mix loop): the first layer's blendmask must select the second's laynum and, when the second is the sprite layer, the pixel's sprite group must be in the first layer's group mask (compute_sprite_blend).
- rtl/video/s32_mixer.sv:432 shadow applies when the scan reaches the sprite slot before the winner, and also when the blend scan passes the sprite slot on its way to the second layer (MAME checks the sprite case on the second scan too; not confirmed on hardware).
- rtl/video/s32_mixer.sv:435 MAME runs that second scan whenever the first layer has ANY blendmask bit set, whether or not the second layer it finds is one the first blends with, so the shadow does not wait for blend_gate: SegaSonic's cobblestone foreground has blend b
- rtl/video/s32_mixer.sv:441 The bit-15 rule holds for a TRANSPARENT sprite pixel as well: MAME's mix loop sets `shadow = ~sprpix & sprshadowmask` when the scan reaches the sprite slot, before its transparency test (segas32_v.cpp mix_all_layers, 0.288 and master alike)
- rtl/video/s32_mixer.sv:456 (secondv = 8, no second layer: MAME's scan still passes the sprite slot to the background)
- rtl/video/s32_mixer.sv:556 MAME halves before clamping (segas32_v.cpp mix_all_layers); the two differ only on a shadowed channel that a colour offset pushed outside 0..31.
- rtl/video/s32_nbg_rowscroll_live.sv:4 References: s32tech (315-5387, $31FF04 line scroll control; table layout in bytes $0000/$0200/$0400/$0600 = NBG2-H/NBG3-H/NBG2-V/NBG3-V) and MAME segas32_v.cpp update_tilemap_rowscroll.
- rtl/video/s32_nbg_rowscroll_live.sv:15 Line windows (MAME after 0.288, mamedev/mame#16038, compute_clipping_ extents): when the inhibit bit is set (r04[4] NBG2 / r04[5] NBG3), the two table groups stop being scroll values and become, per scanline, the LEFT (H group) and RIGHT (V
- rtl/video/s32_nbg_rowscroll_live.sv:47 416-pixel mode (s32_video, stable for the frame): 416 dots a line, and the X flip starts at column 415 (MAME draw_bg_layer: srcx = cliprect.right() + xscroll when flipped).
- rtl/video/s32_nbg_rowscroll_live.sv:69 Y flip: global flip XOR (layer flip unless $31FF00 bit 8 prohibits the per-layer Y flip) — MAME master compute_tilemap_flips; svf's match mode runs NBG2 with $31FF00 = 0104 (X-only layer flip)
- rtl/video/s32_nbg_rowscroll_live.sv:113 MAME's disabled line in segas32_v.cpp (841/998) reads the register bit alone and its tile format lists bit 13 as unknown; s32tech gives no NBG name word.
- rtl/video/s32_nbg_rowscroll_live.sv:227 window mode indexes the table by the GLOBAL flip only (MAME `line = flip ?
- rtl/video/s32_nbg_zoom_live.sv:25 416-pixel mode (s32_video, stable for the frame): the line is 416 dots, and the X flip starts from column 415 (MAME update_tilemap_zoom srcx_start += visarea.right() * srcxstep).
- rtl/video/s32_nbg_zoom_live.sv:46 Y flip: global flip XOR (layer flip unless $31FF00 bit 8 prohibits the per-layer Y flip) — MAME master compute_tilemap_flips; svf's match mode runs NBG2 with $31FF00 = 0104 (X-only layer flip)
- rtl/video/s32_nbg_zoom_live.sv:96 MAME's disabled line in segas32_v.cpp (841/998) reads the register bit alone and its tile format lists bit 13 as unknown; s32tech gives no NBG name word.
- rtl/video/s32_nbg_zoom_live.sv:261 A line whose first beam column is 63 (canvas x 1008-1023 at the left edge: SegaSonic's high-score screen scrolls NBG0 to X = -15) then fetched the wrong tile row's pattern for the wrapped strip (docs/sonic-bringup.md §6, MAME-state render f
- rtl/video/s32_sprite.sv:3 References: s32tech (315-5386A) and MAME segas32_v.cpp (sprite_render_list, draw_one_sprite).
- rtl/video/s32_sprite.sv:9 The walk is BOUNDED at 8192 commands exactly like MAME sprite_render_list (segas32_v.cpp 1674 in master c3d9dcd2d8d, `numentries++ < 0x20000/16`).
- rtl/video/s32_sprite.sv:23 Pixels are exactly MAME draw_one_sprite's; only the time differs.
- rtl/video/s32_sprite.sv:26 - The trailing span past the clip edge is never walked: xtarget is clamped to it, exactly as MAME does.
- rtl/video/s32_sprite.sv:31 Each source word passed over entirely costs one read, to test its end code (S_SCAN; MAME ends the row there too).
- rtl/video/s32_sprite.sv:100 MAME transparency_masks[ctl08][ctl0a]
- rtl/video/s32_sprite.sv:131 commands walked (MAME 8192 cap)
- rtl/video/s32_sprite.sv:290 walk bound as in MAME: sprite_render_list stops after 0x20000/16 = 8192 commands whatever the jumps.
- rtl/video/s32_sprite.sv:315 clamp the clip-in window to the drawable area (0..319/415 x 0..223), as MAME does (clipin &= outerclip).
- rtl/video/s32_sprite.sv:363 bit 15: the sprite's own word 7 bit 15 in mixer group modes 0-3, else 1 (MAME render_one_sprite, #16651; Q53)
- rtl/video/s32_sprite.sv:464 Targets are final HERE (MAME: target = pos + delta*dst).
- rtl/video/s32_sprite.sv:511 MAME: clamp the far end to the clip edge
- rtl/video/s32_sprite.sv:596 a source word wholly inside the leading clipped span: only its end code matters (MAME tests the word's last pixel)
- rtl/video/s32_sprite_top.sv:14 The OUT-stage flip bits go to the display side, which reverses its scan direction (as MAME does in its mix loop).
- rtl/video/s32_sprite_top.sv:31 MAME's sprite_erase_buffer fills the whole bitmap, at any width.
- rtl/video/s32_sprite_top.sv:34 The picture is then MAME's, at the cost of one wide sweep per bank per width change.
- rtl/video/s32_sprite_top.sv:42 MAME renders each trigger's list in full, instantly.
- rtl/video/s32_sprite_top.sv:145 Measured on s32_sys (+SPRHEADLOG): F1 Super Lap's vblank-out handler writes its sub-list jump 51-54 us after vblank-out (a board V60, slower than the core's, later still), and on alternate menu frames its main loop rewrites the shared clip
- rtl/video/s32_sprite_top.sv:150 MAME's 50 us lands before the core's jump write; the old read after the 45-line sweep lands after the clip write.
- rtl/video/s32_sprite_top.sv:208 s32tech gives the command values but not their timing; MAME (segas32_v.cpp update_sprites) acts at the end of vblank, and Sega's VDP1 manual gives the same rule for its manual mode ("change in next field", ST-013-R3 p.39).
- rtl/video/s32_sprite_top.sv:227 If a scene overruns its frame, skip this tick and keep showing the last complete frame instead of the half-drawn one; the render finishes and is swapped in at the next vblank (a dropped frame), much as MAME and the real chip's pacing behave
- rtl/video/s32_sprite_top.sv:275 manual command latch: cleared at every vblank-out, as MAME clears m_sprite_control[0] after each update; a $500000 write in the same cycle wins (it applies at the next vblank-out).
- rtl/video/s32_sprite_top.sv:278 Latched in both modes like MAME's register, but acted on only in manual mode.
- rtl/video/s32_sprite_top.sv:279 (In auto mode MAME would also run a written command on a 30 Hz off-frame; none of the supported games writes one in auto mode.)
- rtl/video/s32_sprite_top.sv:433 latched at the swap, not live r0c (MAME m_sprite_control_latched[6])
- rtl/video/s32_text_live.sv:27 Screen flip ($31FF00 bit 9, s32tech "1= Text+NBG3-0 X+Y flip"; MAME segas32_v.cpp update_tilemap_text sets TILEMAP_FLIPX | TILEMAP_FLIPY): the picture turns 180 degrees about the visible area, so screen (x, y) shows source (last - x, 223 -
- rtl/video/s32_video.sv:5 References: s32tech (Charles MacDonald's System 32 notes) and MAME segas32_v.cpp.
- rtl/video/s32_video.sv:6 The output was compared pixel by pixel with MAME frames.
- rtl/video/s32_video.sv:39 external tilebank latch (315-5296 I/O chip port H bit 0 — segas32.cpp tilebank_external_w).
- rtl/video/s32_video.sv:40 The tile bank is two bits: {this, $31FF00 bit 10} (segas32_v.cpp get_tilemaps).
- rtl/video/s32_video.sv:92 Cabinet vertical mirror (from the .mra; Holosseum only, MAME ORIENTATION_FLIP_Y).
- rtl/video/s32_video.sv:122 the mixer is in sprite group mode 0-3 ($61004C[3:2] = 0): the sprite engine takes pixel bit 15 from each sprite's word 7 (s32_mixer "sprite grouping", MAME #16651; Q53)
- rtl/video/s32_video.sv:152 `wide` selects the mode for a whole frame: it is taken from $31FF00 bit 15 at the last dot of line VVIS-1, as MAME samples the bit once per frame at the screen update (segas32_v.cpp screen_update_system32).
- rtl/video/s32_video.sv:338 Mapping from MAME segas32.cpp: the single B/G/R bits (w[14]/w[13]/w[12]) are each channel's LSB, not its MSB; w[11:8]/w[7:4]/w[3:0] are the high four bits.
- rtl/video/s32_video.sv:358 MAME segas32.cpp paletteram_w ("if blending is enabled, writes go to both halves of palette RAM", mask 0x0880); s32tech gives the two bits and says nothing of the palette.
- rtl/video/s32_video.sv:369 MAME's reading is the one implemented.
- rtl/video/s32_video.sv:373 The bus fabric merges a byte write into a full word from the entry it addresses (s32_v60bus), so the other half receives that entry's other byte, where MAME keeps the other half's own.
- rtl/video/s32_video.sv:439 That collision is detected (pcol_*), and the written word is used instead of the RAM output: the pixel shows the new colour at once, as in MAME.
- rtl/video/s32_video.sv:494 Reset: 320, as MAME's screen is until the first update.
- rtl/video/s32_video.sv:505 $31FF00 bits 12/13 disable NBG2/NBG3 (their VRAM bandwidth goes to the NBG0/1 zoom; the S2ON/S3ON pins between the 315-5387 and 315-5388; s32tech and MAME agree).
- rtl/video/s32_video.sv:814 Board evidence (OPEN-QUESTIONS Q54, 2026-11-18): Arabian Fight runs its frame from V-blank OUT and writes every scroll register with the beam in the picture; NBG2's Y scroll twice, first NBG0's value and some twenty lines later its own (cor
- rtl/video/s32_video.sv:822 MAME draws a frame from the registers at its end: the same picture, a frame sooner than a set-up point in the blanking can show it (as for NBG0/1).
- rtl/video/s32_video.sv:826 That is not measured: it follows from the scroll, from MAME, and from NBG0/1, whose pages were already taken here.
- rtl/video/s32_video.sv:891 Its rows can never reach the screen (lay_en[5] masks it in the mixer, as MAME's enableb does), but its walk is the heaviest VRAM reader and it took the VRAM-over-SDRAM bandwidth the visible layers need: svf's match mode ($31FF02 = 6320, bit
- rtl/video/s32_video.sv:915 It also saturates at the last column (319, or 415 in the wide mode): bf_col runs past the line while the mixer pipeline drains, and the last screen column is taken during the drain, so without the limit a rectangle with R = $13F would not c
- rtl/video/s32_video.sv:926 ---- per-line clip windows (MAME compute_clipping_extents after 0.288, mamedev/mame#16038).
- rtl/video/s32_video.sv:933 Under global flip the span mirrors like the rects: x is in [W-1-right, W-1-left] <=> left <= W-1-x <= right, W the visible width (MAME mirrors over visarea.right()).
- rtl/video/s32_video.sv:1058 At vblank top it missed every vblank write for a frame, while the live layer enables took them at once: Alien3's title enables NBG0 and moves it to a new page in one vblank, and drew a frame of the new scroll over the old page (a doubled "A
- rtl/video/s32_video.sv:1151 sprite framebuffer scan: MAME mix-loop semantics — the latched OUT flip reverses the scan direction, it does not move sprites; the scan starts at the visible width's last column (cliprect.right())
- rtl/video/s32_video.sv:1175 backdrop line index: under the global flip the per-line colour ramp runs bottom-up (MAME master update_background, #16038: line y's colour lands on row max_y - y).
- README.md:83 | ROMs | MAME 0.288 zips, supplied by you; none are included here |
- README.md:155 Each player's D-pad also rolls the ball (at MAME's speed for a digital control, while the stick rests), and MiSTer spinners 1-3 roll players 1-3's ball left and
- README.md:324 Reference authority, in order: the original Sega schematics, Charles MacDonald's System 32 hardware notes, then current MAME as a behavioural baseline.
- README.md:326 Where MAME and the hardware notes disagree, the core follows the notes.
- README.md:337 MAME 0.288 does not draw this effect.
- README.md:338 The core uses the model that MAME added after 0.288 (mamedev/mame#16038), so current MAME and the core agree.
- README.md:352 MAME charges a flat 8 clocks per instruction, so instruction timing can differ slightly from MAME.
- README.md:360 MAME does none of these.
- README.md:365 An opcode with no instruction, a privileged instruction outside execution level 0, an addressing mode the manual's tables rule out for an operand (an immediate
- README.md:373 The string instructions that use a fill or stop character and the downward bit searches are in as well; where the manual leaves a detail open (which way a point
- README.md:377 A downward string move of two different lengths takes each string from its own tail, as the manual says, where MAME moves the head elements; every such move the
- README.md:389 The hardware notes describe it only in words, MAME ignores it too, and the core leaves those edges sharp rather than guess.
- README.md:397 MAME does not draw it.
- README.md:403 **Palette writes in blend mode.** While a game has the video mixer's blend or gradation mode switched on, every colour it writes goes into both halves of the pa
- README.md:413 The main CPU reaches the sound RAM by taking the Z80's bus, as on the board: each access waits until the Z80 finishes its current machine cycle and stops (MAME
- README.md:417 On the board the video chips can also stretch a main-CPU cycle, and the bus controller drives the Z80's wait line; the core models neither (nor does MAME), beca
- README.md:429 The schematic does not give the two DACs' output voltages, so the balance between FM and PCM was measured from a recording of a real board: PCM sits about 9 dB
- README.md:456 The FM output was then compared with MAME's FM model, voice by voice, on what each of the eighteen games writes to the chips in its first two and a half minutes
- … 20 more
Says it matches, follows or was checked against MAME — 16
- S32.sv:644 A switch held down from power-on never opens the menu in Golden Axe or Spider-Man, and leaves TEST unable to select in Holosseum (checked in MAME 0.288), so the line is never latched.
- rtl/sys32/s32_intctl.sv:3 References: s32tech, "Interrupt controller" (real-hardware notes); behavior cross-checked against MAME segas32 update_irq_state (lowest pending unmasked vector wins; enable mask is inverted).
- rtl/sys32/s32_v25.sv:86 Both case lists are checked against MAME's source by sim/s32_v25/check_tables.py.
- rtl/sys32/s32_v60bus.sv:658 The core runs it as part of the trigger write: A_WRAMX does the V60's write as usual, then instead of releasing the bus it runs A_SN0-A_SN6, so the V60 cannot read $20F06E before the result is there (the game's first read is a few dozen ins
- rtl/v60/v60.sv:1963 movcu/movcd/skpcu/schcu — schcu (55) is the skip scan with inverted match polarity (stop on ==, not !=); identical operand form and R27/R28/Z contract (MAME opSEARCHUB/UH, op7a.hxx:437).
- rtl/v60/v60_alu.sv:3 References: NEC V60 architecture; flag behaviour checked against MAME 0.288 single-step results from Golden Axe code.
- rtl/v60/v60_ea.sv:12 Mode coverage (NEC manual ch.3; encodings as decoded by v60_ldec.sv; behaviour checked against the accesses MAME makes): m=0: disp8/16/32[Rn], [Rn], [disp8/16/32[Rn]]*, mode-7 subs: immediate-quick*, PC disp, /addr, immediate*, deferred*, P
- rtl/v60/v60_ea.sv:167 indexed families: EA = base (second byte reg) + sign-extended displacement + index (mod[4:0]) scaled by the operand size (verified vs MAME am1 decoders)
- rtl/v60/v60_muldiv.sv:3 Checked against MAME 0.288 single-step results from Golden Axe code.
- rtl/v60/v60_muldiv.sv:122 Gating with !dvx keeps divux bit-identical to before and stops divx taking a bogus OV path (MAME's DIVX leaves CY/OV untouched entirely).
- rtl/v60/v60_regs.sv:4 Architecture (NEC manual ch.2; banking behavior cross-checked against MAME v60.cpp v60SaveStack/v60ReloadStack): - R0..R31 general registers; R29=AP, R30=FP by convention (plain GPRs).
- rtl/v60/v60_shifter.sv:4 Checked against MAME single-step results from Golden Axe code where MAME follows the manual; where it does not (below) the corestep packer corrects the golden.
- rtl/video/s32_mixer.sv:162 s32tech is silent, so this follows MAME.
- rtl/video/s32_sprite.sv:576 patterns from sprite RAM stream the lowest CPU-address byte first (MSB), matching MAME's spriteram_w dword {byte0,byte1,byte2,byte3}.
- rtl/video/s32_video.sv:133 Real boards have not been measured; the totals match the Sega boards of the period that MAME documents (400 x 262 on the same 50 MHz / 8 dot clock), and a character-clocked CRTC needs a multiple of 8.
- README.md:329 Every block was checked in simulation against MAME before it went into the core: single-instruction CPU tests, whole-machine runs compared with MAME instruction
Keeps a MAME approximation — 1
- rtl/sys32/s32_dspbd.sv:50 Command 3's answer differs from MAME's guessed $8000/$0001; the V60 reads it at boot and never uses it.
Shares text with the MAME driver without saying so — 17