← All cores
Arcade-DEC8 (shmupfan)
Cites hardware documentation that MAME's driver does not — 3
- rtl/d8_board.sv:26 The MRA streams the ROMs as dumped and the board swaps the sprite word address bits 0 and 1 instead (every lane of a sprite word comes from the same region offset, tools/gfx_layout.py), which reads the same data as MAME's fixed-up region.
- rtl/d8_board.sv:194 AC coupling: the boards couple every source into the amplifier through capacitors (4.7 uF after each YM3014 buffer, the SSG through its network; LM-SCH sheet 27, GONDO-TSM sheet 28), so the amplifier never sees DC.
- rtl/d8_snd.sv:43 The schematics' equal 10 kOhm summing resistors (Last Mission sheet 27, Gondomania sheet 28) do not give 1:1: the chips' DAC words differ in level.
Reports a measurement taken on the original PCB — 1
- rtl/d8_board.sv:190 ------------------------------------------------------------------ audio d8_snd's mix (YM2203 FM + SSG + OPL at the PCB-measured balance, R20), AC coupled, times a per-machine gain in 1/16 steps, then the OSD volume, saturated.
Notes where it differs from MAME — 1
- README.md:114 Gondomania's random numbers in gameplay and SRD's MCU timing differ from MAME because of it (docs/m2_findings.md).
Cites MAME source — 70
- Arcade-DEC8.sv:133 keyboard, MAME default keys (ps2_key: [10] toggles per event, [9] pressed, [8] extended, [7:0] set-2 scancode) P1: arrows, LCtrl = B1, LAlt = B2, Space = B3, Z / X = turn left / right (Gondomania), 1 = Start, 5 = Coin P2: R/F/D/G, A = B1, S
- Arcade-DEC8.sv:188 inputs, active low, in MAME's port layout (dec8.cpp L824-904, L1028-1116, L1552-1622; the vblank bits are merged inside d8_sys) Last Mission IN0/IN1 = P1/P2: 0 up, 1 down, 2 left, 3 right, 4 shoot, 5 bomb, 6 select; IN2: 2 start 1, 3 start
- Arcade-DEC8.sv:267 video: 256 x 240 (MAME visarea 0-255 x 8-247), ROT270 for all three games: the picture is turned 90 degrees counter-clockwise (MAME).
- rtl/d8_board.sv:19 254 DIP switches: byte 0 = DSW0 (SW1), byte 1 = DSW1 (SW2), MAME's port layout.
- rtl/d8_board.sv:24 srdarwinb's sprite ROMs hold bytes 1 and 2 of every 4-byte group swapped (MAME init_srdarwinb, dec8.cpp L4097-4110, swaps them back after loading).
- rtl/d8_board.sv:26 The MRA streams the ROMs as dumped and the board swaps the sprite word address bits 0 and 1 instead (every lane of a sprite word comes from the same region offset, tools/gfx_layout.py), which reads the same data as MAME's fixed-up region.
- rtl/d8_board.sv:45 inputs as MAME's ports (active low, vblank bits merged in d8_sys)
- rtl/d8_mcu.sv:1 i8751 MCU for the DEC8 boards (PLAN M2): jt8051 with its program ROM and internal RAM, wired exactly as jtframe's jtframe_8751mcu (jtcores a72a4460, the wrapper jt8051 is verified in): the ROM address is registered every clock, ROM and RAM
- rtl/d8_mcu.sv:7 `cen` is the 8 MHz oscillator enable (96 MHz / 12): a machine cycle is 12 of them (1.5 us), MAME's I8751 at 8 MHz (dec8.cpp:1997, 2111, 2426).
- rtl/d8_mcu.sv:29 SFR write events (MAME port_out callbacks fire on every port write)
- rtl/d8_rotary.sv:3 The board reads the rotary as a 12-bit one-hot code (d8_sys R_P1ROT*, dec8.cpp gondo_player_*_r); i_an0/i_an1 of d8_sys take MAME's AN port value, 0-11.
- rtl/d8_rotary.sv:5 MAME's port (dec8.cpp L1081-1085) is PORT_POSITIONS(12) PORT_WRAPS PORT_REVERSE with Z (decrement) and X (increment) for player 1, so the increment key lowers the value the game reads.
- rtl/d8_rotary.sv:7 Here "turn right" is MAME's increment key (X for player 1, M for player 2) and lowers `pos`; "turn left" (Z, N) raises it.
- rtl/d8_rotary.sv:9 Which way that turns the soldier on screen is what MAME's key assignment gives; not checked on a real controller.
- rtl/d8_rotary.sv:12 Three ways to turn, all active at once (no OSD switch needed): buttons Turn Left / Turn Right (keys or a gamepad): one step per press, then repeated every 100 ms after 250 ms held spinner hps_io spinner: [7:0] signed delta, [8] toggles
- rtl/d8_snapram.sv:10 MODE 2: two-stage snapshot for the sprite list (spec 8, tecmo16.cpp:330-341): on `snap`, S2 <= S and S <= L at that clock, the renderer reads S2.
- rtl/d8_snapram.sv:12 MAME draws frame N from the buffer as it stood at vblank N-1, which holds the live RAM of vblank N-2; S is that buffer, S2 the copy the line renderer reads during frame N.
- rtl/d8_snapram.sv:16 MAME's copy is instantaneous at the vblank callback.
- rtl/d8_snd.sv:3 Reference: MAME 0.288 dataeast/dec8.cpp (reference/mame/v0288/), "dec8:L" = line numbers there; "spec N" = docs/dec8_system_spec.md.
- rtl/d8_snd.sv:6 lastmisn R65C02 1.5 MHz (12 MHz / 8, dec8:1992), ym3526_s_map (dec8:651-658): RAM 0000-05FF, YM2203 0800-0801, YM3526 1000-1001, latch read 3000, ROM 8000-FFFF gondo R65C02 1.5 MHz (dec8:2109), oscar_s_map (dec8:635-641): YM2203 2000-2
- rtl/d8_snd.sv:22 The chips are mapped write-only in MAME; a 6502 read of them returns the unmapped value 0, as does any other unmapped read.
- rtl/d8_snd.sv:23 The oracle's sound log (sim/mame/d8_oracle.lua SNDLOG) shows the sound programs never read the chips (m3_findings).
- rtl/d8_snd.sv:39 Measured on a real SRD board (PCB capture of power-on and both demos, fitted against this core's chip outputs over 100 s): OPL:FM 1.65 (90% interval 1.60-1.77 before MAME-bias correction), SSG 3400-3900 for FM 102.
- rtl/d8_snd.sv:45 MAME: OPL 2x on lastmisn/srdarwin, 1.25x on gondo.
- rtl/d8_snd.sv:49 0.40 (MAME's FM route)
- rtl/d8_snd.sv:50 PCB fit (MAME 2775: 0.20 per channel on jt49's sum)
- rtl/d8_snd.sv:51 PCB fit, 1.67 x FM (MAME 0.80 = 205)
- rtl/d8_snd.sv:52 as OPL_GAIN (MAME 0.50 = 128)
- rtl/d8_snd.sv:93 37,464 is the reset length of the M2/M3 harness (m2/tb_sys.cpp), so the sound board leaves reset in exactly the state the M3 results (compared with MAME) were measured from: 585 YM2203 and 1,170 OPL enables, enough to fill the chips' pipeli
- rtl/d8_sys.sv:3 Reference: MAME 0.288 dataeast/dec8.cpp (and dec8_v.cpp, cpu/mcs51, machine/input_merger) vendored in reference/mame/v0288/; "spec N" = docs/dec8_system_spec.md, "dec8:L" = dec8.cpp line numbers.
- rtl/d8_sys.sv:28 RAM and I/O: the main CPU's access at ph = SLOT_M, the sub CPU's at SLOT_S (lastmisn shares the video, work RAM and I/O between the two CPUs; MAME runs them instruction by instruction with no contention), writes as a single strobe at the sl
- rtl/d8_sys.sv:55 inputs as MAME's ports (active low), DIPs, rotary positions (gondo)
- rtl/d8_sys.sv:208 MAME maps this address (for the unmapped counter)
- rtl/d8_sys.sv:372 MAME screen vblank: lines 248-271 and 0-7
- rtl/d8_sys.sv:534 NMI enable timer: one 6309 cycle (32 clocks), MAME's m_nmi_timer->adjust(minimum_quantum_time()) (dec8:204-206, R8)
- rtl/d8_sys.sv:629 ================================================================ interrupts MAME screen vblank: true from line 248 to the end of line 7 vblank_l = (line >= 248 || line < 8), as a register in d8_video (M4: the comparator on the line counter
- rtl/d8_sys.sv:646 ================================================================ MCU P0/P1 inputs: the external latches (dec8:689-707); P2 not hooked (MAME reads 0xff); P3 = COIN.
- rtl/d8_video.sv:4 "spec N" = docs/dec8_system_spec.md; dec8/v/krn line numbers = reference/mame/v0288/dec8.cpp, dec8_v.cpp, deckarn.cpp.
- rtl/d8_video.sv:7 Contents: - raster: 384 pixels per line at a 6 MHz pixel enable (96 MHz / 16), 272 lines, visible 256 x 240 at lines 8-247, vblank from line 248 (dec8:1977-1981, "DECO video CRTC, matches PCB measurements") - CPU-side RAMs, byte wide on the
- rtl/d8_video.sv:21 MAME draws each frame once at vblank; m1_findings lists every frame where that differs.
- rtl/d8_video.sv:23 - KRN_FLIP = 0 (default, MAME, PLAN 5.4): the Karnov sprites of lastmisn/gondo are not flipped with the screen (dec8.cpp never sets the sprite chip's flip flag, R7); 1 applies the chip's flip path (krn:79-86) whenever the screen is flipped
- rtl/d8_video.sv:63 m_scroll[i_scr_sel] = din (MAME's 4 scroll bytes)
- rtl/d8_video.sv:89 current line (M2: MAME's vblank = lines 248-271, 0-7)
- rtl/d8_video.sv:90 MAME's vblank (lines 248-271, 0-7), registered (M4 timing)
- rtl/d8_video.sv:117 power-on phase as MAME: the screen starts at the first vblank line
- rtl/d8_video.sv:143 MAME m_scroll[0..3]: x MSB, x LSB, y MSB, y LSB
- rtl/d8_video.sv:240 bg logical line: (line + sy) unflipped, (sy + 255 - line) flipped (tilemap.cpp, spec 3); srdarwin has no y scroll and is 256 high
- rtl/d8_video.sv:662 DECO RM-C3 (decrmc3.cpp:214-224): R = bits 0-3, G = 4-7, B = ext 0-3, each bit weighted 0x0e, 0x1f, 0x43, 0x8f
- rtl/vendor/jt8051/jt8051.v:29 DEC8 patch 1 (PROVENANCE.md): SFR write port for the MAME-style port write callbacks (MAME calls port_out_cb on every write to P0-P3)
- rtl/vendor/jt8051/jt8051.v:34 DEC8 patch 2: MAME's set_port_forced_input for P0: a pin read returns (latch | p0_force) & p0_i (mcs51 p0_r, i8051.cpp:282-285)
- README.md:3 Three vertical shooters on Data East's 1986-87 8-bit boards, from one RBF: Last Mission, Gondomania and SRD: Super Real Darwin, ten MAME sets.
- README.md:16 The sound CPU is the 6502A named in the Last Mission and Gondomania board documents (MAME emulates an R65C02) and Data East's DECO 222 on SRD.
- README.md:52 Which set to play: the World parents of Last Mission and Gondomania, and the Japanese SRD, carry MCU programs that MAME marks as bad dumps (Gondomania's is hand
- README.md:56 The bad-dump sets are offered because they are the parent sets in MAME.
- README.md:73 The buttons are named per game in the MAME driver's terms: Last Mission Shoot, Bomb, Select; Gondomania and SRD Button 1, Button 2.
- README.md:79 Turn Right is MAME's increment key (X), which lowers the position the game reads, as MAME's reversed port does.
- README.md:85 DIP switches per set, every switch the MAME driver names, with MAME's defaults (see Accuracy notes for the operator manuals).
- README.md:87 Aspect ratio, Orientation (Vertical, Horizontal), Rotate (CCW, the MAME direction, or CW for monitors mounted for the other rotation), scandoubler effects, HDMI
- README.md:104 MAME 0.288 is the reference.
- README.md:107 Where MAME and the hardware are likely to differ, the core follows the most plausible hardware behaviour and the difference is logged as a research item in docs
- README.md:112 **i8751 interrupt timing** follows Intel's documented response (at least three machine cycles), where MAME enters the handler at the next instruction.
- README.md:116 **Sound CPU timing.** Two cycle-count errors in the vendored jt65c02 (ADC/SBC one cycle long, untaken branches 2.25 cycles) are fixed to the 6502 data sheets, w
- README.md:124 On the board the music chip (YM3526 / YM3812) plays at 1.65 times the effects chip (YM2203 FM); MAME uses 2 times.
- README.md:125 The core uses 1.67, and the YM2203's square-wave channels about 3 dB above MAME's level, also from the recording.
- README.md:133 **Mid-screen writes** (palette, tiles, scroll) are drawn as the beam meets them; MAME draws each frame at once.
- README.md:135 **Gondomania's main CPU** runs at 3 MHz as in MAME.
- README.md:138 **DIP switches**: the Last Mission and Gondomania operator manuals (Data East USA) list the same switches as MAME, except three that MAME found in the program c
- README.md:142 The core offers them as MAME does.
- README.md:142 The Last Mission manual gives the second bonus life setting as 40K/70K and every 90K; the program's tables in the World, US revision 6 and US revision 5 sets al
- README.md:175 The core relies on MAME's DEC8 driver by Bryan McPhail and Stephane Humbert.
Says it matches, follows or was checked against MAME — 3
- rtl/d8_video.sv:3 Reference model: sim/oracle/d8_render.py, pixel-exact against MAME 0.288 on every M0 capture.
- rtl/vendor/jt65c02/jt65c02_regs.v:87 to start up the same as MAME.
- README.md:104 Every part of the core was checked against it in simulation: the video against 12,678 MAME frames (pixel-exact), the full systems from power-on against MAME's I
Shares text with the MAME driver without saying so — 1