← コア一覧
Arcade-JalecoMS1Z
実基板での測定値を記載 — 1
- MS1Z.sv:370 REFRESH_CYCLES 740 at 96 MHz (~7.7 us); the controller's default 850 was measured corrupting reads on silicon in the NMK16 work.
MAMEとの相違点を記載 — 1
MAMEのソースを引用 — 57
- MS1Z.sv:283 Bytes 0 and 1 are DSW1 and DSW2 (MAME's 16-bit DSW port at 0x080006, low and high byte).
- MS1Z.sv:296 Keyboard: MAME's default bindings, always live, ORed with the pads.
- MS1Z.sv:340 Inputs: MAME's megasys1_generic layout, active low.
- MS1Z.sv:584 The YM2203 is mono (MAME: one speaker, "mono").
- rtl/cheats.sv:1 Cheat engine — applies Pugsy MAME-database pokes to work RAM once a frame.
- rtl/cheats.sv:34 Poke semantics follow MAME's "run" state: the value is written every frame for as long as the cheat is enabled, which is what makes "infinite" cheats hold against the game decrementing the counter.
- rtl/jaleco/ms1_prio.sv:4 MAME does NOT use it that way: it converts the PROM into sixteen "layer orders" at init (priority_create), by repeatedly asking which layer is on top of the remaining set, and then composites in that order -- a two-stage algorithm with a do
- rtl/jaleco/ms1_prio.sv:20 Address, straight from the comment block in megasys1_v.cpp:
- rtl/jaleco/ms1_sprites.sv:18 Order: MAME walks Object RAM DESCENDING (0x3fc down to 0, step 4) and the framebuffer write is FIRST-WRITER-WINS.
- rtl/jaleco/ms1_sprites.sv:19 That makes the LAST entry frontmost, which contradicts megasys1_v.cpp's own comment ("From first in Object RAM (frontmost) to last") and the note carried into docs/PLAN.md 4.D item 8.
- rtl/jaleco/ms1_sprites.sv:29 The framebuffer is one 256x256 plane of 9 bits {priority, colour, pen}, pen 15 meaning empty -- the same encoding MAME's 0x7fff fill uses.
- rtl/jaleco/ms1_sprites.sv:54 megasys1_typez_state::draw_sprites walks the 128 Sprite Data entries themselves, 127 down to 0, through prio_transpen() -- and prio_transpen ORs bit 31 into the priority mask ("high bit of the mask is implicitly on", drawgfx.cpp), while eve
- rtl/jaleco/ms1_sprites.sv:64 Attribute bit 3 has no effect: both of MAME's masks, 0x0a and 0x0c, hide a sprite under layer 1.
- rtl/jaleco/ms1_sprites.sv:67 Measured against MAME's demo frames: docs/known-issues.md MS1Z-7.
- rtl/jaleco/ms1_sprites.sv:326 source pixel inside the tile, with flip and MAME's mosaic filter
- rtl/jaleco/ms1_sprites.sv:343 MAME's cliprect exactly: min_x 0, max_x 255, min_y 16, max_y 239 (megasys1.cpp set_visarea(0*8, 32*8-1, 2*8, 30*8-1)).
- rtl/jaleco/ms1_sprites.sv:408 MAME then partially clears by pen, which is still not modelled -- MS1-17.
- rtl/jaleco/ms1_tilemap.sv:37 MAME takes the tile code modulo the region's element count, so a code past the end of a small ROM WRAPS rather than reading the next SDRAM region.
- rtl/jaleco/ms1_tilemap.sv:73 TILES_PER_PAGE_X/Y are both 0x20, and the multipliers come straight from the eight tilemap_create() calls in ms1_tmap.cpp.
- rtl/jaleco/ms1_tilemap.sv:75 Note 8x8 N=1 and N=2 are the SAME shape upstream; that is not a typo here, it is a duplicate in MAME.
- rtl/jaleco/ms1_tilemap.sv:108 scan_8x8 / scan_16x16 from ms1_tmap.cpp.
- rtl/jaleco/ms1_video.sv:18 SCREEN FLIP is a 180-degree rotation of the finished visible frame (docs/known-issues.md MS1-13), so it is applied here by mirroring the SAMPLE POINT rather than by flipping each layer and each sprite the way MAME does.
- rtl/jaleco/ms1_video.sv:21 That is not an assumption: MAME was captured twice from the same point, flipped and not, and the two frames are rot180 of each other with zero differing pixels.
- rtl/jaleco/ms1_video.sv:52 Per-layer tile ROM byte masks and the sprite tile mask: MAME wraps an out-of-range code modulo the region, so a small ROM must not read into the next SDRAM region.
- rtl/jaleco/ms1_video.sv:124 A simulation probe: it lets a frame be recoloured through another palette, which is what a comparison against MAME's pictures needs (they pair one frame's picture with the next frame's palette -- ms1z docs/known-issues.md MS1Z-5).
- rtl/jaleco/ms1_video.sv:261 Measured against MAME on bigstrik's split scenes: the low group is the one whose attribute bit 3 is SET, not clear.
- rtl/jaleco/ms1_video.sv:271 MS1-Z: screen_update hard-codes pri = 0x0314f -- layer 0 at the bottom (drawn opaque, so its pen 15 is a colour, not a hole), then the sprites, then layer 1 -- and MAME's own conversion of the board's two PROMs fails for every priority code
- rtl/jaleco/ms1_video.sv:308 MS1-Z groups them differently (megasys1_v.cpp:79-92 and system_Z's tilemap/gfx bases): layer 0 at 0x000, SPRITES at 0x100, layer 1 at 0x200, and 0x300 unused.
- rtl/ms1z/ms1z_core.sv:6 MAME's system_Z instead declares a 256-line screen at set_refresh_hz(56.18) ("same as nmk16.cpp based on YT videos"); the frame rates agree to 0.04 %, the interrupt spacing does not (docs/PLAN.md fact 5).
- rtl/ms1z/ms1z_core.sv:9 HTOTAL and VTOTAL are parameters so a SIMULATION can run MAME's timing: 417 x 256 is exactly MAME's 56.18 Hz 256-line frame at a 6 MHz pixel clock -- and 417 x 256 = 384 x 278 = 106,752 pixel clocks, so the frame is the same length and only
- rtl/ms1z/ms1z_core.sv:273 no active_layers register on type Z: MAME forces 0x000b (layers 0 and 1 and sprites); no sprite_flag, no sprite bank.
- rtl/ms1z/ms1z_main.sv:5 Everything that board needed for protection, System D and the object-RAM double buffer is gone; what is left is MAME's megasys1Z_map, which is megasys_base_map plus one latch write (megasys1.cpp:251-281):
- rtl/ms1z/ms1z_main.sv:23 Kept because MAME maps it.
- rtl/ms1z/ms1z_main.sv:28 WORK RAM BYTE WRITES MIRROR INTO BOTH HALVES (MAME ram_w, "DON'T use COMBINE_DATA").
- rtl/ms1z/ms1z_main.sv:29 Every OTHER RAM on this bus is COMBINE_DATA in MAME, so a byte write changes only its own lane; those are written with byte enables here.
- rtl/ms1z/ms1z_main.sv:33 Interrupts (megasys_base_scanline, megasys1.cpp:207-231), all HOLD_LINE: raster line 16 -> level 3, line 96 -> level 1, line 240 -> level 2.
- rtl/ms1z/ms1z_main.sv:35 lomakai points levels 1 and 3 at the same handler (0x42C), which reloads layer 1's scroll from RAM: the line-96 interrupt is a mid-screen scroll split, and MAME renders it (ms1_tmap.cpp scroll_w calls update_partial).
- rtl/ms1z/ms1z_main.sv:75 MAME's type-Z draw_sprites reads live work RAM, and lomakai rewrites the list mid-frame (MS1Z-12), so there is no snapshot and no buffer.
- rtl/ms1z/ms1z_main.sv:340 scroll_r: the two scroll triples read back; nothing else in the window has a read handler in MAME, so it reads 0.
- rtl/ms1z/ms1z_main.sv:351 MAME returns 1s for bits a port DECLARES as active-low unknowns and 0s for bits it does not declare at all: SYSTEM and P2 declare 0xff00, P1 declares only its low byte.
- rtl/ms1z/ms1z_main.sv:480 the autovector acknowledge is invisible to MAME's memory tap
- rtl/ms1z/ms1z_sound.sv:4 MAME (megasys1.cpp:798-810, 2259, 2285): Z80 mem 0000-3FFF ROM (16 KB of lom_01.rom; the file is 64 KB and every byte above 0x3E30 is 0xFF -- docs/known-issues.md MS1Z-1) C000-C7FF RAM, 2 KB, no mirror E000 R sound latch (low byte) F
- rtl/ms1z/ms1z_sound.sv:19 MS1BCD's equivalent resets the YM2151 and both OKIs too (MS1-30); here the YM2203 has no reset from it in MAME (screen_flag_w's ym2151 cast fails for it).
- rtl/ms1z/ms1z_sound.sv:136 No reset line from the Z80's reset: MAME's latch survives a sound-CPU reset.
- rtl/ms1z/ms1z_sound.sv:196 MAME routes the whole YM2203 at 0.50, FM and SSG alike, and ymfm's SSG channel peaks at 16382 where jt49's psg_snd channel peaks at 255, so at equal routes the SSG weighs 16382/255 ~ 64 against jt03's FM: fm + {psg,6'd0}, halved below.
- rtl/ms1z/ms1z_sound.sv:199 Measured (MS1Z-20) by replaying MAME's YM2203 write log for 60 s of lomakai's attract into jt03 against MAME patched with MS1_SND_ISO=fm|ssg: FM -0.03 dB, SSG +0.44 dB.
- rtl/ms1z/ms1z_sound.sv:358 ------------------------------------------------ Z80 read mux Unmapped reads return 0x00, MAME's default unmap value for both spaces.
- rtl/ms1z/ms1z_sprline.sv:3 Why not MS1BCD's frame plane (docs/known-issues.md MS1Z-12): lomakai rewrites its sprite list during the first ~100 raster lines of every frame, and MAME's type Z draws sprites from live work RAM at render time, so a frame shows the list wr
- rtl/ms1z/ms1z_sprline.sv:100 Byte k of source row gy: 128 bytes per tile, two 8-wide column halves (k[2] selects the right half, +64), 4 bytes per row, 2 pixels per byte -- the layout ms1_sprites.sv and MAME's gfx_8x8x4_col_2x2 use.
- rtl/rom_cache_n.sv:7 Why (docs/hw-bringup.md, "Slowdown"): the real board and MAME run the 68000 with zero wait states from EPROM.
- rtl/rom_cache_n.sv:8 Through the 1-line rom_cache1 56% of ROM bus cycles missed (the instruction stream and the game's ROM data-table reads thrash a single pair) and each miss is a ~10 clk_sys SDRAM round trip, 1-2 wait states — 13-20% of every frame spent stal
- rtl/savestate/savestate_ui.sv:4 Slot 2 is on F5 and NOT F2 because this core's own keyboard map already uses F2 for the Service Mode toggle (MAME's binding for it), and both were acting on the same press -- found on the board, 2026-09-20.
- README.md:21 **In development; runs on the DE10-Nano.** Measured against MAME 0.289:
- README.md:23 **video block:** MAME's attract demo reproduced **pixel for pixel on 220 of 220 frames** from MAME's own state (layers, sprites, palette, the raster split);
- README.md:30 **audio:** FM within 0.04 dB of MAME, the mix within 0.4 dB, band correlation 0.997 (MS1Z-13);
- README.md:57 Simulation needs Verilator 5: `sim/rtl/ms1z_frames` (the whole board), `sim/rtl/video_state_z` (the video block against one MAME frame).
- README.md:65 **MAME** `jaleco/megasys1.cpp`, `megasys1_v.cpp`, `ms1_tmap.cpp` -- driver by **Luca Elia** and **David Haywood** -- the behavioural reference for every part of
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 5
- MS1Z.sv:622 MEASURED against MAME: the board's columns 5..255 matched MAME's 0..250 with ZERO differing pixels, where the unshifted comparison differed in 23192.
- rtl/jaleco/ms1_prio.sv:13 Measured: a per-pixel lookup is pixel-exact against MAME on all four oracle captures across all three game modes -- avspirit (B), 64street (C), bigstrik (C, sprite splitting) and peekaboo (D) -- while being one M10K and one read per pixel i
- rtl/jaleco/ms1_tilemap.sv:3 The behaviour is taken from MAME's jaleco/ms1_tmap.cpp and verified pixel-exact against MAME by tools/ms1_video_model.py, which is the executable spec this mirrors.
- rtl/ms1z/ms1z_sound.sv:201 Until upstream jt12 efa4068 the SSG used jt49's compressed COMP=1 curve and was weighted x1.5 ({psg,5'd0} + {psg,4'd0}) to match MAME's level on this music (MS1Z-13); the YM2203 table (COMP 5) now has the chip's curve, so the gain follows f
- README.md:15 The board, verified against MAME: every claim in `docs/known-issues.md` is closed by a measurement, never by reasoning.
MAMEから移植・書き写した、または取り入れたと記載 — 1
- rtl/jaleco/ms1_tilemap.sv:3 The behaviour is taken from MAME's jaleco/ms1_tmap.cpp and verified pixel-exact against MAME by tools/ms1_video_model.py, which is the executable spec this mirrors.
MAMEドライバと同じ文言を含む(出典の明記なし) — 7