← コア一覧
Arcade-Tecmo16 (shmupfan)
MAMEとの相違点を記載 — 1
- README.md:94 Every frame where that differs from MAME was classified (docs/m1_findings.md, R1).
MAMEのソースを引用 — 53
- Arcade-Tecmo16.sv:25 The first release used MAME's 59.17 Hz frame through a fractional pixel enable (8.25 clocks of 48 MHz per pixel): pixels of 8 and 9 clocks, wobbling on direct video.
- Arcade-Tecmo16.sv:151 keyboard, MAME default keys (ps2_key: [10] toggles per event, [9] pressed, [8] extended, [7:0] set-2 scancode).
- Arcade-Tecmo16.sv:194 inputs in MAME's layout (reference/mame/tecmo16.cpp INPUT_PORTS) P1_P2 bits 0-3 P1 right, left, down, up; 4-5 P1 buttons; 6 Start 1; 7 Start 2; 8-11 P2 directions; 12-13 P2 buttons (all active low); 14 Coin 1, 15 Coin 2 (active high) Final
- Arcade-Tecmo16.sv:240 video: 256 x 224 (MAME visarea 0-255 x 16-239).
- Arcade-Tecmo16.sv:245 ROT90 turns the picture 90 degrees clockwise (MAME).
- Arcade-Tecmo16.sv:328 audio (stereo, MAME's routing: YM2151 left/right, M6295 to both; mixed in t16_snd) / LEDs
- rtl/t16_board.sv:11 1 machine byte: 0 Final Star Force, 1 Riot, 2 Ganbare Ginkun (the MAME machine configs base, riot, ginkun).
- rtl/t16_board.sv:14 254 DIP switches: byte 0 = DSW1, byte 1 = DSW2 (each the switch byte in the low half of its 16-bit port, as MAME reads them) The core is held in reset during any download and until the SDRAM is initialised.
- rtl/t16_board.sv:29 47336/781250, 384, 256 is the M2 gate's MAME parity raster (59.17 Hz, fractional pixel enable)
- rtl/t16_board.sv:49 inputs in MAME's port layout (spec, m2_findings 2.1): P1_P2 idle 0x3FFF (coins active high in bits 14-15), EXTRA 0xFFFF on Riot (button 1 in bits 1 and 5, active low) and 0x0000 on the others
- rtl/t16_sdram.sv:19 Why banks: the program ROM is 512 KB, too large for block RAM beside the video, and the 68000 runs without wait states on the real board (MAME's memory model, m2_findings 3).
- rtl/t16_snapram.sv:8 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/t16_snapram.sv:10 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/t16_snapram.sv:14 MAME's copy is instantaneous at the vblank callback.
- rtl/t16_snd.sv:6 Sound map (tecmo16.cpp:419-428, spec 3): 0x0000-0xEFFF ROM (audiocpu region, 64 KB loaded; the top 4 KB unused) 0xF000-0xFBFF RAM 3 KB 0xFC00 M6295 (read status / write command) 0xFC04-0xFC05 YM2151: write address (A0 = 0) / data
- rtl/t16_snd.sv:20 Interrupts: NMI = latch pending (generic_latch_8 data_pending callback, tecmo16.cpp:703): a 68000 write to 0x150011 sets it, the Z80 read of 0xFC08 clears it; the Z80 takes the NMI on the falling edge of NMI_n, so a second write before the
- rtl/t16_snd.sv:23 INT = YM2151 IRQ (level, tecmo16.cpp:706); the acknowledge cycle reads 0xFF.
- rtl/t16_snd.sv:32 Mix (M3 calibrates it against MAME's WAV): YM2151 left / right at 0.60 to their own side, M6295 at 0.40 to both (t16:707-712).
- rtl/t16_snd.sv:33 jt51's xleft/xright are 16-bit full scale; jt6295's output is in 12-bit units that MAME converts at 1/2048 of full scale, so 0.40 = 6.4 in 16-bit units.
- rtl/t16_snd.sv:208 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 at 96 MHz hit cen_p1 about once in 48 writes, so the status read after a data
- rtl/t16_sys.sv:5 Spec sections are docs/tecmo16_system_spec.md; "t16:n" lines are reference/mame/tecmo16.cpp.
- rtl/t16_sys.sv:12 MAME parity (the M2 gate): 47336 / 781250 with V_TOTAL = 256, which is exactly MAME's 59.17 Hz frame of 256 lines (t16:679-681) drawn as 384 pixel periods per line (m2_findings 2).
- rtl/t16_sys.sv:14 The MiSTer build (m4_findings 10) uses 1/16, 384 x 264: a whole number of clocks per pixel (direct video needs that; the MAME fraction gives pixels of 16 and 17 clocks) - 68000 two-phase enables at 2 x 12 MHz (24 MHz / 2, t16:663) - sound b
- rtl/t16_sys.sv:22 Bus: no wait states (MAME's memory model).
- rtl/t16_sys.sv:32 Memory map (spec 3; t16:368-417), byte addresses, exact decodes, no mirrors (MAME maps none).
- rtl/t16_sys.sv:33 Unmapped reads return 0 (MAME's unmap value) and unmapped writes are ignored; both are counted in o_dbg_unmapped.
- rtl/t16_sys.sv:35 0x000000-0x07ffff program ROM (writes ignored, counted) 0x100000-0x103fff main RAM 16 KB 0x110000-0x110fff text RAM Final Star Force (i_machine 0, fstarfrc_map t16:395-405): 0x120000 fg codes, 0x120800 fg colours, 0x121000 bg codes, 0x12
- rtl/t16_sys.sv:60 IRQ5 (spec 4): the line follows the screen's vblank signal in MAME (t16:684): asserted at the start of line 240 and released IRQ_HOLD clocks later, or earlier by a write to 0x150020-0x150021.
- rtl/t16_sys.sv:62 Level-held, so the 68000 takes it again after each RTE while it stays asserted (Final Star Force never acknowledges it and takes 1 to 5 per frame in MAME).
- rtl/t16_sys.sv:64 Default IRQ_HOLD = MAME's 1000 us vblank (t16:680, "not accurate"; R3).
- rtl/t16_sys.sv:66 Autovectored (VPA), as MAME's default for the 68000.
- rtl/t16_sys.sv:335 byte writes carry the byte on both lanes (68000 bus, and MAME's taps)
- rtl/t16_video.sv:4 "spec N" = docs/tecmo16_system_spec.md; t16/spr/mix line numbers = reference/mame/tecmo16.cpp, tecmo_spr.cpp, tecmo_mix.cpp.
- rtl/t16_video.sv:7 Contents: - raster: H_TOTAL pixels per line at a 6 MHz pixel enable (96 MHz / 16), V_TOTAL lines (default 384 x 264, the 6 MHz guess of t16:20, research item R3, also the MiSTer build, m4_findings 10), visible 256 x 224 at lines 16-239 as i
- rtl/t16_video.sv:23 MAME draws each frame once at vblank start from the state at that moment (spec 10.1); neither choice reproduces a write the game makes during the visible scan the way MAME shows it (that needs one frame of display delay), see m1_findings.
- rtl/t16_video.sv:27 - line renderer: during line L-1 the tile passes and the sprite pass build line L into four double line buffers (bg, fg, text, sprites); scan-out reads them and the mixer (tecmo_mix.cpp:70-323, spec 9) looks up one or two palette entries pe
- rtl/t16_video.sv:133 Power-on phase as in MAME: the screen starts at the first vblank line (the Dooyong oracle measured this, dooyong ym2203_findings)
- rtl/t16_video.sv:174 ================================================================ registers MAME (t16:283-307): bg/fg/text x and y are the written 16-bit values; the text layer's y is (written - 16) from the first write on, and -16 (Final Star Force, t16:20
- rtl/t16_video.sv:272 flipped: 255 - line (tilemap.cpp)
- rtl/t16_video.sv:290 tecmo16.cpp:195-196, 219-220, 241-242
- rtl/t16_video.sv:315 ---- sprite walker (tecmo_spr.cpp:74-178)
- rtl/t16_video.sv:593 A transparent tile pixel (pen 0) is stored as 0, colour bits included: MAME draws each tilemap into a bitmap cleared to 0 and skips pen 0 (t16:199-201, 314-328), and one mixer branch reads the bg value even when the bg pixel is transparent
- rtl/t16_video.sv:619 ================================================================ mixer tecmo_mix.cpp:70-323 with tecmo16's configuration (t16:693-698, spec 9): sprite priority bits XOR 3, regular palettes bg 0x300 fg 0x200 text 0x100 sprites 0x000, blend p
- rtl/t16_video.sv:624 Blended pixels add two palette colours per channel with saturation (mix:47-68; equal in 4 bits to MAME's 8-bit sum after (c << 4) | c expansion).
- rtl/t16_video.sv:626 The four branches where MAME writes machine().rand() (mix:120, 137, 214, 261) take the branch below them (deterministic, research item R6; the same choice as jtgaiden_priority).
- README.md:3 Tecmo's 1992 16-bit board for MiSTer: Final Star Force, Riot and Ganbare Ginkun, seven MAME sets from one RBF.
- README.md:55 Buttons 1 to 3, Start and Coin, as in the MAME driver.
- README.md:59 OSD: DIP switches per set (from the MAME driver), aspect ratio, orientation, scandoubler options, HDMI scale (Normal, V-Integer, Narrower or Wider HV-Integer) a
- README.md:62 Final Star Force (vertical) has a Rotate option, CW (the MAME direction) or CCW, for monitors mounted for the opposite rotation.
- README.md:88 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:93 The core reads them live as the beam meets them; MAME draws each frame at once.
- README.md:108 **Sound.** The M6295 busy flag is timed as the MSM6295 datasheet describes (MAME clears it at once, R14).
- README.md:158 The core relies on MAME's Tecmo 16 driver by Hau and Nicola Salmoria, and David Haywood's Tecmo sprite and mixer devices.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 3
- rtl/t16_video.sv:3 Reference model: sim/oracle/t16_render.py, pixel-exact against MAME 0.288 on every M0 capture.
- README.md:82 MAME 0.288 is the reference: the video was checked pixel for pixel against 10,502 MAME frames of all seven sets plus 210 synthetic scenes, each full system was
- README.md:100 Over 3,000 frames Ganbare Ginkun matches MAME frame for frame and Riot's picture matches MAME in every frame; the Final Star Force attract demo plays out differ
MAMEの近似をそのまま採用 — 6
- Arcade-Tecmo16.sv:21 Raster (m4_findings 10, Lee 2026-10-05): 6 MHz pixel clock (96 / 16), 384 x 264, 59.19 Hz, 15.625 kHz (MAME's guess for the board, R3).
- rtl/t16_board.sv:25 Default: the MiSTer raster, 6 MHz (1/16), 384 x 264, 59.19 Hz, 15.625 kHz (MAME's guess for the board, t16:20, research item R3): a whole number of clocks per pixel for direct video (m4_findings 10, Lee 2026-10-05).
- rtl/t16_sys.sv:10 Hardware default 1/16 (6 MHz, the 384 x 264 raster MAME's TODO guesses, t16:20, research item R3).
- README.md:96 **Raster.** MAME runs 256 lines at 59.17 Hz and guesses a 6 MHz pixel clock with 384 x 264 lines for the board.
- README.md:97 The core uses MAME's guess: 6 MHz, 384 x 264 (59.19 Hz, 15.625 kHz), a whole number of system clocks per pixel so the picture is stable on direct video (direct_
- README.md:105 **CPU timing.** fx68k runs the 68000's E-clock synchronised interrupt acknowledge, which MAME approximates, so where an interrupt lands in the code can differ b