← All cores
Xybots
Cites hardware documentation that MAME's driver does not — 182
- Arcade-Xybots.sv:5 This is the MiSTer `emu` wrapper around rtl/xybots_core.sv, which holds the whole game: the SP-313 main board, the SYNGEN raster and video pipeline, the motion-object engine and the JSA I audio PCB.
- Arcade-Xybots.sv:17 Clocking: clk_sys = 57.272727 MHz = 4 x the SP-313 sheet-4 14.318181 MHz crystal.
- Arcade-Xybots.sv:339 WIDTH = 336 = the visible width of the SP-313 raster (456 x 263 total).
- rtl/main/xybots_addr_decode.sv:3 Xybots 68000 address decode — SP-313 sheet 2, gate for gate.
- rtl/main/xybots_addr_decode.sv:8 Every select below is read off the drawn decoders on sheet 2, not off MAME's `main_map`.
- rtl/main/xybots_addr_decode.sv:154 A22..A18 and A7..A1 reach no decoder on sheet 2 at all.
- rtl/main/xybots_cpu.sv:3 Xybots main CPU — fx68k (cycle-exact 68000), wired as SP-313 sheet 2 draws it.
- rtl/main/xybots_cpu.sv:24 fx68k's flops are `always_ff @(posedge clk) if (enPhiN)`, so `enPhi1 = ce_7m` puts the fx68k CPU clock edge on the `ce_7m` cycle itself and the rest of sheet 2 — the 5A LS163A /DTACK counter, the 7B 74S74 VRAC arbitration and the E-clock/VP
- rtl/main/xybots_cpu.sv:37 BERRn = 1 (16A pin 22 = PR2): sheet 2 has no bus-error source.
- rtl/main/xybots_cpu.sv:55 `oHALTEDn` (fx68k's double-bus-fault output) has no load on sheet 2 and is left unconnected.
- rtl/main/xybots_cpu.sv:62 ---- /VPA, autovectoring and the RESET instruction ----------------------- Sheet 2 makes `/VPA = ~(FC0 & FC1 & FC2 & AS)` (10A LS20) and wires it to BOTH the 68000's VPA pin (21) and the 5A LS163A's ENT input.
- rtl/main/xybots_cpu.sv:135 double bus fault; no load on sheet 2
- rtl/main/xybots_dpram_be.sv:8 Used twice on the main board: * the 16 KB video RAM at 14J/14E (`AW = 13`, 8 K words), where the two 8464D70 SRAMs take independent /WE strobes so byte writes on either lane are honoured; * the 2 KB colour RAM at 17J/17K (`AW = 10`, 1 K wor
- rtl/main/xybots_dtack.sv:3 Xybots /DTACK generator — SP-313 sheet 2 (5A LS163A + 7B 74S74 + 1B LS02).
- rtl/main/xybots_dtack.sv:10 Non-video path — 5A LS163A, a SYNCHRONOUS-clear 4-bit binary counter: CK (2) = VIDCLK (= the 68000 clock, 7.15909 MHz) /CLR (1) = 2A LS08 (1 = /VRAM, 2 = AS -> 3) = /VRAM & AS -> the counter is held at 0 whenever there is no bus cycle
- rtl/main/xybots_dtack.sv:27 Video path — 7B 74S74: D (12) = /VRAM CK (11) = VRAC2 /PRE (10) = AS -> with no bus cycle Q is preset to 1 /CLR (13) = PR3 (tied inactive) /Q (8) = VDTACK With AS inactive the preset holds Q = 1 so VDTACK = 0.
- rtl/main/xybots_dtack.sv:67 ---- 5A LS163A -------------------------------------------------------
- rtl/main/xybots_dtack.sv:86 ---- 7B 74S74 -------------------------------------------------------- /PRE = AS is asynchronous on the real part.
- rtl/main/xybots_eeprom_2804.sv:3 Xicor X2804A (512 x 8) EEPROM at 20C/D — SP-313 sheet 3.
- rtl/main/xybots_inputs.sv:3 Xybots control-panel and status ports — SP-313 sheet 4 (18F, 21E, 18J).
- rtl/main/xybots_inputs.sv:8 ---- /SW, 0x806100 ------------------------------------------------------- 18F LS244B drives the HIGH byte and 21E LS244B the LOW byte; both /1G and /2G on both parts are `/SW`, so the port is a full 16-bit read and the game reads it as a w
- rtl/main/xybots_inputs.sv:25 The `CLK0/DIR0/...` net names on the DC connector are vestigial; sheet 10 labels the same pins START, FIRE, TWIST RT, TWIST LT, RIGHT, LEFT, DOWN, UP.
- rtl/main/xybots_inputs.sv:31 ---- /SYSIN, 0x806200 ---------------------------------------------------- 18J LS244A, both enables = `/SYSIN`, drives the HIGH byte only: D8 /SELFTEST D9 /AUDBUSY (SCOM 20E BUSY) D10 256H D11 VBLANK D12 SW8 D13 SW9 D14 SW1
- rtl/main/xybots_irq.sv:3 Xybots interrupt encoder — SP-313 sheet 2 (1B LS02, 10A LS20, 4A LS04, 3B LS00, 1C 74S74, 10C LS00).
- rtl/main/xybots_irq.sv:15 1C 74S74 as an S/R latch: D = CK = PR1 (it never clocks), /PRE = 3B/11, /CLR = /VIDACK, Q -> 10C LS00 pin 2 5.
- rtl/main/xybots_irq.sv:19 ---- VIRQ is programmable, and that is the biggest schematic-vs-MAME difference in the whole core ---------------------------------------- `VIRQ` is not a raster signal.
- rtl/main/xybots_irq.sv:21 SP-313 sheet 7, 6D LS174E (CK = 4H) latches **SCRAMD10 -> VIRQ**, i.e. bit 10 of the ALPHA tile word being fetched.
- rtl/main/xybots_irq.sv:31 `virq` is the latched alpha bit 10 from the video timing block; the gating with V[2:0]/HBLANK/VBLANK is here because sheet 2 is where it is drawn.
- rtl/main/xybots_irq.sv:57 The 1C 74S74 has no reset input on the board: its /CLR is `/VIDACK` and nothing else, so a watchdog timeout or a 68000 RESET instruction leaves a pending IRQ1 pending (the CPU comes out of reset with the SR mask at 7 anyway, and the handler
- rtl/main/xybots_irq.sv:65 6D LS174E pin 2: latched alpha word bit 10
- rtl/main/xybots_irq.sv:75 1C 74S74 Q; diagnostic output, no consumer in the core.
- rtl/main/xybots_irq.sv:83 The latch is level-set: while VIRQ and the window are both true the preset holds Q at 1, so a /VIDACK write that lands in the same window cannot clear it (both /PRE and /CLR low on a 74S74 forces Q = /Q = 1; on release the preset wins here
- rtl/main/xybots_main_bus.sv:3 Xybots main board — SP-313 sheet 2 as one block.
- rtl/main/xybots_main_bus.sv:21 The CPU side is arbitrated: the CPU owns **VRAC phase 3** of the four-phase video-RAM multiplex, and the 7B 74S74 in xybots_dtack is what makes the CPU wait for that slot.
- rtl/main/xybots_main_bus.sv:26 `virq` is the 6D LS174E output, i.e. bit 10 of the ALPHA word being fetched — see xybots_irq's header.
- rtl/main/xybots_main_bus.sv:29 ---- the /RESET net ------------------------------------------------------ The watchdog's /RESET resets the 68000 AND (leaving sheet 2 for sheet 3 only) clears the EEPROM unlock flip-flop and forces the EEPROM /OE gate.
- rtl/main/xybots_main_bus.sv:57 7B 74S74 clock
- rtl/main/xybots_main_bus.sv:62 6D LS174E pin 2: latched alpha bit 10
- rtl/main/xybots_main_bus.sv:131 Declared here because sheet 2 wires it to the 68000's VPA pin as well as to the 5A's ENT input, so the CPU instance needs it.
- rtl/main/xybots_main_bus.sv:136 It regenerates the second clock phase fx68k needs from `ce_7m` itself, so sheet 2 hands it nothing but the enable that everything else here runs on.
- rtl/main/xybots_main_bus.sv:149 Decode (sheet 2)
- rtl/main/xybots_main_bus.sv:260 Sheet 9 draws exactly ONE /WE path for both 17J and 17K, and it is /WL-qualified — 15C LS32 (9 = /WL, 10 = /CRAMD) then 15C LS32 (13 = that, 12 = /7M).
- rtl/main/xybots_main_bus.sv:322 Interrupts (sheet 2)
- rtl/main/xybots_main_bus.sv:327 `reset` here is POWER-UP ONLY: the 1C 74S74's only clear is /VIDACK, so a watchdog timeout must not drop a pending IRQ1 (see xybots_irq's header).
- rtl/main/xybots_main_bus.sv:379 Inputs (18F/21E/18J on sheet 4)
- rtl/main/xybots_main_bus.sv:421 DTACK (5A LS163A + 7B 74S74 + 1B LS02)
- rtl/main/xybots_slapstic.sv:3 Atari SLAPSTIC 137412-107 — SP-313 sheet 2, location 14B ("SLAPSTK7").
- rtl/main/xybots_slapstic.sv:7 The state machine below was written from SP-313 sheet 2 and checked against MAME's `slapstic.cpp` (BSD-3-Clause); see NOTICE.md.
- rtl/main/xybots_slapstic.sv:14 ---- pinout as wired on sheet 2 ----------------------------------------
- rtl/main/xybots_slapstic.sv:42 Sheet 2 puts no R/W term on /CS or CK, so `we` does not reach the state machine.
- rtl/main/xybots_slapstic.sv:90 One pulse per 68000 bus cycle = one CK (/AS) edge at 14B pin 7.
- rtl/main/xybots_slapstic.sv:99 Present so the caller keeps the write cycles; the state machine ignores it, exactly as MAME and sheet 2 do.
- rtl/main/xybots_watchdog.sv:3 Xybots watchdog — SP-313 sheet 2 (1A LS00, 3A LS90, 4A LS04).
- rtl/main/xybots_watchdog.sv:46 power-on reset, active high (sheet 1, 11A LS14)
- rtl/mem/xybots_prog_rom.sv:11 ---- what the four sockets are (SP-313 sheet 3) ------------------------- 17C/D + 19C/D PROM0 /CE = A17 -> 68000 0x000000-0x01FFFF (2 x 64 KB)
- rtl/mem/xybots_prog_rom.sv:30 SLAPSTIC (sheet 2, 14B + 13C LS157): `slap_sel` = /SLAPSTIC asserted, i.e. A23=0 & A17=0 & A16=0 & A15=1.
- rtl/video/xybots_alpha.sv:3 Xybots alphanumerics layer — SP-313 sheet 7 (6D/7D LS174E, 5C 2764, 2C/3C LS194A) and the VIRQ tap that sheet 2 turns into IRQ1.
- rtl/video/xybots_alpha.sv:12 h = 8k+3 ALPHA VRAC phase: the word is on the SCRAM data bus -> 8k+4 6D/7D LS174E clock on 4H rising: code[9:0] and VIRQ latched; the attribute nibble (D15, D14:12) is NOT latched here on the board -- it runs straight to the GPC -- so
- rtl/video/xybots_alpha.sv:30 ---- the character ROM is an 8 KB part in a 16 KB socket ----------------- Sheet 7 draws a U27128 at 5C with A13 wired to code bit 9, but the dumped part 136054-1101.5c is a 2764.
- rtl/video/xybots_alpha.sv:39 ---- VIRQ --------------------------------------------------------------- 6D LS174E pin 3 -> pin 2 is SCRAMD10 of the alpha word, i.e. a per-tile-row programmable scanline interrupt.
- rtl/video/xybots_alpha.sv:41 It leaves here as the RAW 6D output: the gate with V[2:0]==7 & HBLANK & ~VBLANK and the 1C 74S74 latch are on sheet 2 and live in rtl/main/xybots_irq.sv, which xybots_main_bus feeds from this port.
- rtl/video/xybots_alpha.sv:54 ---- SYNGEN counters (SP-313 sheet 4) ----
- rtl/video/xybots_alpha.sv:71 6D LS174E pin 2 = alpha word bit 10
- rtl/video/xybots_alpha.sv:75 6D / 7D LS174E — clocked by 4H, which rises entering count h ≡ 4.
- rtl/video/xybots_alpha.sv:96 5C character ROM address, straight off sheet 7 A13..A4 = code (A13 unconnected on the fitted 2764 -> code[9] dropped) A3..A1 = 4V, 2V, 1V A0 = /4H
- rtl/video/xybots_alpha.sv:111 2C / 3C LS194A — S1 = 1H2H (load), CK = /VIDCLK.
- rtl/video/xybots_cram.sv:3 Xybots colour-RAM read path and video output registers — SP-313 sheet 9 (17J/17K 2K8-100A used as 1K x 16, 18L and 19L LS273H).
- rtl/video/xybots_cram.sv:14 18L / 19L are clocked by 8M 74S32 (12 = CRAMD, 13 = /7M -> 11).
- rtl/video/xybots_cram.sv:38 ---- 18L / 19L LS273H ----
- rtl/video/xybots_dac.sv:3 Xybots video DACs — SP-313 sheet 9: three identical 4-bit binary-weighted current DACs whose shared reference current is set by a fourth, 4-bit intensity ladder.
- rtl/video/xybots_dac.sv:10 ---- the circuit --------------------------------------------------------- Each colour: open-collector U7406 inverters switching R = 620, 1.2K, 2.4K, 4.7K (bit 3..bit 0) into a summing node, plus a 74LS260 "all four bits zero" detect.
- rtl/video/xybots_gpc.sv:3 Xybots GPC 14K — the Atari custom on SP-313 sheet 8 that turns the alpha attribute nibble, the P bus, the M bus and PF/MO into the 10-bit colour-RAM address.
- rtl/video/xybots_gpc.sv:10 ---- this is the one place MAME is the oracle --------------------------- The GPC is an Atari custom and a black box: sheet 8 gives every pin connection and nothing about the inside.
- rtl/video/xybots_gpc.sv:23 and that is a DEDUCTION FROM MAME, not from the schematic.
- rtl/video/xybots_gpc.sv:34 The third row is MAME's `pf[x] = (mo[x] ^ 0x2f0)`, the case its comment calls "doesn't make sense from the schematics".
- rtl/video/xybots_mo.sv:3 Xybots — the motion-object engine: SP-313 sheets 5, 6 and 8 tied together.
- rtl/video/xybots_mo.sv:8 xybots_mo_fetch sheets 5 + 6 — the table walk, the object word latches, the vertical match (xybots_mo_vmatch), the sprite-ROM client and the pixel path xybots_mo_linebuf sheet 8 — the two LB customs (9K, 8K) as ping-pong line buffers wi
- rtl/video/xybots_mo.sv:51 ---- SYNGEN (sheet 4) ----
- rtl/video/xybots_mo.sv:106 The LB customs take their address inputs A8..A0 straight off SCRAMD15..7 (sheet 8): the object's X is loaded by /MOHLD during the word-3 fetch, from the video data bus, not from a latch.
- rtl/video/xybots_mo_fetch.sv:3 Xybots — SP-313 sheets 5 and 6: the motion-object table walk, the object word latches, the vertical match pipeline, the sprite-ROM address and the pixel path (LS158 swap + LS194 shifters).
- rtl/video/xybots_mo_fetch.sv:15 0 | MO word 2 | (fetch) entry n = H[8:3] 1 | MO word 0 | word 2 latched (10F/9E LS174A rises at h%8 == 1) 2 | CPU | word 0 latched (6F/6E LS273B on /4HD2H, rises at 2) 3 | ALPHA | 4 | PLAYFIELD | 5
- rtl/video/xybots_mo_fetch.sv:32 455 (sheet 8, /DIE gated by 1VD8H), so entries 0..55 are drawn, entry 56 is fetched and thrown away, and entries 57..63 are never addressed at all.
- rtl/video/xybots_mo_fetch.sv:67 ---- SYNGEN (sheet 4) ----
- rtl/video/xybots_mo_fetch.sv:71 11J 74S04 (9->8)
- rtl/video/xybots_mo_fetch.sv:74 ---- video-side VRAM port (sheet 5 LS253 mux, MO phase) ----
- rtl/video/xybots_mo_fetch.sv:84 ---- to the line buffers (sheet 8), all in the INVERTED sense ----
- rtl/video/xybots_mo_fetch.sv:107 10F/9E LS174A — word 2 [15:7]
- rtl/video/xybots_mo_fetch.sv:108 10F/9E LS174A — word 2 [2:0]
- rtl/video/xybots_mo_fetch.sv:109 6F/6E LS273B — word 0 [13:0]
- rtl/video/xybots_mo_fetch.sv:111 8E LS174B — word 1 [3:0], true sense
- rtl/video/xybots_mo_fetch.sv:146 Vertical match and the ROM address (sheet 5, combinational)
- rtl/video/xybots_mo_fetch.sv:221 The draw-side pipeline (1D LS174C + 5F/5E LS273F, sheet 5/6)
- rtl/video/xybots_mo_fetch.sv:250 7F LS86 + 6J/5J LS158 + 6K/5K LS194 (sheet 6)
- rtl/video/xybots_mo_fetch.sv:261 The LS158s are INVERTING and their /G is /MOVMATCHD: with no vertical match every output is forced high, i.e. MOPIX = 4'hF = the transparent pen, which is what stops 8D LS20 (sheet 8) from writing anything.
- rtl/video/xybots_mo_linebuf.sv:3 Xybots — SP-313 sheet 8: the two Atari "LB" line-buffer customs (9K and 8K) and the discrete logic that drives them.
- rtl/video/xybots_mo_linebuf.sv:33 That is the only reading under which sheet 4's *crossed* pairing makes sense — /MOHLD1 (even lines) belongs to the buffer being written and /MOHR0 (even lines) to the buffer being read — and it is the only one in which the pointers do not c
- rtl/video/xybots_mo_linebuf.sv:37 There is no BUFCLR pin on the Xybots LB symbol and no other clear anywhere on sheet 8, yet a buffer written on line N and read on line N+1 has to be empty again for line N+2.
- rtl/video/xybots_mo_linebuf.sv:101 /DIE and /LBWR (sheet 8)
- rtl/video/xybots_mo_vmatch.sv:3 Xybots — SP-313 sheet 5: the motion-object vertical match (9D, 10D, 3D, 8D) and the picture-code adder (4D, 5D).
- rtl/video/xybots_mo_vmatch.sv:10 `xybots_mo_fetch` supplies the latched object words and clocks the result into the 1D LS174C / 5F-5E LS273F pipeline the sheet draws around it.
- rtl/video/xybots_mo_vmatch.sv:16 The LS283 symbols on sheet 5 carry high-side pin numbers that do not match a real 74LS283, so their A/B/C0/S/C4 ROLE labels are authoritative and the pin numbers are not.
- rtl/video/xybots_mo_vmatch.sv:23 `MOV0 | 1V` is exactly carry(MOV0 + 1V + 1), so 9D+10D compute the 9-bit U = MOV[8:0] + V[8:0] + 1 where V[8] is VBLANK (there is no 256V net anywhere in SP-313).
- rtl/video/xybots_mo_vmatch.sv:25 The bit-0 sum, MOA2, is the matching XNOR — and sheet 5 builds MOA2 out of 2A LS08 + 1A LS00 + 4A LS04 + 1B LS02, which is an XNOR.
- rtl/video/xybots_mo_vmatch.sv:30 The +1 is the line-buffer pipeline: a column computed while the beam is on line V is written into the off-screen buffer and read out on line V+1 (sheet 8, RSEL = 1V).
- rtl/video/xybots_mo_vmatch.sv:66 5D's C4 goes NOWHERE, and MOPIC13..8 reach the ROM sockets unmodified through 5F/5E LS273F.
- rtl/video/xybots_mo_vmatch.sv:76 object word 2, as latched by 10F/9E LS174A
- rtl/video/xybots_mo_vmatch.sv:79 object word 0, as latched by 6F/6E LS273B
- rtl/video/xybots_pf.sv:3 Xybots playfield layer — SP-313 sheet 7 (13F/13E LS273D, 13J LS174D, PFROM0-3, 6M/5M LS157A, 6L/5L LS194A, 13K LS273).
- rtl/video/xybots_pf.sv:12 h = 8k+4 PLAYFIELD VRAC phase: the word is on the SCRAM data bus -> 8k+5 13F/13E LS273D clock on 4HD1H rising: PFHFLIP (bit 15), colour (bits 14:11) and the 13-bit code (bits 12:0) latched.
- rtl/video/xybots_pf.sv:19 -> 8k+13 the prefetched row moves into the display slot h = 8k+14 ROM byte index {~4HD1H, 2HD1H} ^ {flip,flip} = 0 -> 8k+15 6L/5L LS194A parallel load (S1 = /1H), 13J-style colour move ...
- rtl/video/xybots_pf.sv:43 ---- ROM address, straight off sheet 7 ---------------------------------- A15..A5 = PFPIC10..PFPIC0 A4..A2 = 4V, 2V, 1V A1 = /4HD1H XOR PFHFLIP A0 = 2HD1H XOR PFHFLIP socket = {PFPIC12, PFPIC11} -> MAME "tiles" region offse
- rtl/video/xybots_pf.sv:91 13F / 13E LS273D — clocked by 4HD1H, which rises entering count h ≡ 5, so the PRE-edge condition is h[2:0] == 4.
- rtl/video/xybots_pf.sv:129 13F/13E latch the new word and the fetch starts immediately
- rtl/video/xybots_pf.sv:142 ROM byte index and the 6M/5M LS157A nibble swap A1 = /4HD1H XOR PFHFLIP, A0 = 2HD1H XOR PFHFLIP 4HD1H(h) = 4H(h-1) is high for h ≡ 5,6,7,0; 2HD1H(h) = 2H(h-1) is high for h ≡ 3,4,7,0.
- rtl/video/xybots_pf.sv:174 6L / 5L LS194A — S1 = /1H, CK = VIDCLK: parallel load on the edge whose PRE-edge count is even, one shift per count.
- rtl/video/xybots_pf.sv:195 13J LS174D — CK = 2HD1H, which rises entering counts h ≡ 3 and h ≡ 7, i.e. on the edges whose PRE-edge count has h[1:0] == 2.
- rtl/video/xybots_prio.sv:3 Xybots priority network — SP-313 sheet 8: 9C LS10 (PRIEN), 12J 74S85 with its cascade trick, 11K 74S157 (the P bus) and the 12K + 14M LS32 gates (the M bus).
- rtl/video/xybots_prio.sv:15 ---- 12J is a 74S85, not a PAL ------------------------------------------ A = LBPRI, B = PFCOL, A<BI = A>BI = GND and A=BI = PRIEN; the only output used is A>BO = PF/MO.
- rtl/video/xybots_prio.sv:17 A 74S85 whose three cascade inputs are all low drives BOTH A>BO and A<BO high on A == B, so:
- rtl/video/xybots_prio.sv:40 12J 74S85 pin 5 (A>BO): 1 = playfield wins
- rtl/video/xybots_prio.sv:48 ---- 12J 74S85 --------------------------------------------------------- The structural device, so that the cascade state is modelled and not assumed.
- rtl/video/xybots_prio.sv:58 With A>BI = 0 and A<BI = 0 the 74S85 gives {1,1,0} when A=BI is also 0, and {0,0,1} when A=BI is high.
- rtl/video/xybots_prio.sv:70 ---- 11K 74S157 -------------------------------------------------------- SEL = 8M 74S32 ( PF/MO , 10E 74S00(PRIEN, 11J 74S04(LBCOL3)) ) = PF/MO | ~(PRIEN & ~LBCOL3) SEL = 1 selects the B inputs, i.e. PFPIX.
- rtl/video/xybots_syngen.sv:3 Xybots — SP-313 sheet 4: master clock tree, SYNGEN custom (11E/F) and the discrete glue that surrounds it.
- rtl/video/xybots_syngen.sv:11 This module is the whole of sheet 4 except the LS244 switch-input buffers (18F/18J/21E) — i.e. the oscillator/divider chain, the SYNGEN custom itself, and every gate that shapes SYNGEN's outputs into the nets the other eight sheets consume.
- rtl/video/xybots_syngen.sv:19 SP-313 draws only its pinout, so its internal behaviour is reconstructed from the *same part* as implemented discretely on Atari System 1 (SP-277) and modelled in the Arcade-Gauntlet_MiSTer core's `rtl/gauntlet/SYNGEN.vhd` (d18c7db, GPL-3.0
- rtl/video/xybots_syngen.sv:26 * a 9-bit horizontal counter cleared by NXL, * an 82S153 PLA (Atari 136032-103) decoding H into NXL/HSYNC/HBLANK/LMPD/PFHST/BUFCLR/C0/C1/C2, all of them taken through one register (the "7E" 74S174), * an 8-bit vertical counter plus one extr
- rtl/video/xybots_syngen.sv:44 PIN DIRECTIONS ON SP-313 SHEET 4
- rtl/video/xybots_syngen.sv:56 VSCK (vertical scroll clock) and /PFHST (playfield horizontal start) are the System-1 scrolling hooks: Xybots has no scrolling playfield, so both are bare stubs, as is C0 (Xybots makes its own VRAC0 with 8M 74S32 instead).
- rtl/video/xybots_syngen.sv:87 14M (8B 74S04 1->2)
- rtl/video/xybots_syngen.sv:88 /14MP (8B 74S04 13->12)
- rtl/video/xybots_syngen.sv:89 7M (7B 74S74 Q)
- rtl/video/xybots_syngen.sv:90 /7M (7B 74S74 /Q)
- rtl/video/xybots_syngen.sv:91 DCLK (9B 74S74 Q)
- rtl/video/xybots_syngen.sv:92 RCLK (1C 74S74 Q, /PRE = DCLK)
- rtl/video/xybots_syngen.sv:93 VIDCLK (11J 74S04 3->4 from /CKO)
- rtl/video/xybots_syngen.sv:94 /VIDCLK (8B 74S04 9->8 from CKO)
- rtl/video/xybots_syngen.sv:117 10E 74S00 (1,2->3)
- rtl/video/xybots_syngen.sv:118 11J 74S04 (9->8)
- rtl/video/xybots_syngen.sv:120 11J 74S04 (11->10)
- rtl/video/xybots_syngen.sv:122 11J 74S04 (1->2)
- rtl/video/xybots_syngen.sv:130 ---- video-RAM access phase (sheet 5 LS253 select) ----
- rtl/video/xybots_syngen.sv:131 8M 74S32 (4 = /2HD1H, 5 = 4HD2H -> 6)
- rtl/video/xybots_syngen.sv:143 ---- interrupt ---- Sheet 2: 1B LS02 (11 = VBLANK, 12 = /HBLANK -> 13) then 10A LS20 with 4V,2V,1V then 4A LS04 (9->8).
- rtl/video/xybots_syngen.sv:145 The IRQ1 latch is set by `virq_gate & VIRQ`, where VIRQ is alpha-RAM bit 10 latched by 6D LS174E on sheet 7; that half comes out of xybots_alpha.
- rtl/video/xybots_syngen.sv:158 clk_sys phase, and the 14M / 7M chain (SP-313 sheet 4)
- rtl/video/xybots_syngen.sv:175 7B 74S74: D = /7M, CK = 14M -> divide by two, rising with ce_7m.
- rtl/video/xybots_syngen.sv:179 9B 74S74: D = /7M, CK = /14MP.
- rtl/video/xybots_syngen.sv:186 1C 74S74: D = 7M, CK = 14M, /PRE = DCLK (asynchronous), /CLR = PR1 = 1.
- rtl/video/xybots_syngen.sv:196 SYNGEN CKO (pin 29) = CK, /CKO (pin 4) = ~CK; both are re-inverted on the board, so VIDCLK is in phase with 7M and is the 68000 clock (sheet 2).
- rtl/video/xybots_syngen.sv:202 SYNGEN horizontal PLA (Atari 136032-103 / 82S153), sheet-4 black box
- rtl/video/xybots_syngen.sv:226 o16 (C0), o12 (/PFHST) and o11 (BUFCLR) are deliberately not implemented: pins 24 and 28 are bare stubs on sheet 4 and BUFCLR has no pin at all in the Xybots symbol, so nothing in this game can observe them.
- rtl/video/xybots_syngen.sv:231 SYNGEN vertical PROM (Atari 136032-102, 256 x 4), sheet-4 black box
- rtl/video/xybots_syngen.sv:264 The counters and the SYNGEN output register (74S174 "7E" / "7D")
- rtl/video/xybots_syngen.sv:332 8B 74S04
- rtl/video/xybots_syngen.sv:336 10E 74S00
- rtl/video/xybots_syngen.sv:338 11J 74S04
- rtl/video/xybots_syngen.sv:344 8M 74S32: VRAC0 = /2HD1H | 4HD2H.
- rtl/video/xybots_syngen.sv:350 g3b/g6b are the two unnamed intermediate nets on sheet 4; /MOHR itself comes out of SYNGEN pin 25.
- rtl/video/xybots_testpat.sv:22 4 bits per channel, which is the natural width for this game: Xybots' CRAM is 1024 x 16 in I:R:G:B 4:4:4:4 (SP-313 sheet 9), so the real palette output lands on the same bus.
- rtl/video/xybots_video.sv:74 6D LS174E: raw alpha bit 10, UNDELAYED
- rtl/video/xybots_video.sv:242 Compositor stage 1 — the GPC's 7M input register (sheet 8).
- rtl/xybots_core.sv:7 The five blocks, and the SP-313 schematic sheets each one models:
- rtl/xybots_core.sv:9 xybots_mem sheet 3 ROMs + the MiSTer download path + SDRAM xybots_main_bus sheet 2 — 68000, decode, DTACK, IRQ, watchdog, SLAPSTIC, EEPROM + NVRAM, inputs, video RAM, colour RAM xybots_video sheets 4/5/7/8/9 — SYNGEN, the VRAM ad
- rtl/xybots_core.sv:23 ONE clock domain, clk_sys = 57.272727 MHz = 4 x the SP-313 sheet-4 crystal (14.318181 MHz), with integer clock enables and no fractional enables anywhere.
- rtl/xybots_core.sv:28 ce_14m = clk_sys / 4 = 14.318181 MHz SYNGEN master (sheet 4)
- rtl/xybots_core.sv:80 cpu_reset sys_reset | watchdog_reset — formed INSIDE xybots_main_bus, because the sheet-2 /RESET net reaches only the 68000's RESET/HALT pins and (on sheet 3) the EEPROM unlock latch and its /OE gate.
- rtl/xybots_core.sv:141 ---- video out (single clk_sys domain, qualified by ce_pix) ---- 8 bits per channel: CRAM is I:R:G:B 4:4:4:4 (sheet 9), but the INTENSITY bit means the sheet-9 resistor-ladder DAC produces more than 16 levels per channel, so the core's outp
- rtl/xybots_core.sv:403 Main board — SP-313 sheet 2
- rtl/xybots_core.sv:459 JSA I audio PCB — SP-313 sheets 11-14
- README.md:7 The core reconstructs the original PCB set — the game board (68000 + SLAPSTIC 137412-107) and the Atari **JSA I** stand-alone audio board (6502 + YM2151) — from
- README.md:119 | Protection | Atari **SLAPSTIC 137412-107** at 14B, banking ROM `0x8000-0x9FFF` in 4 × 8 KB pages |
- README.md:126 | Priority | The 74S85 magnitude comparator at 12J (not a PAL — sheet 8 is unambiguous) + the GPC custom at 14K form the colour-RAM address |
- README.md:161 **Programmed logic** — the one PAL the core depends on, the JSA sound board's address decoder (Atari 136056-2101), is implemented from its fuse map rather than
- README.md:168 **Video timing** — the SYNGEN raster is reconstructed from the real Atari System 1 sync PROM 136032-102 and checked by an exhaustive one-frame bench that rebuil
- README.md:219 It is where the SP-313 schematics or the sound board's decoder PAL document something MAME's model does not — and in two of the seven cases MAME's own source fl
- README.md:225 | Lines per frame | `set_raw(..., 262, ...)`, 59.923 Hz, above a comment saying these are *"from published specs, not derived"* and that the board uses a SYNGEN
- README.md:230 | Sound CPU: YM2151 select | `0x2000-0x2001` | **`0x2000-0x27FF`** — the decoder PAL 136056-2101 sees neither SA10..SA1 nor anything the YM2151 (which has only
- README.md:247 The decoder output exists on sheet 2 and goes nowhere, so the writes terminate like any other decoded-but-unconnected access and have no effect.
- README.md:269 A SYNGEN dump would settle the 263-line count directly.** The vertical total is derived from the System 1 sync PROM and the discrete System 1 circuit that the S
- README.md:318 The SLAPSTIC is *not* derived from those cores: it was written from SP-313 sheet 2 and verified against MAME's state machine.
- README.md:322 Thanks to the MAME team, whose `xybots.cpp`, `atarijsa.cpp`, `atarimo.cpp` and `slapstic.cpp` served as the functional oracle throughout, and to whoever preserv
Cites hardware references or measurements that MAME's driver also gives — 1
Notes where it differs from MAME — 3
- rtl/main/xybots_irq.sv:27 In attract and in play the game keeps exactly ONE armed word — row 29, column 42 — so the two models coincide at ~line 239; in SELF TEST the character-set and RAM-test screens set bit 10 in thousands of visible words and real hardware takes
- README.md:11 Where a schematic and MAME disagree, the schematic wins and the disagreement is recorded: see [Where this core differs from MAME](#where-this-core-differs-from-
- README.md:216 Where this core differs from MAME
Cites MAME source — 84
- Arcade-Xybots.sv:12 Xybots runs on a HORIZONTAL monitor (MAME ROT0), so there is no rotation: the raster goes straight through arcade_video.
- Arcade-Xybots.sv:100 Xybots has NO dip switches: MAME's INPUT_PORTS_START(xybots) has only the 0x806100 control word and the 0x806200 service/status word, and every operator setting lives in the X2804 EEPROM at 0x805000, changed from the game's own self-test.
- Arcade-Xybots.sv:222 Coins are read on the JSA audio board and are SWAPPED on Xybots (MAME set_swapped_coins(true)); the swap is inside rtl/sound/xybots_jsa_io.sv, so coin1 here is the LEFT chute / player 1 exactly as the harness labels it.
- rtl/main/xybots_addr_decode.sv:8 Every select below is read off the drawn decoders on sheet 2, not off MAME's `main_map`.
- rtl/main/xybots_addr_decode.sv:9 The mirrors MAME documents fall OUT of the address bits those decoders never look at, so the two descriptions agree over the whole 24-bit space (see the mirror note at the end).
- rtl/main/xybots_addr_decode.sv:46 ---- mirrors, i.e. which bits nobody looks at ---------------------------- A23 = 1 half: A22..A15 are not decoded at all -> everything repeats every 0x8000, which is MAME's `.mirror(0x7f8000)`.
- rtl/main/xybots_addr_decode.sv:49 /CRAM covers 0x804000-0x804FFF but only A10..A1 reach the RAM -> MAME's 0x800 palette mirror.
- rtl/main/xybots_addr_decode.sv:50 /EEROM covers 0x805000-0x805FFF but the X2804A only has A0..A8 -> MAME's 0xc00.
- rtl/main/xybots_addr_decode.sv:52 A23 = 0 half: only A17 (ROM /CE) and A16/A15 (slapstic) are decoded, so the ROM repeats every 0x40000, which is MAME's `.mirror(0x7c0000)`.
- rtl/main/xybots_addr_decode.sv:154 That omission is the WHOLE source of MAME's `.mirror(0x7c0000)` on the ROM half and `.mirror(0x7f8000)` plus the 0x100-byte I/O pages on the board half, so it is deliberate; sink the bits so the tools agree.
- rtl/main/xybots_eeprom_2804.sv:18 The socket is wired for a 2 K x 8 part but the fitted X2804A is 512 x 8 (A0..A8 only), so the device repeats four times inside 0x805000-0x805FFF — which is exactly MAME's `.mirror(0x7f8c00)`.
- rtl/main/xybots_eeprom_2804.sv:31 Exactly one write is permitted per unlock, which is MAME's `lock_after_write(true)`.
- rtl/main/xybots_eeprom_2804.sv:225 The board has no bus pull-ups on D0B-D7B, so the modelled float value is the 0xFF that MAME's unmapped read gives.
- rtl/main/xybots_inputs.sv:28 **MAME says** FFE100 bit 0 = START2 ...
- rtl/main/xybots_inputs.sv:40 Two schematic-vs-MAME points: * **D12-D15 are four real switch inputs** on connector SWB that MAME declares `IPT_UNUSED`.
- rtl/main/xybots_irq.sv:19 ---- VIRQ is programmable, and that is the biggest schematic-vs-MAME difference in the whole core ---------------------------------------- `VIRQ` is not a raster signal.
- rtl/main/xybots_irq.sv:26 MAME instead does `screen_vblank() -> ASSERT_LINE M68K_IRQ_1`, one IRQ per frame.
- rtl/main/xybots_irq.sv:45 MAME drives two independent input lines.
- rtl/main/xybots_main_bus.sv:88 SWB-3..6 -> /SYSIN D12..D15 (MAME: unused)
- rtl/main/xybots_main_bus.sv:194 So the access that selects a bank still reads the OLD bank and the new one applies from the next cycle — which is exactly what MAME's read TAP does (the tap runs after the underlying `bankr` read) and what the boot trace shows at pc 0x13F32
- rtl/main/xybots_main_bus.sv:265 The game never notices: it touches CRAM with WORD accesses only, so this and MAME's per-lane `palette_device::write16` are indistinguishable here.
- rtl/main/xybots_main_bus.sv:396 Everything else — reads of the write-only strobes (the `clr` read-modify-writes at pc 0x52A and the five `clr.w $ea00.w` sites), the three unconnected LS138 outputs, the undecoded 0x806300/0x806700/0x807000 pages — leaves the bus floating,
- rtl/main/xybots_slapstic.sv:30 The transition structure MAME's `slapstic.cpp` gives for chip class 103-110, which is what 137412-107 belongs to.
- rtl/main/xybots_slapstic.sv:31 MAME qualifies each match with a 32-bit range test as well as the chip's own address mask; on this board that range test reduces to exactly "A23=0 and A17=0 and A16=0 and A15=1", which IS /SLAPSTIC, so the two forms below are all that is ne
- rtl/main/xybots_slapstic.sv:56 slapstic_data for 137412-107, verbatim from slapstic.cpp.
- rtl/main/xybots_slapstic.sv:56 All values are CHIP word addresses (= 68000 A14..A1), which is what MAME's tables hold.
- rtl/main/xybots_slapstic.sv:99 Present so the caller keeps the write cycles; the state machine ignores it, exactly as MAME and sheet 2 do.
- rtl/main/xybots_slapstic.sv:107 MAME's S_* encoding; diagnostic output, no consumer in the core.
- rtl/main/xybots_slapstic.sv:111 MAME slapstic.h `enum { S_IDLE, S_ACTIVE, S_ALT_VALID, S_ALT_SELECT, S_ALT_COMMIT, S_BIT_LOAD, S_BIT_SET_ODD, S_BIT_SET_EVEN, ...
- rtl/main/xybots_slapstic.sv:125 68000 A0 does not exist on the bus, and MAME masks bit 0 out of every test, so nothing here depends on byte lane.
- rtl/main/xybots_watchdog.sv:30 **MAME says** `WATCHDOG_TIMER(config, "watchdog")` with default timing: the 8-frame period, the 2-frame pulse and the park-at-9 power-up are not modelled there.
- rtl/mem/xybots_prog_rom.sv:36 Result: an 8 KB page at 0x008000-0x009FFF repeated four times over 0x8000-0xFFFF, exactly MAME's `configure_entries(0, 4, base + 0x8000, 0x2000)`.
- rtl/mem/xybots_rom_loader.sv:13 stream base size MAME region destination
- rtl/mem/xybots_rom_loader.sv:25 * maincpu is emitted as BIG-ENDIAN INTERLEAVED WORDS — the even-offset MAME ROM (17cd/17b) is `map="01"`, the FIRST byte of each output word, i.e. D15:8.
- rtl/video/xybots_alpha.sv:23 Two more pipeline stages downstream (GPC, then CRAM + 18L/19L) put that pixel on the DAC during count 8k+9+p, i.e. at hpos = 8k+p — where MAME's alpha tilemap puts it.
- rtl/video/xybots_alpha.sv:119 Byte / plane order (MAME's `anlayout`): char_data[7:4] = ANPIX1 of pixels 0..3 (plane 0 = the MSB pen bit) char_data[3:0] = ANPIX0 of pixels 0..3 and A0 = /4H already selected pixels 0..3 vs 4..7.
- rtl/video/xybots_dac.sv:34 Neither ladder is exactly binary: 4700/620 = 7.58 rather than 8, and 1000/120 = 8.33 rather than 8, so the colour curve sits slightly above MAME's straight n/15 in the low half and slightly below it in the high half, and the intensity curve
- rtl/video/xybots_dac.sv:39 ---- MAME ---------------------------------------------------------------- MAME's `IRGB_4444` is, measured against two pixel-exact captured frames covering 25 distinct palette words:
- rtl/video/xybots_dac.sv:46 `DAC_MAME_COMPAT = 1` reproduces it bit for bit, which is what a simulation comparing this core against MAME's rendered bitmap wants.
- rtl/video/xybots_dac.sv:73 round(2^15 * fc(n)) for the 620 / 1.2K / 2.4K / 4.7K colour ladder, and MAME's 17*n when DAC_MAME_COMPAT is set.
- rtl/video/xybots_dac.sv:117 The shifted product is 8-bit by construction — 255 * 2^30 >> 30 in schematic mode, 255*255 >> 8 in MAME mode — so the cast is exact.
- rtl/video/xybots_gpc.sv:10 ---- this is the one place MAME is the oracle --------------------------- The GPC is an Atari custom and a black box: sheet 8 gives every pin connection and nothing about the inside.
- rtl/video/xybots_gpc.sv:17 and MAME's alpha tile info is `color = (data >> 12) & 7`, `opaque = data & 0x8000`, with the "chars" gfx entry at palette base 0 and 4 pens per colour.
- rtl/video/xybots_gpc.sv:23 and that is a DEDUCTION FROM MAME, not from the schematic.
- rtl/video/xybots_gpc.sv:23 Likewise the palette bases 0 / 256 / 512 (and the otherwise unused 768) come from MAME's GFXDECODE entries.
- rtl/video/xybots_gpc.sv:34 The third row is MAME's `pf[x] = (mo[x] ^ 0x2f0)`, the case its comment calls "doesn't make sense from the schematics".
- rtl/video/xybots_gpc.sv:62 The alpha layer is on top; pen 0 is transparent unless the tile's opaque bit (word bit 15) is set -- MAME's TILE_FORCE_LAYER0.
- rtl/video/xybots_gpc.sv:66 M is the line buffer's byte, inverted sense; ~M is MAME's {colour, pen}.
- rtl/video/xybots_mo_fetch.sv:149 On a visible line that is simply MAME's vpos; on the last line of the frame (v256 phase, v = 255, VBLANK = 1) it is 511, and 511 + 1 = 0 mod 512 — which is exactly the display line the buffer written there feeds.
- rtl/video/xybots_mo_linebuf.sv:129 The counters are nine bits, so a column that starts near 511 wraps into the left edge of the screen — which is exactly MAME's `xpos & 0x1ff` followed by the `xpos >= width ?
- rtl/video/xybots_mo_vmatch.sv:32 So U = MOV + D for the DISPLAYED line D, which is MAME's coordinate directly.
- rtl/video/xybots_mo_vmatch.sv:35 MAME (`atarimo.cpp::render_object`) puts the object at ypos = (-(Y + 8*height)) & 0x1FF and draws 8*height lines from there, i.e. D is covered iff (Y + D) mod 512 >= 512 - 8*height and the row inside the object is (Y + D) mod 512 - (512 - 8
- rtl/video/xybots_mo_vmatch.sv:50 Two connections are ambiguous on the drawing and are read here as 3D B3 = 10D.S1 4D B1 = 3D.S1 4D's B1 is the load-bearing one: tied to GND the picture code would advance two tiles per row and only four rows could be addressed, whereas 3D
- rtl/video/xybots_mo_vmatch.sv:67 So the add is EIGHT bits wide and a carry out of MOPIC7 is lost: tile index = {MOPIC[13:8], (MOPIC[7:0] + tile_row)[7:0]} MAME adds `code + row` in full 14-bit precision.
- rtl/video/xybots_mo_vmatch.sv:70 That is a real difference between this core and MAME, kept because it is what the board does.
- rtl/video/xybots_pf.sv:43 ---- ROM address, straight off sheet 7 ---------------------------------- A15..A5 = PFPIC10..PFPIC0 A4..A2 = 4V, 2V, 1V A1 = /4HD1H XOR PFHFLIP A0 = 2HD1H XOR PFHFLIP socket = {PFPIC12, PFPIC11} -> MAME "tiles" region offse
- rtl/video/xybots_pf.sv:50 The empty 9L socket ({PFPIC12,PFPIC11} = 2, region 0x20000-0x2FFFF) floats and reads as 0xFF on the board; the MRA materialises 0xFF there while MAME leaves 0x00.
- rtl/video/xybots_pf.sv:168 MAME's gfx_8x8x4_packed_msb: the HIGH nibble is the left pixel of the pair.
- rtl/video/xybots_prio.sv:10 ---- everything from the line buffer is INVERTED sense ------------------- LBPIX = ~pen, LBCOL = ~colour, LBPRI = ~priority (= MAME's `mopriority`).
- rtl/video/xybots_prio.sv:23 which is the pair of equations MAME uses.
- rtl/video/xybots_syngen.sv:36 The one place it does NOT agree with MAME is the total line count: this model gives **263 lines**, MAME's `set_raw` says 262.
- rtl/video/xybots_syngen.sv:38 MAME's own comment at that line says those parameters come from published specs rather than from the board, so the derived value is used here.
- rtl/video/xybots_syngen.sv:40 Frame rate is therefore 7 159 090 / (456*263) = 59.696 Hz instead of MAME's 59.923 Hz.
- rtl/video/xybots_syngen.sv:100 visible pixel index = h - 9 (MAME hpos)
- rtl/video/xybots_video.sv:22 That is exactly where the board puts it and exactly where MAME puts tile column k: at x = 8k.
- rtl/video/xybots_video.sv:34 1 = MAME's IRGB_4444 transfer
- rtl/xybots_core.sv:92 1 selects MAME's IRGB_4444 transfer instead of the sheet-9 resistor ladder, bit-exactly.
- rtl/xybots_core.sv:93 It exists so a simulation can be compared against MAME's rendered bitmap; the core itself uses the schematic curve and there is deliberately no OSD option for it.
- rtl/xybots_core.sv:134 Coins live on the JSA board and are SWAPPED on Xybots (MAME set_swapped_coins(true)); the swap is inside xybots_jsa_io.
- README.md:7 The core reconstructs the original PCB set — the game board (68000 + SLAPSTIC 137412-107) and the Atari **JSA I** stand-alone audio board (6502 + YM2151) — from
- README.md:21 All five MAME sets run on identical RTL — they differ only in the main CPU ROMs (and, for `xybots0`, in three tile ROMs and the sound ROM's filename).
- README.md:39 | ROMs | Supplied by you from a MAME archive; none are included here |
- README.md:82 The operator manual's Switch Test page calls the knob switches *Turn Left* / *Turn Right*; MAME names the same two inputs *Twist Left* / *Twist Right*.
- README.md:149 Like the other MiSTer arcade repositories, this one ships the core and its release files only; the simulation benches, MAME capture scripts and design notes are
- README.md:173 **Main CPU boot** — the 68000 bus is co-simulated against MAME 0.288 through reset, the RAM and ROM tests, the SLAPSTIC checksum walk, 143 EEPROM writes and the
- README.md:179 The SLAPSTIC 107 is proved equivalent to MAME's state machine over the full alt / bit / add sequences.
- README.md:196 Those states are replayed through the real core RTL and compared to MAME's own rendered bitmap pixel for pixel.
- README.md:218 MAME is this project's functional oracle and every gate above measures the core *against* it, so this is a narrow list, not a general claim.
- README.md:219 It is where the SP-313 schematics or the sound board's decoder PAL document something MAME's model does not — and in two of the seven cases MAME's own source fl
- README.md:223 | Behaviour | MAME | This core |
- README.md:242 A `DAC_MAME_COMPAT` parameter selects MAME's curve so the frame-CRC gates can compare bit for bit; the shipping build uses the schematic's.
- README.md:249 MAME does not map the address at all, and reaches the same outcome by a different route.
- README.md:255 Neither row is observable in this game: the sound program addresses the YM2151 at `0x2000`/`0x2001` only and only ever *reads* `0x2806`, and MAME taps over attr
- README.md:322 Thanks to the MAME team, whose `xybots.cpp`, `atarijsa.cpp`, `atarimo.cpp` and `slapstic.cpp` served as the functional oracle throughout, and to whoever preserv
Says it matches, follows or was checked against MAME — 9
- Arcade-Xybots.sv:199 The /SW word at 0x806100 in its SCHEMATIC bit order, but ACTIVE HIGH ("pressed") — the 18F/21E LS244 inversion lives in rtl/main/xybots_inputs.sv, which is where the sheet-4 wiring is transcribed and verified (MAME's FFE100 agrees bit for b
- rtl/main/xybots_inputs.sv:42 They are exposed here as inputs and default to inactive (reading 1), so the core matches MAME unless a user wires them.
- rtl/main/xybots_inputs.sv:44 * **256H (D10) is never tested by the program.** MAME approximates it by XORing 0x0400 on every read of the port; this core drives the real 256H from the video counter, because nothing observable depends on it and the hardware signal is fre
- rtl/main/xybots_slapstic.sv:7 The state machine below was written from SP-313 sheet 2 and checked against MAME's `slapstic.cpp` (BSD-3-Clause); see NOTICE.md.
- rtl/main/xybots_slapstic.sv:90 It must pulse for EVERY cycle the chip can see, reads and writes alike, not only for cycles inside the banked window: alt1 is matched with MAME's `test_any`, and an out-of-window cycle breaks an alt sequence in progress.
- rtl/video/xybots_cram.sv:16 Layout, straight off the wiring and identical to MAME's IRGB_4444:
- README.md:194 **Pixel-exact video gates** — MAME is instrumented to capture complete video state (alpha, playfield and motion-object RAM plus the palette) at chosen frames.
- README.md:197 The alpha layer, the playfield layer, the motion-object engine and the full compositor each have their own gate; the compositor is **bit-identical to MAME's `go
- README.md:318 The SLAPSTIC is *not* derived from those cores: it was written from SP-313 sheet 2 and verified against MAME's state machine.
Says it was translated, ported or taken from MAME — 1
- Arcade-Xybots.sv:199 The /SW word at 0x806100 in its SCHEMATIC bit order, but ACTIVE HIGH ("pressed") — the 18F/21E LS244 inversion lives in rtl/main/xybots_inputs.sv, which is where the sheet-4 wiring is transcribed and verified (MAME's FFE100 agrees bit for b
Keeps a MAME approximation — 1
- rtl/main/xybots_inputs.sv:44 * **256H (D10) is never tested by the program.** MAME approximates it by XORing 0x0400 on every read of the port; this core drives the real 256H from the video counter, because nothing observable depends on it and the hardware signal is fre
Shares text with the MAME driver without saying so — 3