← コア一覧
Arcade-KonamiGXT1 (ppriest)
MAMEとの相違点を記載 — 3
- rtl/gx_eeprom93c46.v:161 MAME ignores a CLK edge at the same moment as the CS rise
- rtl/video/gx_video.sv:105 Upright is the tilemaps as if unflipped and the sprite plane turned over the visible rows: the scanner builds output row r from the chip's row 255 - r (vdump 0x2fb - vdump, the scanner working ahead of the line; measured on le2u f2400, whic
- README.md:166 On alternate rows of golf's fairway the colours differ from MAME's.
MAMEのソースを引用 — 176
- KonamiGX.sv:62 The analog output (gx_t34_crt): the OSD's Screen (CRT) -- one monitor held, or the board's frames as they come (status 127:126: First, the default, Second, Alternate) -- unless DIP SW1:4, "Number of Screens" (MAME's type3 port), is at 1: th
- KonamiGX.sv:132 le2's guns (H1: shown for the gun sets): MAME's crosshair where each gun points; the left stick per player -- Auto moves a pushed-full axis as the d-pad does (arcade sticks on gamepad encoders), Aim is always absolute (light guns), D-pad mo
- KonamiGX.sv:486 INPUTS /////////////////////////////// konamigx.cpp INPUT_PORTS common, active low: a player's byte is left, right, up, down, B1, B2, B3, start from bit 0; P1 at 31:24, P2 at 23:16.
- KonamiGX.sv:493 MAME bit 2 is up and bit 3 down; MiSTer's joystick bit 3 is up and 2 down (it had them the other way round: up and down were swapped)
- KonamiGX.sv:502 the Type 3/4 sets are four-player (MAME: players="4" coins="4"): P3 at 15:8, P4 at 7:0, as the common port has them
- KonamiGX.sv:515 the golf sets: opengolf's four players have one button each (bit 4 of their byte, as player()); ggreats2's two have Advice, Direction, Club and Stance, each pair left/right: Direction on the stick's left/right, Club on up/down, Stance on bu
- KonamiGX.sv:529 opengolf reads neither (MAME: unused, 0xff).
- KonamiGX.sv:560 0xd5a002: coins and service switches, active low, except bit 7: the gokuparo port set every set here uses declares SYSTEM_DSW bit 15 active HIGH, so it reads 0 (MAME reads 0xFEFF7FF7 idle; the bench gives the same).
- KonamiGX.sv:565 type3's port: coins 3 and 4 at bits 2-3, service 3 and 4 at 6-7, all active low (MAME reads the byte 0xff idle on soccerss)
- KonamiGX.sv:569 opengolf's port (MAME): coins 3 and 4 at bits 2-3 and service 3 and 4 at 6-7, active low as type3's; ggreats2 and racinfrc as the rest
- KonamiGX.sv:580 The 93C46: blank (swept to all ones) from configuration until the ROM download starts, then the set's default image (ioctl index 2, the .mra's <rom index="2">: MAME's "eeprom" region, big-endian words, which most sets ship "to prevent game
- KonamiGX.sv:968 This is how a capture is taken from the board instead of from MAME (scripts/memdump.py).
- rtl/cpu/gx_ss_m68k.sv:36 MAME keeps the same convention: PC past the STOP and a stopped flag.
- rtl/esc/k056734.sv:4 Instruction set, kernel and image format: konami_056734_manual.md (ppriest/mame-ai-tips, branch 056734-cipher); the reference model is scripts/k056734/ (docs/ESC.md).
- rtl/gx_adc0834.sv:3 The ADC0834 serial A/D converter of the Type 1 board (docs/TYPE1.md): Racin' Force's steering (channel 0) and gas pedal (channel 1), from MAME's adc083x.cpp.
- rtl/gx_adc0834.sv:8 One write is MAME's three line callbacks in its field order, CLK, then DI, then CS: a CLK edge acts on the DI and CS of before the write.
- rtl/gx_adc0834.sv:11 The conversion is the channel's value as it is: MAME's 5 * v / 255 scaled back by 255 / 5 in doubles.
- rtl/gx_adc0834.sv:12 Channels 2 and 3 read 0, as MAME's callback.
- rtl/gx_board_cfg.sv:14 The video constants are MAME's (konamigx.cpp machine configs and konamigx_v.cpp): the tilemap layer offsets (common_init: the same -2, 0, 2, 3 for every set; tilemode 1, tbyahhoo/mtwinbee, only changes how MAME marks tilemaps dirty) and the
- rtl/gx_board_cfg.sv:35 the visible width (MAME's from the CRTC: 288, 384, or 576)
- rtl/gx_board_cfg.sv:64 konamigx()'s K055673 dy (-23) less the set's, signed: MAME
- rtl/gx_board_cfg.sv:79 konamigx.cpp gameDefs' special and the *_esc callbacks: daiskiss_esc and tbyahhoo_esc walk 0x100 entries from 0xc00000, sexyparo_esc 0xfc from 0xc00604; gokuparo, fantjour(a), crzcross and puzldama have none (m_esc_cb null: the command only
- rtl/gx_board_cfg.sv:87 The 056734's sprite programs put x further right than MAME's C (docs/ESC.md): 20 for daiskiss, tbyahhoo and mtwinbee, 4 for sexyparo.
- rtl/gx_board_cfg.sv:211 MAME does not (docs/MAME_KLUDGES.md)
- rtl/gx_board_cfg.sv:228 Not salmndr2_sprite_callback: it reads attr[9:4], where MAME's sal2 ESC C puts a hand-filled depth code at bit 9; the 056734's program puts it at bit 6, which the standard decode's OPSET shift takes into the priority (docs/ESC.md)
- rtl/gx_board_cfg.sv:235 MAME's values: the bench checks them 12 MHz dots, 576 visible (wrport2 0xc2, the K053252's 768-dot line)
- rtl/gx_board_cfg.sv:241 MAME's values: the bench checks them
- rtl/gx_eeprom93c46.v:3 93C46 serial EEPROM, 64 x 16 bits (MAME EEPROM_93C46_16BIT), as MAME's eeprom_serial_base_device / eeprom_serial_93cxx_device behave -- that is the reference the game's boot is compared against, and the game polls DO through the status byte
- rtl/gx_eeprom93c46.v:19 Writes and erases are refused while locked; the part powers up locked, as MAME's does.
- rtl/gx_eeprom93c46.v:22 BUSY, as MAME's eeprom_base_device: a WRITE, ERASE, WRITEALL or ERASEALL that goes through holds the part busy for MAME's default times (the driver sets none): 1.75 ms, 1 ms, 8 ms and 8 ms.
- rtl/gx_eeprom93c46.v:24 While busy, DO reads 0 in WAIT_FOR_START (MAME's do_read gives ready there) and a start bit is ignored.
- rtl/gx_eeprom93c46.v:29 The contents are the 128-byte image MAME saves in nvram/<set>/eeprom, big endian words: load_we/load_addr/load_data write it (the .mra's default image, then the saved .nvm), rd_addr/rd_data read it back for the save, and `written` pulses wh
- rtl/gx_eeprom93c46.v:92 The top holds blank from configuration until the ROM download starts, and the set's default image (MAME's "eeprom" region, ioctl index 2) is loaded during the download; the benches hold it through rst and load after.
- rtl/gx_esc.v:3 Konami GX ESC protection, as MAME emulates it for the sets whose ESC program builds the sprite list: konamigx.cpp esc_w + generate_sprites (daiskiss_esc, tbyahhoo_esc: src 0xc00000, dst 0xd20000, 0x100 entries).
- rtl/gx_esc.v:7 MAME runs this as C, instantly, on the CPU's write to 0xcc0000.
- rtl/gx_esc.v:7 On the board the ESC is a microcontroller running a program the game uploads; that program is not emulated anywhere, so this reproduces MAME's C (docs/ROADMAP.md, "ESC protection: from scratch ...
- rtl/gx_esc.v:10 reproducing MAME's C").
- rtl/gx_esc.v:18 Then the byte at data+9 is set to 2 (ESTATE_END) and `irq` pulses -- gx_main raises IRQ 4 if its enable is set, as MAME does.
- rtl/gx_esc.v:33 The K055555 blend-enable write MAME makes for magic 0x10010011 ("TEMPORARY") is not reproduced.
- rtl/gx_esc.v:40 No interrupt, as MAME.
- rtl/gx_esc.v:63 The arithmetic is MAME's C, 16-bit where the C assigns to short: zoom by y*0x40/zoom (signed, truncated), positions offset or mirrored about glob_x/glob_y, pieces outside x -256..544 / y -256..512 skipped, colour mask/set/rotate.
- rtl/gx_esc.v:85 per set (gx_board_cfg, from konamigx.cpp's gameDefs and *_esc): whether a run command generates sprites, and the list it walks
- rtl/gx_esc.v:317 pkt[0]: MAME reads the packet with unaligned word reads; not modelled
- rtl/gx_guns.sv:3 Lethal Enforcers II's light guns, as konamigx.cpp reads them (le2_gun_H_r / le2_gun_V_r at 0xd44000 / 0xd44004, gameDefs special 1):
- rtl/gx_guns.sv:9 with v the 0-255 position MAME's LIGHTGUN port gives across the screen.
- rtl/gx_guns.sv:28 The crosshair, an OSD option, marks v on the picture the same way MAME draws its crosshair: v / 256 of the visible width and height.
- rtl/gx_keyboard.sv:1 MAME's default keys (src/emu/inpttype.ipp), in hps_io's J1 joystick layout so they OR into the pads: right, left, down, up at bits 0-3, buttons 1-6 at 4-9, Start 10, Coin 11, Pause 12, Service 13.
- rtl/gx_keyboard.sv:13 MAME's Service 1, 2
- rtl/gx_main.sv:3 Konami GX type 2 main board: the 68EC020 (TG68K.C), MAME's gx_type2_map, work RAM, palette, the video (gx_video), the ESC (gx_esc), the EEPROM, the I/O ports and the interrupt logic.
- rtl/gx_main.sv:8 Reference for everything here is konamigx.cpp; each block names the MAME function it follows.
- rtl/gx_main.sv:11 ---- CPU and bus TG68KdotC_Kernel directly, with the generics and the ready handshake the Phase 0 bench proved against MAME's boot trace (sim/gx_boot_tb): a level `ready`, held until the kernel takes the access on a clock-enabled cycle.
- rtl/gx_main.sv:36 ---- interrupts (konamigx.cpp) level 1 vblank: raised at the K053252's INT1 edge if wrport1_1 has 0x81 then (or syncen bit 0), and held until the acknowledge cycle or the game's acknowledge through K053252 register 0x0e (MAME: HOLD_LINE, v
- rtl/gx_main.sv:40 INT1 rises only after that acknowledge, which is MAME's syncen bit 5.
- rtl/gx_main.sv:50 Not while bit 7 is clear (MAME's does; see the INT edge below).
- rtl/gx_main.sv:54 level 3 object DMA end: MAME's dmastart/dmaend -- at vblank start the DMA busy bit (rdport1_3 bit 1) rises; 384 us later (288 us at 8 MHz dots) it falls and, if wrport1_1 has 0x84 or syncen bit 2, IRQ 3 is raised and rdport1_3 bit 7 cleare
- rtl/gx_main.sv:108 board inputs, active low as MAME's ports
- rtl/gx_main.sv:301 control_w (0xd58000) bits 23:16 are wrport2; bit 22 releases the sound CPU and DSP from reset (konamigx.cpp control_w)
- rtl/gx_main.sv:347 75 makes the loop MAME's (rtl/cpu/tg68k/PROVENANCE.md)
- rtl/gx_main.sv:440 ------------------------------------------------------------ Type 3/4 (docs/TYPE34.md) konamigx.cpp gx_type3_map: 0xd90000 is plain RAM on these boards, kept in the Type 2 palette's RAM (gx_mixer's 888 one, which no pixel reads here); the p
- rtl/gx_main.sv:461 Type 4: the K053936's map, 0xf00000 (32 KB, gx_type4_map's psacram), a tile a word in MAME's tile_index order; gx_psac reads it on port b
- rtl/gx_main.sv:483 every vblank, as MAME's screen update toggles it, whether or not the game takes the interrupt
- rtl/gx_main.sv:489 The frame whose flag reads 0xffff (t3_frame 0) is the main monitor's. MAME draws it at the next update, when its flag has turned (screen_update_ konamigx_left); here it is scanned out as the game draws it.
- rtl/gx_main.sv:501 ------------------------------------------------------------ Type 1 (docs/TYPE1.md) konamigx.cpp gx_type1_map and racinfrc_map.
- rtl/gx_main.sv:502 The power-on test reads back every RAM here (scripts/mame/t1_access.lua), so each is RAM: 0xdc0000 the 056230's RAM, 8 KB (the LAN; no link here) 0xe80000 the K053936's line control, 8 KB 0xf80000 the 056540's line RAM, 4 KB 0xfc0000 th
- rtl/gx_main.sv:566 The 056734 sets double-buffer the list, the game passing the half to write in each command and pointing objscan at it before vblank; MAME's C ESC writes the first half only, so it is used for the sets that run the chip.
- rtl/gx_main.sv:702 It is how the board's own memory is read out (scripts/memdump.py) -- the benches reproduce MAME from a capture, and this is the same capture taken from the board instead.
- rtl/gx_main.sv:803 ---- the register copy, for a capture from the board The video chips' registers are write-only (MAME's gx map has no read handler for them), so scripts/mame/capture.lua rebuilds them from a tap on the CPU's writes.
- rtl/gx_main.sv:849 konamigx.cpp maps the whole region and leaves what no ROM loads as zero; here the tile graphics follow the CPU image in SDRAM, so a read outside these windows came back as graphics.
- rtl/gx_main.sv:853 It is not a corner: daiskiss's ESC takes a sprite's piece list from 0x4f0080, which is zero in MAME and tile data here, so it read a count of 32,497 pieces and walked them, holding the bus for frames at a time.
- rtl/gx_main.sv:871 MAME's k056832 rom_read_b computes base = (o/4)*5 + (o%4)*2 and reads base, then base+1 on the next read of the same address -- m_rom_half, which a VRAM read clears.
- rtl/gx_main.sv:949 The games run their power-on tests with it off -- Twin Bee from frame 244 to 827, Crazy Cross to 764, Dragoon Might to 1059, by MAME's CACR -- and on the board every instruction fetch then goes to the program ROM.
- rtl/gx_main.sv:1037 fantjour_dma_w: the registers, and a write to register 0's top byte (the mode) starts the DMA, which holds the CPU until it is done -- MAME runs it on the write, in no time
- rtl/gx_main.sv:1054 type4_prot_w, the high word of each dword (the only writes winspike makes, by a MAME write tap): 0xcc0004 is the command; bit 9 of 0xcc0000 is a clock, and its falling edge runs the command, once
- rtl/gx_main.sv:1060 MAME sees the word in both halves: a word whose high byte is 0 is the parameter
- rtl/gx_main.sv:1094 type1_roz_r2 indexes past the end of gfx3 (byte 0xc00000 on), so MAME's value is whatever follows the region; the one byte it returned in play (0xf400c0) was 0
- rtl/gx_main.sv:1180 RAM in konamigx.cpp: the save state reads it
- rtl/gx_main.sv:1367 MAME 0.289's ESC runs in no time.
- rtl/gx_main.sv:1404 eeprom_w: syncen makes each IRQ fire at least once after it is enabled, except that a write arms level 1 or 2 only while the K053252 has had that interrupt acknowledged (INT1/INT2 low; mamedev/mame#16401).
- rtl/gx_main.sv:1434 MAME's vblank/hblank callbacks, at the INT edge: the level's enable, or a set syncen bit (consumed), raises it.
- rtl/gx_main.sv:1436 MAME lets it through, and that interrupts Dragoon Might's EEPROM save (0x243b1e: it clears bit 7, writes, sets it, clears it again and reads every word back) mid-read: the vblank handler's watchdog write drops CS, the read-back sum fails, a
- rtl/gx_main.sv:1571 CPU and ESC: MAME's write tap sees both
- rtl/memory/gx_sdram_top.sv:23 Both graphics regions are 5 bytes a row in MAME's image (4 bpp in two word ROMs, the fifth plane in a byte ROM), and the .mra carries each as MAME's k055673 region is laid out: the four-byte part, then the one-byte part (build_mra.py rearra
- rtl/video/gx_crt_chain.sv:18 MAME's set_raw, and daiskiss's K053252 (ROADMAP)
- rtl/video/gx_mixer.v:6 scripts/render_model.py stage_mix_hw() is the specification, and it reproduces MAME's konamigx_mixer pixel for pixel on every captured frame (docs/ROADMAP.md, Progress).
- rtl/video/gx_mixer.v:8 Structure, as the hardware has it rather than as MAME paints:
- rtl/video/gx_mixer.v:21 An alpha layer on top is blended over the second at its K054338 level, or added to it (MAME 5c75784's additive draw); the shadow, if any, shades what is behind its key -- the second before the blend, or the result after it -- or, for a code
- rtl/video/gx_mixer.v:26 Shadows go through MAME's 15-bit table arithmetic.
- rtl/video/gx_mixer.v:76 this pixel, in MAME bitmap coordinates
- rtl/video/gx_mixer.v:99 they are its mix code; off: none, as MAME (the benches' +SPR_MIX=0)
- rtl/video/gx_mixer.v:139 MAME 5c75784 inverts it (docs/MAME_KLUDGES.md).
- rtl/video/gx_mixer.v:250 MAME computes it and throws it away (the callbacks ignore the return value), drawing every mix-coded tile of a layer with the last one's code instead.
- rtl/video/gx_mixer.v:258 A sprite's mix code: MAME computes one and never uses it (K055555_MIXSHIFT 16 is past the colour's width), so its sprites are never blended.
- rtl/video/gx_mixer.v:322 SHD PRI SEL (K055555 p.66 7.2.8), as MAME 5c75784 draws it: a shadow code under condition 1 or 2 is applied last, to what is on screen, where its priority is above (1) or equal to (2) the priority code the topmost screen recorded -- a layer
- rtl/video/gx_mixer.v:376 MAME's shadow table: the colour is cut to 5 bits a channel, re-expanded with pal5bit, and offset by the K054338 delta, clipped unless CLIPSL.
- rtl/video/gx_mixer.v:478 MAME 5c75784 gx_draw_deferred_shadows: over everything, where the condition holds against the topmost screen
- rtl/video/gx_obj.v:11 MAME's GX mixer has no copy at all -- konamigx_mixer_init(screen, 0) points it at the K053247 RAM -- so it draws the live list whatever DMAEN says, and tokkae runs with DMAEN clear (OBJSET1 0x20) and its sprites on screen (docs/MAME_KLUDGES
- rtl/video/gx_obj.v:16 - jt053246 runs with GX_ORDER=1: the DMA copies sprites in RAM order, and which sprite is in front is decided per pixel in the line buffer on the key {z-code, priority} -- lowest wins, first written wins a tie (MAME's konamigx_mixer order;
- rtl/video/gx_obj.v:42 OUTPUT per pixel, solid plane: valid (pen != 0), pen = (colour << bpp) + pixel, 13 bits (MAME: colour % (8192 >> bpp) times the layout's granularity 2^bpp), pri (the K055555 input priority), zcode, index.
- rtl/video/gx_obj.v:46 The index and zcode are what the mixer needs to rank a sprite against a shadow as MAME does.
- rtl/video/gx_obj_linebuf.v:12 For solid pixels the key is {z-code, priority}: MAME's konamigx_mixer order when the list is drawn in RAM order (docs/MAME_KLUDGES.md).
- rtl/video/gx_obj_linebuf.v:16 MAME draws a sprite's shadow as a separate object with its own z-buffer and its own priority (SHAD1_PRI...), so a shadow pen must not displace a solid pixel.
- rtl/video/gx_obj_linebuf.v:19 Which one is the OPPOSITE of the solid rule: MAME draws back to front and its shadow z-buffer lets the first shadow drawn stand -- a later one at the same shadow priority is skipped -- so the one kept is the HIGHEST {shadow priority, z-code
- rtl/video/gx_obj_linebuf.v:24 MAME can also stack a second shadow of lower priority on a pixel; this keeps one, and no capture so far stacks two (docs/ROADMAP.md).
- rtl/video/gx_obj_linebuf.v:36 INPUT word (wr_data), written by gx_obj.v for every drawn pixel: [7:0] pen [9:8] shadow code [11:10] shadow mode (0 none, 1 = the shadow pen is shadow, 2 = every pen is shadow) [12] mode1 (the shadow pen is not solid) [13] solid [21:14
- rtl/video/gx_psac.sv:3 The Type 3 boards' K053936 (PSAC2) layer, as MAME draws it for Soccer Superstars (docs/TYPE34.md), a line ahead into a line buffer.
- rtl/video/gx_psac.sv:6 WRITTEN FROM MAME'S CODE: scripts/psac2_model.py is the specification and sim/gx_psac_tb the test.
- rtl/video/gx_psac.sv:7 jotego's jt053936 is not used: it is the chip's own pixel-rate counters fed by its line-RAM DMA, where this core renders a line ahead from SDRAM, and MAME reads the registers and the line control as 16-bit halves of 32-bit RAM (word n ^ 1),
- rtl/video/gx_psac.sv:36 Row y is computed for y - oy (MAME's GP offset y + 1).
- rtl/video/gx_psac.sv:40 With dbl (Versus Net Soccer, 576 wide: MAME's pixeldouble_output) a Type 4 row is 288 columns, doubled, and the GP offset x is -30 as Type 3's.
- rtl/video/gx_psac.sv:77 MAME's bitmap row
- rtl/video/gx_psac.sv:101 MAME's ctrl[n]
- rtl/video/gx_psac.sv:108 the line control, in MAME's order
- rtl/video/gx_psac.sv:253 MAME's line[0] is word 1
- rtl/video/gx_t1_psac4.sv:5 Written from MAME's type1_draw_terrain (konamigx_v.cpp, which calls itself an approximation) and the K053936's line mode; scripts/t1_psac4_model.py is the same, and sim/gx_t1_psac4_tb checks this against it.
- rtl/video/gx_t1_psac4.sv:10 MAME draws the frame at vblank start from the state then.
- rtl/video/gx_t1_psac4.sv:10 Racin' Force writes that state late in the frame before; Open Golf's attract writes the LRAM and line control on every line (scripts/mame/t1_sweep.lua).
- rtl/video/gx_t1_psac4.sv:12 Here the frame is drawn from vblank start into a DDR3 frame store over the frame that follows, and shown the frame after: one frame later than MAME (docs/MAME_KLUDGES.md).
- rtl/video/gx_t1_psac4.sv:92 debug (the probe build's instance P source): bit 0 stops the SDRAM fetches; bit 1 fills each column on down to what nearer lines left, as MAME does, rather than ending at its own line's ground row
- rtl/video/gx_tilemap.sv:6 scripts/render_model.py layer_fields() is the specification and scripts/check_gx_tilemap.py the test: sim/gx_tilemap_tb renders captured frames and every pixel's colour field and pixel value must equal the model's. jotego's jt05415x (vendor
- rtl/video/gx_tilemap.sv:21 COORDINATES are MAME's bitmap coordinates: a line is rendered for bitmap row line_y, for bitmap columns 24..311 (set_visarea(24, 24+288-1, ...)).
- rtl/video/gx_tilemap.sv:26 Flip Y (bit 5) is drawn unflipped: the sets that set it (le2u, le2j) are ones MAME turns back with ORIENTATION_FLIP_Y, and the result is the unflipped rendering (gx_video).
- rtl/video/gx_tilemap.sv:76 tile ROM, one pixel row per address: row = code * 8 + y. The row's bytes in MAME's order, byte 0 in [63:56]; 5 bpp uses bytes 0-4, 6 bpp 0-5, 8 bpp all eight (K056832 set_config's BPP_5, BPP_6, BPP_8)
- rtl/video/gx_tilemap.sv:150 Line scroll (k054156_k054157_k056832.cpp): register 0x0a gives each layer a mode -- 0 per line, 2 per eight lines, 3 none -- and the words live in the page register 0x30 selects, 0x400 words per layer, two words a line with the scroll in th
- rtl/video/gx_tilemap.sv:198 MAME: ay = (dy - offs_y) % height with dy = (int16_t)m_regs[0x10+layer], and sx = (dx - offs_x) & (width - 1)
- rtl/video/gx_tilemap.sv:260 MAME's bit order is MSB first within each byte, and the planes, most significant first, are the charlayouts' bit offsets / 8 (k054156_k054157_k056832.cpp), b0 being the row's first byte: charlayout5 { 32, 24, 8, 16, 0 } { b4, b3
- rtl/video/gx_tilemap.sv:293 the line's scroll pair: page, then layer * 0x200 + the map row (mode 2 takes the row's group of eight), wrapping at 512 rows as MAME's mask does.
- rtl/video/gx_tilemap.sv:386 Mode 1 is "unused/unknown" in the chip's documentation, but Crazy Cross sets it on all four layers, and MAME's switch takes 1 and 3 through the same default case: no line scroll, the layer's own X/Y scroll registers.
- rtl/video/gx_video.sv:5 Each block is proven against the software model or MAME on its own (docs/ROADMAP.md, Progress); this module wires them to one timing and lines up their pixels.
- rtl/video/gx_video.sv:10 With the registers daiskiss writes it gives 384 x 264 with a 288 x 224 visible area -- MAME's decoding of the same registers (sim/k053252_gx_tb).
- rtl/video/gx_video.sv:15 The blocks index pixels by MAME's bitmap coordinates through two counters derived here from the K053252's blanking:
- rtl/video/gx_video.sv:35 The first visible pixel is therefore bitmap (vis_x0, 16), MAME's visarea origin (K053252 set_offsets: 24 for konamigx(), 24 + 16 for dragoonj()).
- rtl/video/gx_video.sv:104 ORIENTATION_FLIP_Y sets (le2u, le2j): they flip their own screen in Y, and MAME turns the picture back.
- rtl/video/gx_video.sv:297 gx_mixer latches a pixel on the pxl_cen that ends it and drives rgb with it on the next, so rgb shows a pixel two pixel periods later; two register stages delay the blanking and syncs to match The visible area is vis_w columns: the K053252'
- rtl/video/gx_video.sv:395 ------------------------------------------------------------ K053936 The Type 3/4 layer: rendered for the tilemap's row (line_start, line_y), read at half the bitmap's column (MAME doubles each across two pixels)
- rtl/video/k055673/jt053246.sv:101 [GX] MAME's GX mixer draws sprite RAM live
- rtl/video/k055673/jt053246_dma.v:5 MAME's ESC runs instantly, so its copy never sees a half-built list; this one takes SDRAM time, and on the board the copy began during it hundreds of times a second (probe J, dma_during_esc).
- rtl/video/k055673/jt053246_scan.sv:95 [GX] With the x mirror the sprite's own x flip, and the global one, do not apply: the left half is drawn as it is and the right half mirrored (MAME: "if (mirrorx) flipx = 0; // only applies to x mirror, proven", and flipscreen leaves a mirr
- rtl/video/k055673/jt053246_scan.sv:194 MAME mirrors the half its flipy selects, counted in the sprite's own row order; with the global flip (gvf, always set on GX) ydiff counts those rows from the other end, so the half is the one with the top bit set.
- rtl/video/k055673/jtsimson_obj.v:99 As the object layer should not be drawn directly over a shadow, it looks like the logic must be like this - in the LUT the shadow bits are set for the whole sprite - when drawing the sprite, if the shadow is enabled and the sprite pen is 15
- rtl/video/k056832/jt05415x.v:185 This mirrors jt052109 FULLRAM=1 more closely than the MAME word-array model: RAM0 carries the extra/attribute byte, while RAM1/RAM2 form a 16-bit code word.
- README.md:3 A MiSTer FPGA core for Konami's [System GX](https://en.wikipedia.org/wiki/Konami_System_GX) arcade hardware (MAME's `konami/konamigx.cpp`), built with Quartus P
- README.md:36 The K053936 ROM readback at `0xf00000` (MAME's `type1_roz_r1`), which Open Golf reads in play
- README.md:63 Fix: Racin' Force: the sound board passes its power-on test on the first boot (32-bit divides take the time MAME gives them)
- README.md:68 Fix: Dragoon Might: the logo and TIME box are solid in the snow stage; the stages' highlight sprites (the castle's halo, the cage's spotlights) are drawn, where
- README.md:71 Vblank interrupts re-arm only once the K053252 has acknowledged the last, as in mamedev/mame#16401
- README.md:133 The zoomed sprite rendering is arguably more accurate than MAME, using a single accumulator for pixels when crossing multiple tiles in a sprite, versus MAME's w
- README.md:133 Also, the 056734 (ESC) protection chip runs the games' own programs, where MAME substitutes C written per game ([docs/ESC.md](docs/ESC.md)).
- README.md:134 Graphically, MAME has seen some great improvements in the past couple of weeks (targeted for MAME 0.290) thanks to R.Belmont, and that's reflected here too.
- README.md:148 Initial goal is the Type 2 boards of `konamigx.cpp`
- README.md:157 | Konami's Open Golf Championship / Golfing Greats 2 | 1994 | 64 MB | **Unsupported** (`releases/_Unsupported`): loads and plays, but too broken to count as wor
- README.md:161 This bitstream has no HDMI rotation (its DDR3 port is the frame store's; no Type 1 set is vertical), and no link play (the 056230 LAN is RAM only, as in MAME).
- README.md:170 Every Type 2 set in `konamigx.cpp` except the bootleg.
- README.md:178 | Sexy Parodius | 1996 | 5bpp | 5bpp | ESC (056734), with its weather effects; `UNEMULATED_PROTECTION` in MAME |
- README.md:180 | Tokimeki Memorial Taisen Puzzle-dama | 1995 | 6bpp | 5bpp | ESC (056734); runs without MAME's ROM patch |
- README.md:205 Graphics are as good, and as wrong, as MAME 0.289's, which marks every one of these sets `MACHINE_IMPERFECT_GRAPHICS` (Versus Net Soccer also `MACHINE_IMPERFECT
- README.md:206 The core follows MAME on purpose (docs/MAME_KLUDGES.md), including:
- README.md:208 Soccer Superstars' team select: the background behind the flags is a garbled tilemap falling away from the camera, in MAME too;
- README.md:214 One place the core does not follow MAME: in Rushing Heroes and Versus Net Soccer the K053936's map wraps, so the stadium crowd runs round the field.
- README.md:215 MAME draws it once and says in its source that its wraparound is broken for these two games' crowds.
- README.md:228 | MAME description | Why |
- README.md:242 | 056734 (ESC) | Protection microcontroller | Written here: runs the kernel and the game's program from the ROM, decrypted with each chip's key ([docs/ESC.md](d
- README.md:244 | K056800 | Sound mailbox | Written here from MAME's `k056800.cpp` |
- README.md:246 | K054539 ×2 | PCM, 8 channels each | Written here from MAME's `k054539.cpp`: 8-bit, 16-bit and DPCM samples, reverb in the chip's RAM |
- README.md:247 | TMS57002 | Effects DSP | Written here against MAME's `tms57002.cpp`; its 256 KB of RAM in SDRAM |
- README.md:257 MAME's `konamigx()` declares `set_raw(8000000, 512, ...)`, 60 Hz; the values above are what the game programs into the CRTC.
- README.md:288 States convert to and from MAME 0.289's (`.sta`, for the same set), so a moment can be taken in MAME and looked at on the core, or the other way: `python script
- README.md:290 What MAME does not keep (the K053252's registers, the K054539 voices' fractions, some timers' phases) starts afresh; MAME keeps no ESC state, so a converted sta
- README.md:310 MAME cheats that need conditions or arithmetic are not converted.
- README.md:311 A cheat MAME applies once (the "...
- README.md:426 MAME is the accuracy reference, with its own acknowledged uncertainties (`MACHINE_IMPERFECT_GRAPHICS` on every set) noted where they matter.
- README.md:429 The CPU is diffed against MAME's own trace: every write of the BIOS, the memory tests and the game's setup, 1.59 million of them, identical in order; the game's
- README.md:432 The video path is diffed against MAME's screenshots: a software model of `konamigx_v.cpp` reproduces six captured frames pixel for pixel, and the RTL reproduces
- README.md:435 The SDRAM image is downloaded into the controller against a command-decoding chip model and every region read back through the port the board uses, against MAME
- README.md:449 The **MAMEdev team** — **R. Belmont, Acho A. Tang, Phil Stroffolino and Olivier Galibert** — for `konamigx.cpp`, `konamigx_v.cpp` and the K05xxxx device emulati
- README.md:469 | `debug` | reference captures from MAME used as ground truth (gitignored) |
- README.md:470 | `roms` | your own MAME sets (gitignored, never committed) |
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 6
- rtl/gx_main.sv:491 Checked in sim/gx_main_tb from MAME's state after Start: team select in the frames with t3_frame 0, as MAME's main screen.
- rtl/gx_main.sv:930 Open Golf reads it in play (PC 0x227b7c), checked against MAME's values at 0xf00100 and 0xf01280.
- README.md:237 | K053252 | CRTC, interrupts | jotego's, verified against MAME's timing |
- README.md:238 | K054156 / K056832 | Four tilemap layers, 16 pages of VRAM | Written here (5, 6 and 8bpp), pixel-exact against MAME on captured frames |
- README.md:239 | K053246 / K055673 | 256 sprites, zoom, shadows, 4 to 8bpp | jotego's K053246 with GX changes and a keyed line buffer; pixel-exact against MAME |
- README.md:240 | K055555 | Priority mixer | Written here from MAME's `konamigx_mixer`, pixel-exact against MAME |
MAMEから移植・書き写した、または取り入れたと記載 — 3
- README.md:106 Cheats: Added cheats, converted from Pugsy's MAME cheats, in every set.
- README.md:117 States can be converted to and from MAME 0.289 for the same set (`scripts/gxss.py`)
- README.md:142 `docs/MAME_KLUDGES.md` lists what is taken from MAME as behaviour and what is known not to be right.
MAMEの近似をそのまま採用 — 5
- rtl/gx_main.sv:952 gx_romcache would answer most of them in a clock or two, the CPU ran the tests' timeout loops far faster than the board, and the loops gave up waiting for the sound CPU (MAME underclocks the CPU for twelve seconds instead, init_posthack).
- rtl/video/gx_mixer.v:266 the K053936: SUB2 (PRIINP_10) on Type 3, ordered as a layer after D (MAME's layer code 5); SUB1 (PRIINP_9, code 4) on Type 4, drawn whatever INPUT_ENABLES says (MAME's rushingheroes_hack), from pen 0x1800 (gfx_type4).
- rtl/video/gx_mixer.v:467 Type 4: MAME's rushingheroes_hack skips K338_CTL_KILL
- README.md:159 The road and terrain are MAME's renderer (`type1_draw_terrain`, which MAME calls an approximation), drawn into a DDR3 frame store over the frame after the game
- README.md:210 the Type 4 K053936 layer (court, field, pitch): drawn one row low, with every shadow fixed at a -80 darkening and the layer shown whatever the mixer's enable sa
MAMEドライバと同じ文言を含む(出典の明記なし) — 11
- KonamiGX.sv:583 ship "to prevent game booting with error") loaded a word at a time. The — 共通の文言: konami/konamigx.cpp:2169
- rtl/gx_board_cfg.sv:108 dragoonj_esc: konamigx_esc_alert(m_workram, 0x5c00, 0x100, 0) — 共通の文言: konami/konamigx.cpp:351
- rtl/gx_board_cfg.sv:110 tkmmpzdm_esc: konamigx_esc_alert(m_workram, 0x0142, 0x100, 0), dwords — 共通の文言: konami/konamigx.cpp:346
- rtl/gx_board_cfg.sv:116 sal2_esc: konamigx_esc_alert(m_workram, 0x1c8c, 0x172, 1) — 共通の文言: konami/konamigx.cpp:356
- rtl/gx_guns.sv:7 ("make off the bottom reload too") — 共通の文言: konami/konamigx.cpp:769
- rtl/gx_main.sv:376 m_last_prot_op != -1, m_last_prot_clk — 共通の文言: konami/konamigx.cpp:1054
- rtl/video/gx_mixer.v:85 blending (gx_draw_basic_extended_tilemaps_2). 0 where there is none. — 共通の文言: konami/konamigx.h:158
- rtl/video/gx_obj.v:308 konamigx_mixer: "invert z-order when opset_pri is set (see p.51 OPSET PRI)" — 共通の文言: konami/konamigx_v.cpp:520
- rtl/video/gx_psac.sv:24 pixel 0 is not drawn (gx_draw_basic_extended_tilemaps_2), which also — 共通の文言: konami/konamigx.h:158
- rtl/video/gx_tilemap.sv:22 row line_y, for bitmap columns 24..311 (set_visarea(24, 24+288-1, ...)). — 共通の文言: konami/konamigx.cpp:1755
- rtl/video/k055673/jt053246_scan.sv:97 "if (mirrorx) flipx = 0; // only applies to x mirror, proven", and flipscreen — 共通の文言: konami/k053246_k053247_k055673.h:167