← コア一覧
Fuuki
MAMEとの相違点を記載 — 1
- Fuuki.sv:669 The DIP "Flip Screen" (which both MAME drivers get wrong) stays commented out of the .mra files.
MAMEのソースを引用 — 52
- Fuuki.sv:164 Both boards drive one speaker (fuukifg2.cpp / fuukifg3.cpp), so the default, status value 0, is mono.
- Fuuki.sv:335 Every port is IP_ACTIVE_LOW in MAME; hps_io's joysticks are active high, hence the `~`.
- Fuuki.sv:340 P1_P2 ($810000), from fuukifg2.cpp / fuukifg3.cpp INPUT_PORTS_START.
- rtl/cpu/maincpu.sv:95 Interrupt sources: levels held by the video timing, MAME's HOLD_LINE.
- rtl/cpu/maincpu.sv:192 FG-2 mirrors sprite RAM at +0x8000 (MAME: .mirror(0x008000)).
- rtl/cpu/maincpu.sv:203 FG-2 sound latch: MAME maps the one byte at 0x8a0001.
- rtl/cpu/maincpu.sv:213 FG-3's 0x508000-0x517FFF: MAME calls it "more tilemap, or linescroll?
- rtl/fuuki_core.sv:648 Reference: gogomile's clouds (MAME capture: bands at 2, 1, 1/2, 0, 0 px/frame from lines 0, 30, 64, 89, 119) and pbancho's per-line scroll.
- rtl/fuuki_core.sv:893 xRGB-555 as MAME decodes it (palette_device::xRGB_555 is standard_rgb_decoder<5,5,5, 10,5,0>): bits 14:10 red, 9:5 green, 4:0 blue.
- rtl/memory/fuuki_sdram_top.sv:109 ---- address map, FG-3 ---- Sizes are the ROM_REGION declarations in fuukifg3.cpp, not the ROMs loaded: asurabld leaves the first 4 MB of its 32 MB sprite region empty and the sprite tile bank can address it, so the hole is part of the map.
- rtl/memory/fuuki_sdram_top.sv:118 2 MB (MAME "tiles_bg")
- rtl/memory/fuuki_sdram_top.sv:120 4 MB (MAME "ymf", OPL4 samples)
- rtl/video/compositor.sv:5 MAME draws back, middle, front with priority codes 1, 2, 4, ORing each into a priority bitmap where the layer is opaque, so a pixel carries a 3-bit value saying which layers covered it.
- rtl/video/compositor.sv:23 The backdrop is the last palette pen, 0x1fff, not pen 0: MAME fills with (0x800*4)-1 and the game writes black there at boot.
- rtl/video/sprite_line_engine.sv:104 Separate non-zoomed path, as MAME: the zoom path draws 17 pixels at full size (sprite_zoom_lut.sv).
- rtl/video/sprite_line_engine.sv:118 ---- code index ---- MAME increments the tile code in loop order and positions by the loop variable, so with flip the code is counted from the far end: iteration number, not position.
- rtl/video/sprite_line_list.sv:10 This is the order measured on MiSTer (asurabld high-score table, in-game sprites, character-name flashes) and the opposite of what fuukispr.cpp's backwards walk for pdrawgfx suggests.
- rtl/video/sprite_line_list.sv:62 ---- geometry, from the four latched words ---- Signed 10-bit positions, MAME's (v & 0x1ff) - (v & 0x200).
- rtl/video/sprite_line_list.sv:74 MAME's separate non-zoomed path when both fields are zero; the zoom path draws 17 pixels at full size (sprite_zoom_lut.sv).
- rtl/video/sprite_zoom_lut.sv:3 MAME hands zoom_transpen a 16.16 scale of 512 * (zoom + 8), zoom = 128 - 4*field, so a 16-pixel tile draws (zoom + 8) / 8 wide and destination pixel d samples source pixel (d << 16) / scale.
- rtl/video/sprite_zoom_lut.sv:13 That is why the engine keeps MAME's separate non-zoomed path.
- rtl/video/sprite_zoom_lut.sv:26 step = (128 << 16) / (zoom_t + 8), truncated as MAME's integer division.
- rtl/video/spriteram_dbuf.sv:5 A frame is therefore drawn from the sprite RAM as it was at one instant, as MAME's single-pass screen_update does.
- rtl/video/spriteram_dbuf.sv:13 FG-3 (fuukifg3.cpp screen_vblank) appears to hold sprites two generations back.
- rtl/video/tilemap_line_engine.sv:49 MAME does not flip by rotating the output: fuukitmap.cpp substitutes offset constants and fuukispr.cpp recomputes sprite positions, so it has to be done here.
- rtl/video/video_timing.sv:3 Neither driver calls set_raw(); fuukifg2.cpp and fuukifg3.cpp give only set_refresh_hz(60) and a visible area, so htotal, vtotal and sync positions are derived (docs/ROADMAP.md, "Screen timing"):
- rtl/video/video_timing.sv:52 maincpu.sv edge-detects them into a held pending flag cleared only by acknowledge (MAME's HOLD_LINE).
- rtl/video/video_timing.sv:54 Positions from fuukitmap.cpp's timers: level 1 screen().time_until_pos(248) -> line 248, x=0 level 3 screen().time_until_vblank_start() -> line 240, x=0 level 5 screen().time_until_pos(vregs[0x1c], max_x +
- rtl/video/video_timing.sv:83 losing the effect's first five lines and adding five spurious interrupts a frame (checked against MAME traces in debug/).
- rtl/video/video_timing.sv:123 raster_line arrives from vregs.sv already reduced as MAME's time_until_pos() reduces it, so every register value fires once a frame.
- rtl/video/video_timing.sv:126 Level 5 fires at the hblank one line before the programmed line, not at that line's own hblank as MAME's timer does: the engines render two lines ahead of the display and a raster ISR's write is caught at the hblank after the interrupt.
- rtl/video/video_timing.sv:132 lead 2 : bands start at 29, 63, 88, 118 (MAME: 30, 64, 89, 119) lead 1 : bands start at 30, 64, 89, 119 exact
- rtl/video/vregs.sv:1 Fuuki video registers (FI-003K), from fuukitmap.cpp.
- rtl/video/vregs.sv:7 sel 1 0x8D0000 "unknown, flipscreen related" (MAME's words)
- rtl/video/vregs.sv:10 Register map (fuukitmap.cpp's own comment block):
- rtl/video/vregs.sv:95 ---- raster line: the low 8 bits of regs[0x1c], as MAME ---- fuukitmap.cpp hands the value to screen::time_until_pos(), which reduces it modulo the screen height, 256 on both boards (fuukifg2.cpp set_size(320, 256); fuukifg3.cpp set_size(51
- rtl/video/vregs.sv:111 ---- scroll offsets ---- From fuukitmap.cpp::prepare(), operators included:
- rtl/video/vregs.sv:143 16-bit wrapping arithmetic, as MAME's u16.
- rtl/video/vregs.sv:154 ---- layer order ---- The low 4 bits of the priority register index a table of orderings (fuukitmap.cpp: "not independent bits causing layers to switch").
- rtl/video/vregs.sv:156 MAME indexes a six-entry table with `& 0x0f`, so 6-15 read out of bounds there; here they fall through to entry 0 (docs/ROADMAP.md open item 5).
- README.md:109 Put the MAME merged or split ROMs in `games/mame`
- README.md:141 The MAME drivers being ported here, `fuukifg2.cpp` and `fuukifg3.cpp` are based on my and others, work.
- README.md:147 Hardware facts come from the MAME driver.
- README.md:149 The graphics layouts were rendered to PNG from real ROM data before any RTL used them; the CPU is diffed against a real MAME trace; the video pipeline is diffed
- README.md:152 Where the reference and the hardware disagree, or where MAME's own comments disclaim accuracy, that is recorded as an open question rather than silently resolve
- README.md:159 MAME is the accuracy reference, with its own acknowledged uncertainties noted where they matter (both Fuuki drivers flag raster effects and flipped-screen scrol
- README.md:167 **Ground truth captured from MAME automatically.** `scripts/mame_capture.py` drives MAME headlessly over its Lua interface and dumps every region the video hard
- README.md:171 That makes "compare against MAME" a single command rather than a hand-driven debugger session.
- README.md:172 **Offline proofs before building.** ROM interleaves are scored against MAME's disassembly, and graphics layouts rendered to PNG, before any RTL depends on them.
- README.md:191 The **MAMEdev team** — in particular **Luca Elia**, **David Haywood** and my own earlier work — for [MAME](https://github.com/mamedev/mame)'s `fuukifg2.cpp`, `f
- README.md:227 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:228 | `roms` | your own MAME sets (gitignored, never committed) |
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
MAMEドライバと同じ文言を含む(出典の明記なし) — 12