← コア一覧
KonamiGX (yaguboo)
MAMEのドライバにない実基板の資料を引用 — 10
- projects/konami/konami_gx/rtl/gx_main.sv:469 Two seeds of two netlists failed on the decode between the slice and a 96 MHz consumer:
- projects/konami/konami_gx/rtl/gx_top.sv:1105 So 16 = VBP+1 + 1 and X 24 - (48 - HBP) = HBP+1 - 25 read as "the K056832 counts from the END of sync, plus a fixed pipeline"; the fixed parts (+1, -25) are inside the K056832, whose netlist is not on disk (jt05415x/doc is the 054156/054157
- projects/konami/konami_gx/rtl/gx_top.sv:1122 Read 2026-10-06 (MEASUREMENTS 181): the 054157 netlist's per-layer H-offset block (page 7, hofsa/b/c/d) adds each layer's latched fine scroll to hcnt[2:0]; the four latches are clocked at four phases of a 4-dot cycle (B 0, A 1, C 2, D 3), w
- projects/konami/konami_gx/rtl/gx_top.sv:2072 Consistent, not proven: no K055673 netlist on disk and every set writes the same V setting.
- projects/konami/konami_gx/rtl/memory/gx_memarb.sv:78 Why: `dq_in` (the I/O cell) -> gx_sdram's `dout` mux -> this arbiter -> every client's register was one shared node between fixed pads and sinks spread over the chip, and each netlist re-solved it: -0.816 ns on 1fa6167, +0.370 on 9bb55d2 wi
- projects/konami/konami_gx/rtl/memory/gx_sdram.sv:193 So a burst's SECOND word had a pad-to-register delay that changed with every netlist, on the input path the .sdc already says does not close at 96 MHz (D3).
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:687 Two different diagnostic netlists failed at -0.208 and -0.201 ns on the same path family:
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:694 Snapshotting the group coordinate split that path and produced a passing +0.783 ns build, but the next diagnostic netlist exposed the remaining predecode path at -0.490 ns:
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:743 (For a 3-page-tall layer MAME's `(unsigned)dy % 768` differs from this for a negative scroll; gokuparo uses 2 pages, and span 3 is the same approximation the tile address already makes -- mod3 above.) jt05415x's silicon netlist has the lin
- projects/konami/konami_gx/rtl/video/gx_xoffs.sv:36 The two formulas are exactly those two distances: spr_hoffset = 11 - (8*(HSW+1) + HBP + 1) -> the sprite chip counts from the H load (NHLD) tile_dx_adj = 49 - (HBP + 1) -> the tile chip counts from the end of HSYNC so the regi
実基板で確認したと記載 — 1
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:21 ---- checked against the silicon, 2026-10-06 (MEASUREMENTS 181) ---------- sim/tb_gx_ccu_053252.v runs Furrtek's silicon reconstruction of the 053252 (jtcores cores/rungun/doc/053252.v, read from references/, not copied) beside this module,
実基板での測定値を記載 — 4
- projects/konami/konami_gx/rtl/gx_top.sv:1101 2026-10-06 (MEASUREMENTS 181), what the 053252 silicon reconstruction says and does not say: in the CCU the first active dot is 8*(HSW+1) + HBP + 1 dots after the H load (sync start) and the first active line is (VSW+1) + (VBP+1) = 23 lines
- projects/konami/konami_gx/rtl/gx_top.sv:2069 2026-10-06 (MEASUREMENTS 181): MAME's dy = -23 is exactly the silicon 053252's distance from the V load (vsync start) to the first active line, (VSW+1) + (VBP+1) = 8 + 15, so VOFFSET 39 = 16 + 23 reads as "the sprite chip counts lines from
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:21 ---- checked against the silicon, 2026-10-06 (MEASUREMENTS 181) ---------- sim/tb_gx_ccu_053252.v runs Furrtek's silicon reconstruction of the 053252 (jtcores cores/rungun/doc/053252.v, read from references/, not copied) beside this module,
- projects/konami/konami_gx/rtl/video/gx_xoffs.sv:31 WHAT THE SILICON SAYS (2026-10-06, MEASUREMENTS 181).
MAMEとの相違点を記載 — 2
MAMEのソースを引用 — 297
- projects/konami/konami_gx/rtl/gx_int1arm.sv:4 INFERRED from the programs: one mechanism where MAME has two.
- projects/konami/konami_gx/rtl/gx_int1arm.sv:7 MAME fires IRQ1 at vblank on (enable & 0x81) == 0x81 OR m_gx_syncen bit 0 (konamigx.cpp:514-516, :651-653).
- projects/konami/konami_gx/rtl/gx_main.sv:4 Memory map transcribed in docs/SOURCE_AUDIT.md section 4 from konamigx.cpp:1040 (gx_base_memmap) + :1092 (gx_type2_map).
- projects/konami/konami_gx/rtl/gx_main.sv:34 Several devices are 8 bits wide and MAME maps them `umask32(0xff00ff00)`: the CCU, the K056800 and the K055555.
- projects/konami/konami_gx/rtl/gx_main.sv:123 --- the fantjour DMA device (rtl/gx_fjdma.sv), DECISIONS D19 ------------ MAME installs a write handler at 0xdb0000 for special 9 only (konamigx.cpp:4054-4055, konamigx_m.cpp:489-538), so the whole path is gated by the set.
- projects/konami/konami_gx/rtl/gx_main.sv:138 winspike's type 4 Xilinx protection (gx_xprot, special 7): the opcode latched from cc0004, run on the falling edge of cc0000 bit 9 (bit 25 of the long, konamigx.cpp:893).
- projects/konami/konami_gx/rtl/gx_main.sv:193 MAME raises IRQ4 with HOLD_LINE (konamigx.cpp:447): asserted until the CPU acknowledges it.
- projects/konami/konami_gx/rtl/gx_main.sv:197 IRQ3 (object DMA end), 2026-09-30: MAME HOLD_LINE too (konamigx.cpp dmaend callback), so the same latch shape -- set by gx_top when the DMA ends with WRPORT1_1 bits 7 and 2 set, cleared by the level-3 IACK.
- projects/konami/konami_gx/rtl/gx_main.sv:541 Decoded so a write there is absorbed rather than falling through to open bus, which is what MAME does.
- projects/konami/konami_gx/rtl/gx_main.sv:556 The data ROM socket answers 0x400000-0x5fffff on every set (MAME maps 0x400000-0x7fffff .rom() in the one Type 2 map, konamigx.cpp:1044).
- projects/konami/konami_gx/rtl/gx_main.sv:560 Until 2026-10-06 the window was gated to dragoonj by machine number; MEASUREMENTS 180: in 9,000 frames of MAME (attract, coin, start, play) no other set reads 0x400000-0x7fffff even once, so the gate changed nothing.
- projects/konami/konami_gx/rtl/gx_main.sv:649 MAME returns the bus value; returning 0xffff here makes an unintended fetch decode as a trap-generating opcode rather than as a plausible NOP.
- projects/konami/konami_gx/rtl/gx_main.sv:661 MAME calls esc_w once for the long (konamigx.cpp:380), and every write the game makes there is a long from one PC (dist/esctap_b/esc_calls.txt), so a lone word to cc0002 is not modelled.
- projects/konami/konami_gx/rtl/gx_main.sv:683 MAME m_last_prot_op starts at -1
- projects/konami/konami_gx/rtl/gx_main.sv:697 A run is asked for by a write touching the TOP BYTE of long 0 (konamigx_m.cpp:501, `!offset && ACCESSING_BITS_24_31`), which on this 16-bit bus is the high byte of word 0.
- projects/konami/konami_gx/rtl/gx_main.sv:699 `mode` and `sz2` are both in that word, so the trigger carries everything the run reads out of long 0; `sz1`, in the long's low word, is unused in MAME as well (:511).
- projects/konami/konami_gx/rtl/gx_main.sv:703 With it low nothing here happens and 0xdb0000 stays unmapped, which is what MAME's map is for every set but these two.
- projects/konami/konami_gx/rtl/gx_fjdma.sv:8 The actual PCB part that performs this is NOT verified; MAME's own name for it is a "dma" and nothing upstream says which chip it is.
- projects/konami/konami_gx/rtl/gx_fjdma.sv:13 ---- why it is not optional (docs/MEASUREMENTS.md 57, 58) -------------------- MEASURED in MAME, 14,000 frames: fantjour and fantjoura write this register file 200,196 times and trigger 16,683 runs, of which 15,397 change memory -- 13,246 f
- projects/konami/konami_gx/rtl/gx_fjdma.sv:17 With the writes dropped, which is what this core did until now, MAME's own picture goes black at the same frames the board did (tools/gx_fjdrop.lua).
- projects/konami/konami_gx/rtl/gx_fjdma.sv:21 ---- what it does, in MAME's order ------------------------------------------ Eight longs at 0xdb0000-0xdb001f, written with byte enables (COMBINE_DATA).
- projects/konami/konami_gx/rtl/gx_fjdma.sv:26 mode = long0[31:24] sz2 = long0[23:16] sz1 (long0[15:8]) is unused, as in MAME
- projects/konami/konami_gx/rtl/gx_fjdma.sv:37 sa and da are NOT reset between rows -- MAME's loops carry them -- so a run is one flat sequence of (sz2 + 1) * ceil(db / 4) longs.
- projects/konami/konami_gx/rtl/gx_fjdma.sv:51 ---- a bound MAME does not have --------------------------------------------- db is a 32-bit byte count and sz2 a byte, so a corrupt register file could ask for 2^30 longs with the CPU frozen for all of them -- a hang with a still picture,
- projects/konami/konami_gx/rtl/gx_fjdma.sv:88 konamigx_m.cpp:518
- projects/konami/konami_gx/rtl/gx_fjdma.sv:171 MAME's two loops.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:14 Transcribed from docs/SOURCE_AUDIT.md section 7, which is itself konamigx.cpp:472, :498, :520 and the PORT_START blocks at :1219 and :1264.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:37 Everything except the EEPROM data line is ACTIVE LOW (konamigx.cpp:1229 onwards).
- projects/konami/konami_gx/rtl/gx_ctrl.sv:67 MAME's comment calls it "reset graphics chips" and MAME's CODE never reads it -- konamigx.cpp:537 resets the K056832 from bit 22, the SOUND reset, instead.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:125 konamigx.cpp:515-516: a write with the master bit ORs the source bits into m_gx_syncen.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:154 "The enable test is (m_gx_wrport1_1 & 0x8N) == 0x8N -- master bit AND the per-source bit." konamigx.cpp:498, SOURCE_AUDIT section 6.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:160 IRQ4 is the exception, and it is not a slip from the pattern above: esc_w tests `m_gx_wrport1_1 & 0x10` with NO master bit (konamigx.cpp:444) and clears rdport1_3 bit 3 inside the same test (:446).
- projects/konami/konami_gx/rtl/gx_ctrl.sv:177 The EEPROM data line is bit 0 of the long, NOT the top of the byte: konamigx.cpp:1272 gives it mask 0x00000001 and hands bits 7-1 to gx_rdport1_3_r, which returns `m_gx_rdport1_3 >> 1` (:469).
- projects/konami/konami_gx/rtl/gx_ctrl.sv:192 d5a002 bits 15-8: coin 4-1 and service 4-1, the layout at konamigx.cpp:1274.
- projects/konami/konami_gx/rtl/gx_ctrl.sv:196 coin[3:2] are decoded by MAME's port map but Gokujou Parodius is a two-slot game, so this module reads only coin[1:0].
- projects/konami/konami_gx/rtl/gx_decode.sv:11 Every range below is a line-for-line transcription of gx_type2_map (konamigx.cpp:1092) plus gx_base_memmap (:1040), listed in the same order as docs/SOURCE_AUDIT.md section 4 so the two can be diffed by eye.
- projects/konami/konami_gx/rtl/gx_decode.sv:50 Not in gx_type2_map: MAME installs a handler here for fantjour and fantjoura only (special 9, konamigx.cpp:4054-4055, :4162 -> konamigx_m.cpp:489-538).
- projects/konami/konami_gx/rtl/gx_decode.sv:52 gx_main gates it by the set, so for every other set this select does nothing and the range stays unmapped, as it is in MAME's map.
- projects/konami/konami_gx/rtl/gx_decode.sv:94 0xdb0000 >> 5 = 0x6D800; the window is 0x20 bytes (konamigx_m.cpp:493).
- projects/konami/konami_gx/rtl/gx_top.sv:11 68EC020 main 24 MHz / 4 MASTER_CLOCK, gx.cpp:117
- projects/konami/konami_gx/rtl/gx_top.sv:12 68000 sound 8 MHz / 12 SUB_CLOCK/2, gx.cpp:1723
- projects/konami/konami_gx/rtl/gx_top.sv:16 12 MHz / 8 } (gx.cpp:520-527)
- projects/konami/konami_gx/rtl/gx_top.sv:37 EEPROM 93C46 yes -- jt9346 object DMA: MAME's vblank snapshot yes -- EMULATION_DERIVED DMA busy bit (the game waits on it) yes -- EMULATION_DERIVED, U10
- projects/konami/konami_gx/rtl/gx_top.sv:75 docs/DECISIONS.md D5 ------ 0 = tilemap palette index is colour_code * 32 (this board's choice) 1 = colour_code * 16 (MAME's).
- projects/konami/konami_gx/rtl/gx_top.sv:131 MAME gives each set one `special` case in init_konamigx (:4120-4166) and the cases are mutually exclusive by construction -- gx_esc and gx_fjdma already share one bus port on exactly that ground.
- projects/konami/konami_gx/rtl/gx_top.sv:151 crzcross / puzldama / tokkae are `special 0` in MAME, but their PCBs carry an ESC and the games LOAD a program into it and poll the packet (crzcross 205590 / 2055D2) -- MAME's esc_w completes any packet with no callback, so the sets run the
- projects/konami/konami_gx/rtl/gx_top.sv:237 The three constants below are the whole of what SOURCE_AUDIT section 19 found the A2 shelf needs: MAME's own gate says the sets differ from the two we run in the ESC call, the sprite X offset and their ROMs -- no new memory map, handler, re
- projects/konami/konami_gx/rtl/gx_top.sv:251 special 0, gokuparo machine + an ESC MAME does not run
- projects/konami/konami_gx/rtl/gx_top.sv:252 special 7, konamigx.cpp:2023
- projects/konami/konami_gx/rtl/gx_top.sv:263 winspike (konamigx.cpp:2023): K056832_BPP_8 tiles, K055673_LAYOUT_LE2 sprites, and special 7's type 4 Xilinx protection at cc0000 in place of the ESC
- projects/konami/konami_gx/rtl/gx_top.sv:266 the konamigx_6bpp machine (konamigx.cpp:1860): 6 bpp tiles in salmndr2's ROM layout, GX 5bpp sprites with an 8 MB 4bpp area (k055673 region 0xa00000)
- projects/konami/konami_gx/rtl/gx_top.sv:273 the sprite ROM format (MAME set_config: K055673_LAYOUT_GX / GX6 / RNG) -- gx_sprfetch, gx_objdraw, gx_sprite and gx_prio read it.
- projects/konami/konami_gx/rtl/gx_top.sv:279 the tile ROM format (MAME k056832 set_config): 0 5 bpp with a byte-a-row plane-4 ROM, 1 salmndr2's 6 bpp with a word-a-row plane-4/5 ROM (charlayout6), 2 dragoonj's 5 bpp with no plane-4 ROM at all (ROMREGION_ERASE00: plane 4 is 0)
- projects/konami/konami_gx/rtl/gx_top.sv:307 The other three are implemented from gx.cpp:527's table and are UNVERIFIED -- UPSTREAM_TODO U2.
- projects/konami/konami_gx/rtl/gx_top.sv:323 At the PCB's 24 MHz this core reaches the sound self-test's deadline in 203 frames where MAME's 68EC020 takes 245, and 227 frames of sound work then do not fit (defect B, MEASUREMENTS 68/71).
- projects/konami/konami_gx/rtl/gx_top.sv:343 6/9 = 2/3 -- MAME's number is the chip's own ratio for this loop.
- projects/konami/konami_gx/rtl/gx_top.sv:348 MAME's per-set list is where the timeout was noticed, not where the PCB is slow.
- projects/konami/konami_gx/rtl/gx_top.sv:444 ---- INT1 ARM (DECISIONS D26, MEASUREMENTS 164) -------------------------------- INFERRED from the programs -- one mechanism where MAME has two.
- projects/konami/konami_gx/rtl/gx_top.sv:446 MAME fires IRQ1 at vblank on (enable & 0x81) == 0x81 OR m_gx_syncen bit 0 (konamigx.cpp:514-516, :651-653).
- projects/konami/konami_gx/rtl/gx_top.sv:479 With `esc_mode` 0 a run would still complete -- status byte, IRQ4 if enabled -- and build no sprites (gx_esc S_SUB), which is what MAME's esc_w does with no callback.
- projects/konami/konami_gx/rtl/gx_top.sv:510 rdport1_3 bit 3: reset 1 (0xfc, konamigx.cpp:3985)
- projects/konami/konami_gx/rtl/gx_top.sv:583 MAME installs the ESC callback for sexyparo (special 4) and this device for fantjour and fantjoura (special 9); sexyparo never writes 0xdb0000, Fantastic Journey never writes 0xcc0000, and gokuparo writes neither (MEASURED, MEASUREMENTS 49
- projects/konami/konami_gx/rtl/gx_top.sv:761 MEASURED, tools/gx_readtap.lua against MAME, 700 frames:
- projects/konami/konami_gx/rtl/gx_top.sv:811 It used to be gated to those two machines; MEASUREMENTS 180 ran all nineteen sets in MAME for 9,000 frames (attract, coin, start, play) and only sexyparo / sexyparoa / daiskiss ever write it 1, so the gate changed nothing.
- projects/konami/konami_gx/rtl/gx_top.sv:885 93C46, active high and taken straight from the part -- konamigx.cpp:1272 reads it with IP_ACTIVE_HIGH through do_read().
- projects/konami/konami_gx/rtl/gx_top.sv:888 gx_rdport1_3 reset value is 0xfc (gx.cpp:3983); bit 0 of the byte is the EEPROM line, so the seven status bits above it are all 1 = idle -- except bit 1, DMA busy, which gx_sprite drives (gx.cpp:599, :618).
- projects/konami/konami_gx/rtl/gx_top.sv:901 IRQ3, object DMA end -- MAME konamigx.cpp dmaend_callback: if ((wrport1_1 & 0x84) == 0x84 || (syncen & 4)) { syncen &= ~4; rdport1_3 &= ~0x80; IRQ3 HOLD_LINE } Dragoon Might's main loop waits for it (2026-09-30: PC stuck at 0x203042, its le
- projects/konami/konami_gx/rtl/gx_top.sv:907 OBJINT-REQ (the status byte's bit 7) falls with the first IRQ3 and nothing in MAME raises it again.
- projects/konami/konami_gx/rtl/gx_top.sv:910 WHEN: MAME calls dmaend_callback from the DMA-delay timer that EVERY vblank starts (dmastart_callback runs whatever DMAEN says), the same moment it drops the busy flag.
- projects/konami/konami_gx/rtl/gx_top.sv:927 konamigx.cpp:1740 and :2047 configure EEPROM_93C46_16BIT.
- projects/konami/konami_gx/rtl/gx_top.sv:934 bit 2 clk bit 1 cs bit 0 di (konamigx.cpp:485-487)
- projects/konami/konami_gx/rtl/gx_top.sv:938 MAME's own comment on the region is "default eeprom to prevent game booting with error" (konamigx.cpp:2163), so gokuparo.nv is delivered over nvs_* before the CPU is let go.
- projects/konami/konami_gx/rtl/gx_top.sv:958 Dragoon Might's memory check reads all 64 words in one frame with the start bit on the FIRST clock after CS rises, and the previous read's data phase often left DI = 1 -- so every such read was missed and the check printed 22D/M BAD (the EE
- projects/konami/konami_gx/rtl/gx_top.sv:965 sim/tb_gx_eestart.sv replays MAME's trace.
- projects/konami/konami_gx/rtl/gx_top.sv:1051 MEASURED, afa0806 on the board against MAME memory rebuilt into pixels: once the tilemap's sub-tile scroll term is taken out (gx_tilemap, "sub-tile X scroll"), all four layers are a uniform +3 px right.
- projects/konami/konami_gx/rtl/gx_top.sv:1096 EMULATION_DERIVED MAME's GX screen is a 288x224 visible crop at (24,16) of the CCU's 384x264 raster.
- projects/konami/konami_gx/rtl/gx_top.sv:1259 From MAME's own VRAM, in this FSM's order, the eight most recently INSERTED plane-4 bytes of a layer already hold the next request 91.8 % of the time on the battleship, 81.9 % on the boss and 87-90 % in the city (tools/gx_tile1census.py, by
- projects/konami/konami_gx/rtl/gx_top.sv:1536 PCM streaming has a real deadline and Power Spikes paid to learn what a missed one sounds like (its DEBUG_LOG O13: fifteen wrong-nibble output steps in one frame against MAME's zero in 2.16 M samples).
- projects/konami/konami_gx/rtl/gx_top.sv:1910 ---- AND THE NEXT WORD KEPT, 2026-09-15 ------------------------------------- MEASURED (docs/MEASUREMENTS.md 38): in the demo stages the CPU is frozen on ROM reads for 79 % of a frame, two thirds of it waiting for tile groups, and 89 % of t
- projects/konami/konami_gx/rtl/gx_top.sv:1925 ---- AND A CACHE IN FRONT OF IT ALL, 2026-09-15 ------------------------------ MEASURED on the board (docs/MEASUREMENTS.md 41): the look-ahead took the city demo from 61 % to 82 % of MAME's pace and left the battleship at 48.5 %, whose work
- projects/konami/konami_gx/rtl/gx_top.sv:2005 MAME's fill_backcolor starts pal_ptr at base + cliprect.min_y (k054338.cpp:134), and cliprect is in bitmap coordinates whose visible area begins at y = 16.
- projects/konami/konami_gx/rtl/gx_top.sv:2007 MEASURED 2026-09-14 on MAME frame 3000: its snapshot's backdrop column matches base + vpos + 16 on 98 % of 164 sampled rows and base + vpos on none.
- projects/konami/konami_gx/rtl/gx_top.sv:2039 gx_objscan puts a sprite at w3 - (xoffset - HOFFSET) in line-buffer dots and at vline + w2 + yoffset + VOFFSET in its own rows, and MAME's gxcore puts it at w3 + dx - offx in bitmap X and w2 - dy - offy in bitmap Y, whose visible area start
- projects/konami/konami_gx/rtl/gx_top.sv:2050 MAME's -42 (sexyparo) and -26 (A2 shelf) compensated for its ESC HLE, which did not add the offset the chips' programs add to x (+4, and +0x10 first for tbyahhoo / daiskiss).
- projects/konami/konami_gx/rtl/gx_top.sv:2055 The mame-src build with the programs uses -46 for all of them.
- projects/konami/konami_gx/rtl/gx_top.sv:2069 2026-10-06 (MEASUREMENTS 181): MAME's dy = -23 is exactly the silicon 053252's distance from the V load (vsync start) to the first active line, (VSW+1) + (VBP+1) = 8 + 15, so VOFFSET 39 = 16 + 23 reads as "the sprite chip counts lines from
- projects/konami/konami_gx/rtl/gx_top.sv:2076 MEASURED, tb_gx_busmix on the demo stages' consecutive MAME frames (docs/MEASUREMENTS.md 35): two buffers leave 43 / 21 late lines a frame, four and eight none, plane 100 %; a cold row cache (a scene change) leaves 69 / 84 with four and 43
- projects/konami/konami_gx/rtl/gx_top.sv:2149 MEASURED in tb_gx_busmix on MAME frames (docs/MEASUREMENTS.md 21): late sprite lines 144 -> 16 on frame 1850 with the CPU idle, and 32 -> 0 on 910; the busiest line of the attract (2240) keeps 144 and is not this fix.
- projects/konami/konami_gx/rtl/gx_top.sv:2345 Layer A was innocent -- MAME settled it.
- projects/konami/konami_gx/rtl/gx_top.sv:2390 MAME measures the running reply as 0x00..0x0F, with the high nibble always zero.
- projects/konami/konami_gx/rtl/gx_top.sv:2638 low nibble 0xE -- the main CPU sends 0xFE, the same command MAME sends at frame 163 -- and rung 4 says it pulsed the sound interrupt too.
- projects/konami/konami_gx/rtl/gx_top.sv:2731 MEASURED, dist/sndcomm_mame.csv: the only commands MAME's main CPU ever sends are 0xFE at frame 163 and 0xFB at frame 660.
- projects/konami/konami_gx/rtl/gx_top.sv:2737 R G G G 0x_E the boot command 0xFE MAME sends this at f163
- projects/konami/konami_gx/rtl/gx_top.sv:2738 G G R G 0x_B the second command 0xFB MAME sends this at f660
- projects/konami/konami_gx/rtl/gx_top.sv:2740 Anything else is a command MAME never sends, and THAT would be the finding: the simulator can then be given the same byte and the halt reproduced in a minute instead of a build.
- projects/konami/konami_gx/rtl/gx_top.sv:2744 k056800.cpp drops the interrupt pulse when the sound CPU has interrupts disabled, so "the host pulsed" and "the sound CPU was interrupted" are different facts.
- projects/konami/konami_gx/rtl/gx_top.sv:2756 Rung 4 is sticky from the first pulse, which MAME puts at frame 163.
- projects/konami/konami_gx/rtl/gx_top.sv:2812 Rung 6 is sticky from the first host write, which MAME puts at frame 4.
- projects/konami/konami_gx/rtl/gx_top.sv:2843 * the host's SECOND command: MAME sends 0xFB and 360 volume writes at frame 660.
- projects/konami/konami_gx/rtl/gx_top.sv:3109 MAME ruled out four candidates (MEASUREMENTS 148); one address tells the rest apart.
- projects/konami/konami_gx/rtl/gx_top.sv:3221 gx.cpp:1056.
- projects/konami/konami_gx/rtl/gx_xprot.sv:11 What MAME does, and so what this does: the long at cc0004 latches an opcode (bits 31-16); the long at cc0000 carries a clock in bit 25 (bit 9 of its high word), and on that clock's FALLING edge the latched opcode runs.
- projects/konami/konami_gx/rtl/gx_xprot.sv:14 Winning Spike uses two opcodes (MAME's table, :899-904):
- projects/konami/konami_gx/rtl/gx_xprot.sv:22 gx_main recognises the edge, freezes the 68EC020 on that write and lends this module the slice through the ESC / fjdma seam (D18, D19), so the copy is done before the game's next instruction -- MAME's handler runs inside the write.
- projects/konami/konami_gx/rtl/memory/gx_romcache.sv:9 docs/DECISIONS.md D10 sizes this board's sound CPU from `tools/gx_sndcpu.lua`, over MAME frames 163-660 -- the window in which the main CPU is stuck waiting for it:
- projects/konami/konami_gx/rtl/memory/gx_memarb.sv:107 A byte that arrives after the slot has moved on is a WRONG NIBBLE, and jt10_acc amplifies ADPCM-A by 7.25x on its way into the mix, so one wrong nibble becomes an output step that correct audio never makes: measured at 15 jumps over 2048 in
- projects/konami/konami_gx/rtl/memory/gx_cpucache.sv:4 MEASURED on the board (docs/MEASUREMENTS.md 41): with the look-ahead the battleship demo runs at 48.5 % of MAME's pace, and a frame-quantised model of MAME's own ROM reads says that stage needs ~29 k words a frame against ~23.5 k delivered.
- projects/konami/konami_gx/rtl/cpu/gx_m68k.sv:21 8 MHz is SUB_CLOCK/2, gx.cpp:1723, transcribed in docs/SOURCE_AUDIT.md section 3.
- projects/konami/konami_gx/rtl/cpu/gx_m68k.sv:25 ---- autovector, and the source that says so ------------------------------- gx.cpp wires both of the sound CPU's interrupts with `set_input_line` (K056800's int_callback -> M68K_IRQ_1 at gx.cpp:1786, and k054539_1's timer -> IRQ2 at gx.cpp
- projects/konami/konami_gx/rtl/cpu/gx_m68k.sv:41 96 MHz / 12 = 8.000 MHz, the sound CPU's rate at gx.cpp:1723.
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:33 MIRROR FOLLOWS MAME, k053246_k053247_k055673.h:164 and :180-181: mirror x forces flipx = 0, and screen flip X does not toggle it; mirror y leaves flipy alone, and screen flip Y does not toggle it.
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:44 ZOOM ROUNDS EACH TILE, as MAME's draw_yxloop_gx does, not the whole sprite as one stream (see `recx`).
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:111 Change 5: under X mirror MAME forces flipx = 0 and the screen flip does not reach it, so the flip of each tile is exactly "is this the right half".
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:178 ---- change 10: MAME's per-tile zoom --------------------------------------- k053246_k053247_k055673.h:146-157 and :316-322, zdrawgfxzoom32GP :464:
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:181 centre = (zoom * size) >> 13 tile k at (zoom * k + 0x800) >> 12, size = next tile's start - its own source = (offset * ((16 << 19) / size)) >> 19 (gx_zstride) Upstream multiplied the whole sprite's row by one zoom and cut tiles out of
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:291 change 5: MAME keeps flipy under Y mirror and does not apply the screen flip to it (h:180-181).
- projects/konami/konami_gx/rtl/video/gx_objscan.sv:414 change 10: this tile's first dot and width, rounded on their own as MAME rounds them
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:6 MAME k054156_k054157_k056832.cpp -- register map, page grid, tile encoding, linescroll.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:9 Its doc/register_map.md corrects MAME in four places and is cited below where it does.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:20 MAME's own CODE uses `offset >= 0x10/2 && offset <= 0x16/2` -- word-spaced registers at byte 0x10, 0x12, 0x14, 0x16 and 0x18, 0x1a, 0x1c, 0x1e.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:44 ---- page addressing ------------------------------------------------------ MAME: page_idx = (((rowstart + r) & 3) << 2) + ((colstart + c) & 3), a 4x4 grid of 64x32-tile pages, each 512x256 pixels.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:80 Per-layer horizontal displacement in MAME's set_layer_offs convention: positive moves the layer RIGHT, so vx = x + SCREEN_X_OFFSET + scroll - LAYER_DX.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:107 MAME maps 16 KB to the same handler because the window is mirrored, not because two pages are visible.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:147 Per-set horizontal adjustment folded into every layer's displacement (MAME set_layer_offs and the k053252 crop origin): dragoonj's layers sit one dot further right (VIDEO_START dragoonj) and its visible area starts 16 dots later (set_offset
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:212 Named accessors, word indices exactly as MAME indexes m_regs.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:219 The .mra DIP default was FD -- Flip Screen ON -- so the game wrote regs[0] = 0x0134 (reproduced by a MAME run with Flip Screen forced On) and this module's in-place flip rotated each tile.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:222 With the DIP at FE the game writes 0x0104, and MAME's code is the map (k054156_k054157_k056832.cpp):
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:234 The renderer does not read that page: MAME draws from `scrollbank` unless a game sets m_use_ext_linescroll (:1333), and konamigx never does.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:239 byte 0x0a, two bits per layer -- register 0x05: 0 = per-line, 1 = unknown (U23; MAME draws it as XY, :1392), 2 = per-8-lines, 3 = xy scroll.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:288 external tile bank table (GX-specific, 0xd44000) gxv.cpp:1600 -- eight 16-bit entries, packed two per long.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:297 konamigx_tilebank_w (gxv.cpp:1600) indexes the table by BYTE: m_gx_tilebanks[offset*4 + lane].
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:302 MAME maps 16 bytes here and would index up to 15 into an 8-entry array; addresses with bit 3 set are ignored rather than wrapped, because a wrap would corrupt a live bank.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:385 The seventeenth is the K056832 external linescroll page; MAME allocates PAGE_COUNT+1 for it and konamigx never sets m_use_ext_linescroll, and **553 VRAM dumps across every dump directory in this lane have it entirely zero**.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:632 MEASURED, afa0806 on the board against MAME's memory rebuilt into pixels: layers right by A 9, B 3, C 5, D 6.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:639 B, C and D had LOOKED like MAME because the game's scrolls are -24 plus MAME's per-layer offsets (-2, 0, +2, +3): the dropped bits happened to cancel those offsets for the three layers where they are non-negative.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:723 MEASURED: the sea stage (MAME frames 14220-15680) writes word 5 = 0x00CF, layer C in mode 0, and its table on scrollbank page 15 holds six different X scrolls down the screen -- the horizon and water band.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:730 WHAT MAME DOES, k054156_k054157_k056832.cpp tilemap_draw_common: scrollbank = ((word 0x18 >> 1) & 0xc) | (word 0x18 & 3) :1330
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:743 (For a 3-page-tall layer MAME's `(unsigned)dy % 768` differs from this for a negative scroll; gokuparo uses 2 pages, and span 3 is the same approximation the tile address already makes -- mod3 above.) jt05415x's silicon netlist has the lin
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:823 Word 1 (MAME m_regs[1], :618, "tile-flip override ...
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:830 GX external bank table, gxv.cpp:1036
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1089 alpha_tile_callback, gxv.cpp:1059
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1116 Bit 7 of each plane byte is the leftmost pixel (MAME's readbit is MSB-first), so no swizzle is needed.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1132 charlayout8 {56,24,40,8,48,16,32,0} (k054156_k054157_k056832.cpp:234): pen bits 7..0 from bytes 7,3,5,1,6,2,4,0; bytes 4-7 are rom1's.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1243 MAME's frame-300 text, the MAME VRAM tap and dist/gokuparo.bin agree on a deterministic end-to-end oracle.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1269 Still open: mode 1 (UPSTREAM_TODO U23, drawn as XY as MAME does), the flip-Y table walk (:1400, :1576-1577) -- global flip is only the in-place flip here anyway, see the flip TODO below.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1277 The game writes them and MAME reads neither -- U15.
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:15 spritelayout (k053246_k053247_k055673.cpp:621) is 5 bpp and the fifth plane is a separate ROM region; the fetch returns both.
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:31 SHADOW pens go out on their own port, `buf_shd_we` / `buf_shd`, and not into the solid buffer: pen 31 when the sprite has a shadow code (MAME drawmode 1 draws the solid pens, drawmode 4 the shadow pen, zdrawgfxzoom32GP, shdpen = granularity
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:42 ZOOM IS MAME'S, ONE TILE AT A TIME (2026-09-14).
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:44 MAME rounds each tile's start and width on its own (draw_yxloop_gx) and picks the source column of dot x as (x * ((16 << 19) / width)) >> 19 (zdrawgfxzoom32GP).
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:50 MEASURED before: MAME frame 4480 95.2 %, gameplay 3700 96.96 %.
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:172 MAME flips by 15 - x
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:188 the shadow pen is the format's last pen: MAME shdpen = granularity - 1 (k053246_k053247_k055673.cpp), 31 / 63 / 15 / 255.
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:295 A tile rounded to no width draws nothing and fetches nothing, as in MAME (a zero-width destination returns before any pixel).
- projects/konami/konami_gx/rtl/video/gx_objdraw.sv:339 A zero-width staged tile fetches nothing, as MAME draws nothing.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:4 Register map from references/upstream/mame/src/devices/machine/k053252.cpp (LGPL-2.1+, Angelo Salese, from notes by Olivier Galibert), transcribed in docs/SOURCE_AUDIT.md section 3.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:16 jtk053252.v was read for structure and is cited where it settled something MAME's comments left open.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:26 Per line and per frame the active, blank, sync and porch lengths are IDENTICAL -- including k053252.cpp's "+1 on VBP only" (the silicon's V back porch is VBP+1 lines; its H back porch is HBP+1 too, but its front porch is HFP-1, so the H act
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:31 So the formulas in this file are the silicon's, not just MAME's.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:40 No set reads VCT (regs e/f; MAME read tap, 11 sets, 3,000 frames: zero reads).
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:46 Same raster, easier to read against the MAME formulas, and the counters are not observable from outside the chip.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:62 This CONTRADICTS konamigx.cpp:1745, which claims 8 MHz and htotal 512 under the comment "These parameters are actual value written to the CCU".
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:63 It agrees with the set_visarea() that MAME immediately applies on top.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:116 That is the real acknowledge path on this board: konamigx.cpp:1732 wires the CCU's ack callbacks to CLEAR_LINE on the CPU, so the game acknowledges the interrupt by writing the CCU, not by touching the CPU.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:141 k053252.cpp: "Read-only: e-f: bits 8-0: VCT", and it notes that viostorm and dbz read the port purely as a side effect of acknowledging the interrupt.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:159 k053252.cpp states the visible sizes as Hres ~ (HC+1) - HFP - HBP - 8*(HSW+1) Vres ~ (VC+1) - VFP - (VBP+1) - (VSW+1) and notes "according to p.14-15 both HBP and VBP have +1 added, but to get correct visible areas you have to add it only t
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:276 MAME's old register-map names for 6/7 as INT1EN/INT2EN are not the silicon semantics; its GX driver also leaves those callbacks unbound and gates IRQ1 only with D56001.
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:320 MAME's equivalent (vblank_irq_ack_w) is unconditional.
- projects/konami/konami_gx/rtl/video/gx_palette.sv:4 konamigx.cpp:1754 for the map, :1755 for the format: map(0xd90000, 0xd97fff).ram().w(palette, write32).share("palette") PALETTE(config, m_palette).set_format(palette_device::xRGB_888, 8192) m_palette->enable_shadows(); m_palette->enable_hi
- projects/konami/konami_gx/rtl/video/gx_palette.sv:80 xRGB_888 in MAME's palette_device is (x << 24) | (R << 16) | (G << 8) | B,
- projects/konami/konami_gx/rtl/video/gx_palette.sv:204 That the chip select does NOT drop between the two halves is read out of the kernel, which is where a "when is it valid" question is answered (root CLAUDE.md 5.1 -- MAME has no clocks and cannot answer it):
- projects/konami/konami_gx/rtl/video/gx_xoffs.sv:4 These used to be per-set constants in gx_top, chosen by the set's name: tile_dx_adj 0 for the GX sets, -15 dragoonj spr_hoffset 954 GX / 952 salmndr2 / 931 dragoonj -- MAME's per-machine k053252 set_offsets (crop), K055673 set_config dx
- projects/konami/konami_gx/rtl/video/gx_xoffs.sv:8 MEASUREMENTS 174 measured the CCU values 16 sets write (gx_lane/gx_vidregs.lua) and found each of MAME's offsets is one formula of the back porch and the hsync width:
- projects/konami/konami_gx/rtl/video/gx_xoffs.sv:26 The constants 48 and 1034 are pipeline offsets that make MAME's numbers come out; the PCB's source of them is NOT verified.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:12 Root CLAUDE.md section 1.2 shelf 2: MAME's k054338.cpp says of itself "this is just a register-handling shell", so there is no behaviour to port from it -- only a map, and that map already exists in a core people play.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:17 It was checked field by field against k054338.cpp before adoption and they agree everywhere, including the one selection nobody would guess:
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:24 MAME writes that as `regs[13 + (pblend>>1 & 1)] >> (~pblend << 3 & 8)`.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:30 System GX sets alpha_invert(1) (konamigx.cpp:1768, and again at gxv.cpp:319), which turns 0x1f into 0 -- fully transparent.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:32 MAME's set_alpha_level returns 255 for pblend == 0 before it reads any register at all.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:42 ---- what MAME did not implement ----------------------------------------- Additive blending.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:43 k054338.cpp:150 says "addition blending unimplemented (requires major changes to drawgfx and tilemap.cpp)" and gxv.cpp:730 papers over it: "FIXME: implement mixpri and additive -- hack: mask out mixpri bit.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:52 MAME masks it out and says so; we do not know what it selects either.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:59 MAME appears to disagree -- konamigx_mixer fills the backdrop BEFORE testing KILL and returns after, leaving the backdrop visible.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:161 MIXPRI is U28 -- MAME masks it out and says so, and we do not know what it selects either.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:162 SHDPRI is MAME's own "demote shadows by one layer when this bit is set???
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:186 word 11 bits 7-0 preset 1 (bri_r) konamigx_v.cpp:59-61, which
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:209 MAME drops the code-2 object and the code-3 one lands.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:261 MAME's update_all_shadows sign-extends regs[SHAD*] & 0x1ff the same way (k054338.cpp:82) and jt054338 hands it over already sign-extended.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:299 Clamping is the documented behaviour ("The hardware clamps at black or white as necessary: see the Graphics Test in many System GX games", k054338.cpp:16); CLIPSL turning that off is this port's reading of the bit's name.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:325 MAME reaches the same order for a different reason -- it applies both as palette adjustments (set_pen_contrast, set_shadow_dRGB32) and blends when drawing.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:365 MAME applies the presets one after another, each clamped; for shadows (all deltas <= 0) and clamping the sum is the same answer.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:418 The upstream-defect workaround: pblend 0 is opaque (MAME set_alpha_level).
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:426 MAME konamigx_v.cpp:59-61 and :251-263 (set_brightness: m_brightness[bri_mode - 1] -> set_pen_contrast).
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:427 This module used to read k054338.cpp:21's "11-12: brightness R/G/B" literally, but the next line calls 13-14 "alpha blend R/G/B" too, and 13-14 are three presets picked by a two-bit code in jt054338 and in MAME alike.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:431 MEASURED (MEASUREMENTS 161): dragoonj's ranking screen, VBRI 0x50, presets A0/FF/FF -- the board dimmed red alone (teal picture, 91 % of the backdrop pixels = D x (0.627, 1, 1)), MAME dims all three.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:435 The RUNNER-UP gets its own preset too (bri1), before it meets the blend: MAME dims every layer as it draws it (set_brightness per layer), so the back of a blend is already dimmed.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:440 EMULATION_DERIVED -- TODO(HARDWAREIZE): whether the K054338 applies brightness to its second input at all is not known; MAME's frame-buffer drawing makes it so.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:462 MEASURED on the board (MEASUREMENTS 95, 96): on sexyparo's demo stage B the whole of layer B disappears and the runner-up shows through untouched -- 17,615 pixels, 99.5 % of that frame's board-vs-MAME difference.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:477 k054338.cpp:150 "addition blending unimplemented" gxv.cpp:730 when the additive bit is set MAME forces alpha to 0 and DOES NOT DRAW THE PASS.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:479 So MAME never reads the additive level at all and is no authority on it jt054338 carries ALPHA_INV as a parameter and applies it to every code alike; Mystic Warriors, which it was written for, calls invert_alpha(0) (mystwarr_v.cpp:
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:486 So: ALPHA_INV applies to the BLEND level, which MAME does use and which the verified band agrees on, and NOT to the ADDITIVE level.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:6 MAME k053246_k053247_k055673.cpp/.h -- registers, sprite RAM format, the GX draw (gxcore, yxloop_gx, zdrawgfxzoom32GP); konamigx_v.cpp:23-110 and :491-610 -- which entries are drawn, the z rule, c18.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:13 MEASURED tools/gx_objstat.py over 535 attract frames of MAME sprite RAM (docs/MEASUREMENTS.md 18).
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:21 ---- WHY ONE SPRITE PIXEL PER DOT IS ENOUGH FOR THE K055555 -------------- MAME draws sprites and layers back to front in (priority, zcode) order, but the sprites also share a z-buffer that the layers never touch, and a sprite pixel is draw
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:41 MAME loses none: its key is `pri << 24 | zcode << 16 | offs << 5 | mode << 4`
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:42 (konamigx_v.cpp:598), so position breaks the tie, and the pool is drawn back to front in descending order -- at equal zcode the HIGHER offset is drawn first and ends up BEHIND.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:51 pass 1 histogram: how many active entries land on each slot_of pass 2 prefix sum -> a per-bucket pointer at the bucket's LAST slot pass 3 capture, walking entries in ASCENDING offset and taking the pointer DOWNWARD, so the lowest offs
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:64 ---- the draw order comes from OPSET, not from a parameter ---------------- MAME inverts the zcode when OPSET bit 4 is set (konamigx_v.cpp:503, "see p.51 OPSET PRI"), and jt053246's K55673_DESC_SORT parameter is the same bit frozen per game
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:97 control_w bit 18 (gx.cpp:533)
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:170 MAME reads the offsets as 16-bit signed; the scan works modulo 1024, which is the wrap MAME applies when OPSET bit 6 is clear (h:193, gokuparo OPSET = 0x0001).
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:180 OBJSET2 (konamigx_v.cpp:30-45)
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:202 MAME itself never copies for GX (U30: konamigx_mixer_init(screen, 0)); its mixer reads the live sprite RAM at vblank END (VIDEO_UPDATE_AFTER_VBLANK, konamigx.cpp:1744).
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:210 The program clears DMAEN at line 230 and rewrites the sprite list after it, so in a lag frame the list is still being written: the gate keeps the previous frame's sprites where MAME draws the half-written RAM.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:216 That csv's line 0 is vblank END -- MAME's frame notifier moves there with VIDEO_UPDATE_AFTER_VBLANK -- so vblank begins at its line 224 and those rises at lines 1-60 precede it.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:646 ---- the shadow line buffer, 2026-09-14 ------------------------------------- MAME draws a sprite's shadow as its own object with its own z-buffer (gx_shdzbuf) and priority (SHDPRI, or the sprite's own under OPSET SDSEL), so a shadow pixel
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:652 Two shadows at one dot do not stack here; MAME stacks them only when their priorities differ (UNVERIFIED on this game, which puts one shadow-coded entry up at a time in 535 attract frames and at most two in its gameplay dump).
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:661 tbyahhoo's demo explanation screens darken the whole screen with a code-2 shadow AND the 1P panel with a code-3 one, and MAME draws both (k053246_k053247_k055673.cpp:570: a later shadow lands when it is nearer-or-equal in z AND strictly low
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:685 ---- which of the two was drawn last at each dot, 2026-09-14 -------------- MAME sorts a shadow object and a solid sprite by `pri << 24 | zcode << 16` (konamigx_v.cpp:600, :607), and a shadow darkens only what is already in the bitmap.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:693 MEASURED on MAME memory (docs/MEASUREMENTS.md 37): the attract's curtain flash is a full-screen shadow (pri 12, z 15-16) behind the framed picture (pri 12, z 14-15) and MAME darkens none of the picture's 15,906 dots; the demo's explosion fl
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:749 type2_sprite_callback (konamigx_v.cpp:106): the top two code bits select a 4-bit bank from OBJSET2 words 4 and 5.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:764 A GX set with an 8 MB 4bpp area (tokkae, tkmmpzdm: k055673 region 0xa00000, the GX layout's 4bpp part (region / 5) * 4, k053246_k053247_k055673.cpp:685) holds 65536, two bits.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:807 the dot-rate output: c18, K053247GX_combine_c18 (konamigx_v.cpp:66, p.46)
- projects/konami/konami_gx/rtl/video/gx_prio.sv:10 All the behaviour lives in konamigx_v.cpp as a std::vector of up to 518 objects, std::stable_sort'ed on a packed 32-bit key and drawn back-to-front through a z-buffer.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:15 The chip's own header (k055555.cpp:5-22) describes what it actually is:
- projects/konami/konami_gx/rtl/video/gx_prio.sv:28 What IS ported literally is the colour-index assembly -- K055555GX_decode_vmixcolor (gxv.cpp:165), K055555GX_decode_osmixcolor (:194), K055555GX_decode_objcolor (:78) and K055555GX_decode_inpri (:90).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:37 * konamigx_v.cpp:610 sorts the object pool DESCENDING by a key whose top byte is the priority, and draws in that order.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:44 MAME has that line commented out with "not used by any GX game?" -- implemented here because it is one XOR and leaving it out would be a silent difference.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:49 For the four tilemap planes MAME's pre-sort (gxv.cpp:437) uses `if (layerpri[j] <= layerpri[i]) swap`, so on a tie the LATER letter ends up drawn first, i.e. behind.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:55 Where OBJ and SUB1-3 sit in that order is NOT established by any source we have -- in MAME sprites are separate objects whose tie-break is decided by emulator bookkeeping (insertion order and a std::reverse), which is not evidence about sil
- projects/konami/konami_gx/rtl/video/gx_prio.sv:64 MAME gets this for free by drawing into a bitmap in order; we have to be explicit.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:67 ---- the palette index --------------------------------------------------- MAME overrides the K056832 tile granularity to 16, but the decoded tile pen is still five bits wide:
- projects/konami/konami_gx/rtl/video/gx_prio.sv:79 The remaining bug was that the experimental x16 path had been implemented as truncation instead of MAME's arithmetic.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:85 Gokujou Parodius writes 0x11 to all four, i.e. every input gets code 1, and MAME never reads them at all.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:105 fill_backcolor indexes base + the BITMAP coordinate (k054338.cpp:134-150), whose visible area starts at (24,16), while hpos/vpos here start at 0.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:135 That is the same axis as UPSTREAM_TODO U5/U6 -- MAME covers the GX raster with hardcoded offsets (-2,0,2,3) that this core deliberately does not port -- so the alignment is an open P4 question either way and this is one more known term in i
- projects/konami/konami_gx/rtl/video/gx_prio.sv:143 K055555_long_w (k055555.cpp:79) puts register 2n in bits 31-24 of long n and register 2n+1 in bits 15-8, so on the 16-bit port the register index IS the word address and the data is always D[15:8].
- projects/konami/konami_gx/rtl/video/gx_prio.sv:152 --- D5: how the tilemap palette index is scaled ------------------------- 0 = colour_code * 32 + pixel[4:0] what this board has always done 1 = colour_code * 16 + pixel[4:0] what MAME does
- projects/konami/konami_gx/rtl/video/gx_prio.sv:169 --- backdrop source select --------------------------------------------- eeprom_w bit 29 = m_gx_wrport1_0 & 0x20 (gxv.cpp:345): 0 -> the K054338's own solid background colour registers 1 -> the unified 338/5^5 fill, which indexes the palett
- projects/konami/konami_gx/rtl/video/gx_prio.sv:186 --- sprite input ------------------------------------------------------- c18 is the K053247 side of the split (K053247GX_combine_c18, gxv.cpp:66, "see p.46"); the sprite chip owns that arithmetic because it needs OPSET and OBJSET2.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:192 It picks MAME's colour granularity (1 << bpp: index = colour % (8192 >> bpp) * granularity + pen, konami_helper.cpp / k053246_k053247_k055673.cpp) and the set's sprite priority callback: 0 type2_sprite_callback decode_inpri(c18) 1 salmn
- projects/konami/konami_gx/rtl/video/gx_prio.sv:198 4 : attr >> 4 & 0xf (konamigx_v.cpp), each then (pri & ~OINPRI_ON) | (OBJ_PRI & OINPRI_ON).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:246 The chip decodes 128 bytes; 46 are named (k055555.cpp:57).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:350 colour-index assembly -- K055555GX_decode_vmixcolor, gxv.cpp:165 ("see p.62 7.2.6 and p.27 3.3")
- projects/konami/konami_gx/rtl/video/gx_prio.sv:364 MAME reaches the same place by two different routes -- decode_vmixcolor above, and gx_draw_basic_tilemaps (gxv.cpp:695) which splits internal (VINMIX & VINMIX_ON) from external (tile attribute bits 6-7 & ~VINMIX_ON).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:376 vcb = PALBASE << 6 (gxv.cpp:169) is the colour code's bits 8:6 into an 8,192-entry palette (konamigx.cpp:1755), so PALBASE bit 2 is palette bit 12.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:378 MEASURED: during the explosion flash the game sets PALBASE_A = 0x07; MAME indexes 0x1C1E (black), the board 0x0C1E (the blue double line at y 8-12, shot 6302: board == this function's old output on every pixel of the box).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:397 K055555GX_decode_objcolor (gxv.cpp:78, "see p.59 7.2.2"): opon = (OINPRI_ON << 8) | 0xff objcolor = ((((OBJ_PALBASE & 7) << 10) & ~opon) | (c18 & opon)) >> shift
- projects/konami/konami_gx/rtl/video/gx_prio.sv:401 K055555GX_decode_inpri (gxv.cpp:90): inpri = ((c18 >> 8) & ~OINPRI_ON) | (OBJ_PRI & OINPRI_ON)
- projects/konami/konami_gx/rtl/video/gx_prio.sv:460 Sprites take the layer==0 branch of decode_osmixcolor (gxv.cpp:218), which has no external bits at all: "layer 0 is the sprite layer with different attributes decode; detail on p.49 (missing)" and MAME hardcodes emx = 0.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:468 V BRI is two bits per tilemap plane (set_brightness, gxv.cpp:253).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:469 OS INBRI / OS INBRI ON are the obj/sub equivalent; MAME caches them and never reads them, so the gating below is this port's reading of the register names, not a transcription.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:473 MAME uses them to pick one of the '338's three brightness registers and applies it as a SCALAR contrast to every channel, which cannot be right -- those three registers are the R, G and B of one triple (k054338.h:9, "11-12: brightness R/G/B
- projects/konami/konami_gx/rtl/video/gx_prio.sv:525 fill_backcolor (k054338.cpp:118) is a joint 338/5^5 function, "Unified k054338/K055555 BG color fill (see p.67)".
- projects/konami/konami_gx/rtl/video/gx_prio.sv:545 MAME advances pal_ptr from `base + cliprect.min_y` once per line (k054338.cpp:134-143), and cliprect.min_y is a BITMAP coordinate: the visible area starts at y = 16 (x = 24 for the horizontal mode).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:550 MEASURED 2026-09-14 against MAME frame 3000: base + vpos + 16 matched its backdrop and base + vpos matched none of it.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:563 Its priority is its own if OPSET bit 5 (SDSEL) is set, otherwise SHDPRI[code] -- gxv.cpp:566, "see p.51 OPSET SDSEL".
- projects/konami/konami_gx/rtl/video/gx_prio.sv:570 MAME implements neither: it forces all three shadowon[] to 0 and then turns them back on only if the '338's RGB delta exceeds +/-7 (gxv.cpp:420).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:582 WHERE A SHADOW LANDS ON A TIE, from MAME's sort (gxv.cpp:470-610): objects are drawn in descending key order and a shadow darkens what is already in the bitmap.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:597 MAME tests each 2-bit field only for non-zero ("filters shadows by different priority comparison methods (UNIMPLEMENTED, see detail on p.66)", gxv.cpp:405).
- projects/konami/konami_gx/rtl/video/gx_prio.sv:605 behind (MAME's rule) C 33,885 px the CURTAINS go black
- projects/konami/konami_gx/rtl/video/gx_prio.sv:655 MAME draws a later shadow over an earlier one only at a strictly LOWER priority (k053246_k053247_k055673.cpp:570), so codes that land at the same key count once -- the lowest code is kept.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:659 APPROXIMATION: MAME also requires the later shadow to be nearer-or-equal in z, and which of two equal-key shadows survives depends on z too; the per-code buffers do not carry z. TODO(HARDWAREIZE): U13/U14, how the chip stacks.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:676 That is how MAME's five-bit gfx element behaves after set_granularity(16), and it is deliberately written as two 13-bit addends so pixel[4] cannot vanish in an implicit-width conversion.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:680 The x16 sum is 13 bits and wraps at 8,192, as MAME's palette does.
- projects/konami/konami_gx/rtl/video/gx_prio.sv:685 OBJ: MAME's granularity is 1 << bpp
- projects/konami/konami_gx/integration/gx_download.sv:19 The MRA does the 32-bit word interleave for the main program (MAME ROM_LOAD32_WORD_SWAP) and the 16-bit one for the sound program; the two conventions meet exactly here.
- projects/konami/konami_gx/integration/gx_download.sv:27 ---- the second stream: the EEPROM's default contents --------------------- `<rom index="2">` in the .mra carries gokuparo.nv, the 128-byte default 93C46 image MAME calls "default eeprom to prevent game booting with error" (konamigx.cpp:216
- projects/konami/konami_gx/integration/gx_download.sv:37 The pairing is the SAME big-endian rule as the ROM stream above, and that is not a coincidence: MAME's region is ROM_REGION16_BE, so file byte 2W is the high half of EEPROM word W.
- README.md:28 같은 장면을 MAME 화면과 픽셀 단위로 비교해 남은 차이는 원인별로 분류해 두었고, 그 내용은 "알려진 제한사항"에 정리했습니다.
- README.md:31 | MAME 세트 | 공식 명칭 | ESC | 상태 |
- README.md:77 직접 마련한 MAME ROM 세트 zip 을 SD 카드의 `/games/mame/` 에 넣습니다.
- README.md:79 zip 은 MAME 세트 이름 그대로 두고, 압축을 풀지 않습니다.
- README.md:162 TMS57002는 MAME의 명령어 정의를 따라 RTL로 옮긴 뒤 MAME 코드를 그대로 컴파일한 모델과 샘플 단위로 대조했습니다.
- README.md:171 스프라이트 테이블을 zcode 계수 정렬로 바꾸고 그림자 우선순위를 PCB 영상에 맞춘 뒤, MAME 대조 16장이 모두 일치했습니다.
- README.md:202 바꾸기 전에 MAME 로 19개 세트를 모두 돌려 결과가 같다는 것을 확인했습니다.
- README.md:209 이 코어는 **MAME 팀** 덕분에 만들 수 있었습니다.
- README.md:211 오랜 세월 아케이드 하드웨어를 기록하고 보존해 온 모든 MAME 기여자께 깊이 감사드립니다.
- README.md:213 — <https://www.mamedev.org/> · <https://github.com/mamedev/mame>
- README.md:255 MAME 참고 파일
- README.md:257 MAME 소스 기준 커밋은 `446356f29ee59b4f2dad4f93408b1aaa33fae926`입니다.
- README.md:257 RTL 주석에서 `konamigx.cpp`를 `gx.cpp`로, `konamigx_v.cpp`를 `gxv.cpp`로 줄여 쓴 곳이 있습니다.
- README.md:261 | MAME 파일 | 라이선스 | copyright-holders | 참고한 내용 |
- README.md:263 | `src/mame/konami/konamigx.cpp` | BSD-3-Clause | R. Belmont, Acho A. Tang, Phil Stroffolino, Olivier Galibert | 메인·사운드 CPU 메모리 맵, 클럭(XTAL과 분주), 인터럽트, 화면 파라미터,
- README.md:264 | `src/mame/konami/konamigx_v.cpp` | BSD-3-Clause | R. Belmont, Acho A. Tang, Phil Stroffolino, Olivier Galibert | 레이어 합성 순서, K055555 / K053247 색 결합, 그림자, 알파 반전
- README.md:265 | `src/mame/konami/konamigx_m.cpp` | BSD-3-Clause | R. Belmont, Acho A. Tang, Phil Stroffolino, Olivier Galibert | Fantastic Journey의 0xDB0000 DMA 장치 |
- README.md:266 | `src/mame/konami/k054156_k054157_k056832.cpp` | BSD-3-Clause | David Haywood | 타일맵 레지스터, VRAM 창, 스크롤, 라인 스크롤 |
- README.md:267 | `src/mame/konami/k053246_k053247_k055673.cpp`, `.h` | BSD-3-Clause | David Haywood | 스프라이트 속성 해석, 확대·축소 연산(`zdrawgfxzoom32GP`), 그림자 |
- README.md:268 | `src/mame/konami/k055555.cpp` | BSD-3-Clause | David Haywood | 우선순위 인코더 레지스터와 동작 |
- README.md:269 | `src/mame/konami/k054338.cpp`, `.h` | BSD-3-Clause | David Haywood | 믹서 레지스터, 밝기와 블렌드 |
- README.md:270 | `src/mame/konami/konami_helper.cpp` | BSD-3-Clause | David Haywood | 스프라이트 색 단위와 펜 처리 |
- README.md:271 | `src/mame/konami/mystwarr_v.cpp` | BSD-3-Clause | R. Belmont, Phil Stroffolino, Acho A. Tang, Nicola Salmoria | 알파 반전 설정 비교 (System GX와의 차이 확인) |
- README.md:272 | `src/devices/machine/k053252.cpp` | LGPL-2.1+ | Angelo Salese | CCU 레지스터 맵 |
- README.md:273 | `src/devices/sound/k054539.cpp`, `.h` | BSD-3-Clause | Olivier Galibert | PCM 엔진, 볼륨·팬 테이블, 타이머, 리버브 |
- README.md:274 | `src/devices/sound/k056800.cpp`, `.h` | BSD-3-Clause | Ville Linde | 사운드 메일박스 레지스터와 인터럽트 |
- README.md:275 | `src/devices/cpu/tms57002/tms57002.cpp`, `.h`, `tms57kdec.cpp`, `tmsinstr.lst`, `tmsmake.py` | BSD-3-Clause | Olivier Galibert | TMS57002 명령어 정의, 디코드 순서, 호스트
- README.md:276 | `src/emu/diexec.cpp` | BSD-3-Clause | Aaron Giles | 리셋 중 실행 정지(suspend) 동작 |
- README.md:310 **MAME 대조에서 남은 차이가 있습니다.** 원인은 분류되어 있습니다.
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 12
- projects/konami/konami_gx/rtl/gx_fjdma.sv:4 EMULATION_DERIVED Matches MAME konamigx_m.cpp:489-538 (`fantjour_dma_install`, `fantjour_dma_w`), installed for fantjour and fantjoura by `special = 9` (konamigx.cpp:4054-4055, :4162) -- required for those two sets to draw anything at all.
- projects/konami/konami_gx/rtl/gx_top.sv:1112 EMULATION_DERIVED Matches MAME konamigx_v.cpp:1136-1144, set_layer_offs(-2, 0, +2, +3) for every non-flipped Type 2 game ("+ve values move layers to the right") -- required for bring-up.
- projects/konami/konami_gx/rtl/gx_top.sv:1348 Rebuilding MAME frame 3000 from its VRAM, registers and palette: with that permutation the board's text layer matched 100.0 % and its landscape 90.7 %; with MAME's plane order 45 % and 4.5 %.
- projects/konami/konami_gx/rtl/gx_top.sv:2035 EMULATION_DERIVED GOKUPARO-SPECIFIC Matches MAME gx.cpp:1815, set_config(K055673_LAYOUT_GX, -46, -23) for gokuparo (the base konamigx() machine says -26; sexyparo -42) -- required for bring-up.
- projects/konami/konami_gx/rtl/gx_top.sv:2061 U6's caveat stands for this value as it does for the other two: gokuparo and sexyparo write IDENTICAL OBJSET1 offsets while MAME gives them different dx, so at most one of the three is the board's. tb_gx_sprite checks that correspondence ag
- projects/konami/konami_gx/rtl/gx_xprot.sv:4 EMULATION_DERIVED Matches MAME konamigx.cpp:878-930 (`type4_prot_w`), installed at 0xcc0000-0xcc0007 for winspike by init_konamigx special 7 (:4155) in place of the ESC.
- projects/konami/konami_gx/rtl/esc/esc_cpu.sv:6 Semantics: D:/FPGATools/esc/escemu.py step(), which matches MAME on every byte of the sprite page (ESC_FINAL_REPORT section 11).
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:186 Bit 0 pulses when layer A fetches code 0x52 row 7 (ROM index 0x297); bit 1 pulses when the 40 returned ROM bits do NOT match the local ROM/MAME oracle.
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:1246 Rebuilding the whole 13-character mask with this module's address and plane equations matches MAME 561/561 pixels, while the board currently draws only 311 and many wrong colours.
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:202 EMULATION_DERIVED Matches MAME konamigx_v.cpp:421-426: a shadow code whose preset (regs 2-4, 5-7, 8-10, each a sign-extended 9-bit delta) is within +/-7 on all three channels is not drawn at all -- not even as an invisible shadow.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:199 EMULATION_DERIVED Matches MAME konamigx.cpp:620-625, "begin transfer if DMAEN(bit4 of OBJSET1) is set (see p.48)" -- MAME's code quoting the manual, evaluated at vblank begin.
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:448 EMULATION_DERIVED Matches MAME konamigx.cpp:612-633 -- raised at vblank begin whatever DMAEN says, dropped 342+42 us later (256+32 when control_w bit 16 selects 8 MHz).
MAMEから移植・書き写した、または取り入れたと記載 — 1
- projects/konami/konami_gx/rtl/video/gx_prio.sv:7 ---- why this is not a port of MAME --------------------------------------- MAME's k055555.cpp is 160 lines of which none are priority logic: a 128-byte register file, a byte write decode and two accessors.
MAMEの近似をそのまま採用 — 5
MAMEドライバと同じ文言を含む(出典の明記なし) — 24
- projects/konami/konami_gx/rtl/gx_fjdma.sv:31 mode 0x93 for i1 in 0..sz2: for (i2 = 0; i2 < db; i2 += 4) — 共通の文言: konami/konamigx_m.cpp:521
- projects/konami/konami_gx/rtl/gx_fjdma.sv:32 *da = *sa ^ x; da += 4; sa += 4 — 共通の文言: konami/konamigx_m.cpp:523
- projects/konami/konami_gx/rtl/gx_fjdma.sv:33 mode 0x8F for i1 in 0..sz2: for (i2 = 0; i2 < db; i2 += 4) — 共通の文言: konami/konamigx_m.cpp:521
- projects/konami/konami_gx/rtl/gx_top.sv:939 "default eeprom to prevent game booting with error" (konamigx.cpp:2163), so — 共通の文言: konami/konamigx.cpp:2169
- projects/konami/konami_gx/rtl/gx_top.sv:1114 for every non-flipped Type 2 game ("+ve values move layers to the — 共通の文言: konami/konamigx_v.cpp:1202
- projects/konami/konami_gx/rtl/gx_top.sv:2037 Matches MAME gx.cpp:1815, set_config(K055673_LAYOUT_GX, -46, -23) for — 共通の文言: konami/konamigx.cpp:1818
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:21 `offset >= 0x10/2 && offset <= 0x16/2` -- word-spaced registers at byte — 共通の文言: konami/k054156_k054157_k056832.cpp:1148
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:45 MAME: page_idx = (((rowstart + r) & 3) << 2) + ((colstart + c) & 3), a 4x4 — 共通の文言: konami/k054156_k054157_k056832.cpp:571
- projects/konami/konami_gx/rtl/video/gx_tilemap.sv:228 FBITS m_regs[3] >> 6 & 3 :617 — 共通の文言: konami/k054156_k054157_k056832.cpp:617
- projects/konami/konami_gx/rtl/video/gx_ccu.sv:63 the comment "These parameters are actual value written to the CCU". It — 共通の文言: konami/konamigx.cpp:1749
- projects/konami/konami_gx/rtl/video/gx_palette.sv:6 PALETTE(config, m_palette).set_format(palette_device::xRGB_888, 8192) — 共通の文言: konami/konamigx.cpp:1758
- projects/konami/konami_gx/rtl/video/gx_palette.sv:7 m_palette->enable_shadows(); m_palette->enable_highlights(); — 共通の文言: konami/konamigx.cpp:1759
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:13 2: MAME's k054338.cpp says of itself "this is just a register-handling — 共通の文言: konami/k054338.cpp:26
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:24 MAME writes that as `regs[13 + (pblend>>1 & 1)] >> (~pblend << 3 & 8)`. — 共通の文言: konami/k054338.cpp:171
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:44 (requires major changes to drawgfx and tilemap.cpp)" and gxv.cpp:730 papers — 共通の文言: konami/k054338.cpp:161
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:56 K338_CTL_KILL, control bit 0, "0 = no video output, 1 = enable". Taken — 共通の文言: konami/k054338.h:18
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:163 is MAME's own "demote shadows by one layer when this bit is set??? (see — 共通の文言: konami/konamigx_v.cpp:360
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:300 behaviour ("The hardware clamps at black or white as necessary: see the — 共通の文言: konami/k054338.cpp:17
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:301 Graphics Test in many System GX games", k054338.cpp:16); CLIPSL turning that — 共通の文言: konami/k054338.cpp:17
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:428 module used to read k054338.cpp:21's "11-12: brightness R/G/B" literally, — 共通の文言: konami/k054338.cpp:21
- projects/konami/konami_gx/rtl/video/gx_colmix.sv:429 but the next line calls 13-14 "alpha blend R/G/B" too, and 13-14 are three — 共通の文言: konami/k054338.cpp:23
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:200 Matches MAME konamigx.cpp:620-625, "begin transfer if DMAEN(bit4 of — 共通の文言: konami/konamigx.cpp:622
- projects/konami/konami_gx/rtl/video/gx_sprite.sv:201 OBJSET1) is set (see p.48)" -- MAME's code quoting the manual, evaluated — 共通の文言: konami/konamigx.cpp:622
- projects/konami/konami_gx/integration/gx_download.sv:29 93C46 image MAME calls "default eeprom to prevent game booting with error" — 共通の文言: konami/konamigx.cpp:2169