← All cores
Arcade-Dooyong (shmupfan)
Cites MAME source — 37
- Arcade-Dooyong.sv:126 keyboard, MAME default keys (ps2_key: [10] toggles per event, [9] pressed, [8] extended, [7:0] set-2 scancode) P1: arrows, LCtrl = B1, LAlt/Space = B2, LShift = B3, 1 = Start, 5 = Coin, 9 = Service P2: R/F/D/G, A = B1, S = B2, Q = B3, 2 = S
- Arcade-Dooyong.sv:211 flytiger and bluehawk are ROT270 in MAME: turn the picture 90 degrees counter-clockwise to stand it upright
- rtl/dy_snd.sv:11 Clock enables from the system clock: CPU : clk / CPU_DIV (4 MHz) YM : fractional YM_NUM / YM_DEN of clk (3.579545 MHz on flytiger, bluehawk "3.579545MHz or 4Mhz ???" in MAME, spec 2), or YM4_NUM / YM_DEN with i_ym_4m (4 MHz, primella fam
- rtl/dy_snd.sv:19 Mix (MAME parity, spec 2, driver 1492-1495): YM2151 left and right at 0.35 each and the M6295 at 0.42 into one mono speaker.
- rtl/dy_snd.sv:20 jt51's xleft / xright are 16-bit full scale; jt6295's sound is the sum of the channels in 12-bit units, which MAME converts at 1/2048 of full scale, so the OKI term is 0.42 * 16 = 6.72 in 16-bit units.
- rtl/dy_snd.sv:23 Calibrated in M3 against MAME's WAV output (m3_findings).
- rtl/dy_snd.sv:26 YM2203 variant (i_opn, spec 2, 4, 5.1; lastday, gulfstrm, pollux): two jt03 (YM2203 with SSG) instead of the YM2151 and M6295, both IRQs ORed into the Z80 INT (MAME's INPUT_MERGER_ANY_HIGH; T7), port A reads 0.
- rtl/dy_snd.sv:35 Mix: every YM2203 output at 0.40 into mono (driver 1476-1482); gains calibrated against MAME's WAV (see FM_GAIN).
- rtl/dy_snd.sv:47 YM2203 gains, fitted against MAME's WAV (20 ms window power over stretches where the sound streams are identical; sim/m3/fit_opn.py): FM 100-102/256 on all three games = MAME's 0.40 routing (102/256); SSG on jt49's summed output depends on
- rtl/dy_snd.sv:122 With the enables held at 0 in reset, every operator kept zero attenuation (full volume) and the FM outputs sat at a large constant until the program's first writes, where MAME outputs 0 (m3_findings 7).
- rtl/dy_snd.sv:232 jt51 takes register writes on any clock but sets its busy flag only for a write that coincides with cen_p1 (jt51_mmr: busy updates under cen); a one-clock strobe hit cen_p1 about once in 50 writes, so the status read after a data write show
- rtl/dy_spr_z80.sv:11 The first sprite with a solid (pen != 15) pixel at an x owns that pixel for the line, whether or not the tile layers later hide it (MAME prio_transpen sets pri = 31 either way).
- rtl/dy_sys.sv:12 Hardware (M4): PIX_NUM/PIX_DEN = 1/12 (exact 8 MHz at 96 MHz) and V_TOTAL = 260 (60.10 Hz); the MAME parity values stay the defaults for simulation.
- rtl/dy_sys.sv:16 Program ROM is in BRAM (zero wait states, as MAME's Z80 has none; no SDRAM arbitration with the renderer).
- rtl/dy_sys.sv:23 lastday, gulfstrm and pollux read their own bit orders; they are rebuilt here, including the vblank input of gulfstrm and pollux (bit 4, low during MAME's 2.5 ms vblank).
- rtl/dy_sys.sv:27 68000 family (superx, rshark, popbingo; spec 3.7, 5.2): fx68k main CPU at 8 MHz (10 MHz on popbingo) from two-phase fractional enables, no wait states (DTACK within the cycle, as MAME's memory model), IRQ5 at line 248 and IRQ6 at line 120,
- rtl/dy_sys.sv:375 MAME screen vblank: 2.5 ms from line 248
- rtl/dy_sys.sv:575 upper byte reads 0 (MAME)
- rtl/dy_sys.sv:620 MAME's screen vblank line (set_vblank_time 2500 us, spec 5.3): high from the vblank IRQ for 2.5 ms, counted in pixel enables
- rtl/dy_video.sv:7 Geometry is MAME's parity frame (spec 5.3): 512 x 256 at the pixel enable, visible x 64-447, y 8-247, vblank IRQ at line 248.
- rtl/dy_video.sv:21 Primella family (sadari, gundl94; spec 5.3, 11.6): MAME's visible area is all 256 lines and vblank starts at line 256, so here every line 0-255 is rendered and shown, the vblank IRQ fires at line 256 (with the 256-line parity frame that is
- rtl/dy_video.sv:26 The displayed frame after vblank N therefore shows the state MAME draws at vblank N. No sprites; the text layer goes below fg0 when ctrl bit 3 is set (i_pri_swap).
- rtl/dy_video.sv:49 lines per frame: 256 = MAME's parity frame (sim, with the 60 Hz fractional pixel enable); hardware uses 260 at an exact 8 MHz pixel clock = 60.10 Hz (spec 5.3: PCB 15.68 kHz / 60 Hz suggests ~261; R1).
- rtl/dy_video.sv:130 Power-on phase (MAME parity): MAME's screen starts at the vblank line (vpos = visible bottom + 1) and its first vblank comes one frame later, so the counters start at line 248 (line 256 = 0 on the primella family) and that first line does n
- rtl/dy_video.sv:133 With the counters starting at 0 instead, every CPU runs 8 lines late against the video from reset (m3_findings 2 took this for a MAME timestamp artefact; the main CPU's early writes and the stacked IRQ return addresses showed it is real).
- rtl/dy_video.sv:155 primella vblank = line 256; with V_TOTAL 256 that is the wrap to line 0, which must not count at power-on (MAME's first vblank is one frame in)
- rtl/dy_video.sv:272 The vblank copy must equal an instant snapshot of the live RAM at the start of line 248, as MAME's BUFFERED_SPRITERAM8 (spec 10.1): the vblank handler starts writing sprite RAM within the copy time (seen at flytiger vblank 7408, m2_findings
- rtl/dy_video.sv:308 Their scroll registers are written at lines 120-135 (IRQ6), so the registers latched at line 7 are frame N's; MAME's frame N pairs them with the sprite list of vblank N-1, which is also what the board shows below the write line.
- rtl/dy_video.sv:311 The Z80 games write their registers in vblank and use one half (their latch picks up frame N+1's registers, which MAME pairs with the copy of vblank N).
- README.md:3 The Dooyong arcade hardware family (1990-1996) for MiSTer: ten games and 25 MAME sets from one RBF.
- README.md:72 OSD: DIP switches per game (from the MAME driver), aspect ratio, orientation for the vertical games, the standard scandoubler options, HDMI scale (Normal, V-Int
- README.md:97 Where MAME and the real hardware are likely to differ, the core follows the hardware, and the difference is logged as a research item in [docs/PLAN.md](docs/PLA
- README.md:104 MAME times both differently, so demo modes eventually drift apart from MAME (usually after tens of seconds to minutes).
- README.md:107 **Power-on state.** Video timing starts where MAME's screen does, and the Z80's IX/IY start at 0xFFFF as in MAME (Pollux reads IY before setting it).
- README.md:113 **Sadari / Gun Dealer '94 / Primella** show all 256 lines, as MAME does, which leaves only 4 blank lines per frame (the vertical sync fills them).
- README.md:116 **YM2203 levels** are fitted to MAME's audio (within 0.3 dB); the YM2203 core's output is held silent until its first register write, where it otherwise sits at
- README.md:161 The core relies on MAME's Dooyong driver by Nicola Salmoria, Vas Crabb and contributors.
Says it matches, follows or was checked against MAME — 7
- rtl/dy_sys.sv:9 MAME's parity frame is 512 x 256 at 60 Hz = 7,864,320 pixels per second (spec 5.3), which keeps the CPU/video cycle ratio identical to MAME's for M2 comparisons.
- rtl/dy_sys.sv:110 The core reset is released on the clock after such a reload (tim_fresh), so the first clock of the running core sees exactly the state a plain reset release gives (M1/M2 verified) and the CPUs start at MAME's beam position.
- rtl/dy_video.sv:4 Reference model: sim/oracle/dy_render.py, which is pixel-exact against MAME 0.288 on every M0 capture.
- README.md:10 *Frames rendered by this core (Verilator simulation of the RTL, which is pixel-exact against MAME and identical to what the MiSTer displays).*
- README.md:26 Every game's video is pixel-exact against MAME in simulation.
- README.md:95 MAME is the reference: every video block was checked pixel for pixel against MAME frame dumps, and each full system was booted from power-on and compared with M
- README.md:110 **Scroll registers** are latched once per frame, matching MAME's whole-frame draw.
Says it was translated, ported or taken from MAME — 1
- rtl/dy_video.sv:15 With the default latch at line 7 (end of vblank) the active period after vblank N shows the registers as the vblank handler left them with the sprite list copied at vblank N, which is MAME's frame N+1 whenever the game writes the registers
Keeps a MAME approximation — 1
- rtl/dy_snd.sv:29 lastday / gulfstrm map (i_opn_map_ld): ROM 0000-7FFF, RAM C000-C7FF, latch C800, YM #1 F000-F001, YM #2 F002-F003 pollux map: ROM 0000-EFFF, RAM F000-F7FF, latch F800, YM #1 F802-F803, YM #2 F804-F805 Clocks: YM2203 at OPN_NUM / YM_DEN (4 M
Shares text with the MAME driver without saying so — 1