← コア一覧
Arcade-Midway-Y-Unit (Gm0rk)
MAMEのソースを引用 — 57
- Arcade-Midway-Y-Unit.sv:301 The bootleg PCB has the 48 MHz oscillator (MAME's driver clocks the 34010 at 40 MHz)
- Arcade-Midway-Y-Unit.sv:331 ROM layout (byte addresses, same in the MRA and in SDRAM except for the graphics, whose four 2 MB chunks are interleaved per 16-bit word so one SDRAM line holds every plane of 8 pixels): 0x000000 program, 1 MB (16-bit little endian) 0x1000
- Arcade-Midway-Y-Unit.sv:443 The layouts follow MAME's input ports.
- Arcade-Midway-Y-Unit.sv:490 {U, D, L, R} in MAME bit order (up, down, left, right) for player n
- Arcade-Midway-Y-Unit.sv:582 The cabinet has one block button per player; the board's second block input (MAME "Block 2", IN1 bits 11 and 15) stays open.
- Arcade-Midway-Y-Unit.sv:647 Positions are 0-255 across the picture; the ADC sees X reversed (MAME PORT_REVERSE) because the cabinet shows a mirrored picture.
- rtl/midway_yunit.sv:4 TMS34010 plus everything on its local bus: 0x00000000-0x001FFFFF frame store (VRAM, in DDR3) entries 0-0x3FFFF 0x01000000-0x010FFFFF main RAM, 128 KB 0x01400000-0x0140FFFF CMOS, 8 KB window into 32 KB (4 pages) 0x01800000-0x0181FFF
- rtl/midway_yunit.sv:35 Yawdim bootlegs: X flip as MAME's yawdim_dma (yunit_dma.sv)
- rtl/midway_yunit.sv:655 Protection (MAME cmos_enable_w / protection_r)
- rtl/midway_yunit.sv:768 MK Turbo counter GAL (MAME returns random numbers; any changing value does)
- rtl/secret_menu.sv:33 A code step is 3 frames pressed and 3 released (the games read their switches once a frame; MAME accepts 2 + 3).
- rtl/secret_menu.sv:34 High Impact runs the schedule MAME was checked with: frame 0- 99 stage 1 directions frame 20- 99 stage 1 Action frame 110-189 stage 2 directions frame 120-189 stage 2 Action Frames are counted on the "frame" strobe, which the top lev
- rtl/secret_menu.sv:44 While "active" is set the top level replaces the player controls with in0/in1 (active-high port images, same bits as the MAME input ports) and releases every other player switch, so a held stick cannot spoil a code.
- rtl/secret_menu.sv:248 High Impact port bits (MAME layout): port 0 = P1 {Action, R, L, D, U} in bits 4-0 and P2 in bits 12-8; port 1 = P3 {Action, R, L, D, U} in bits 15-11.
- rtl/tms34010/tms34010.sv:5 Instruction semantics, flag behaviour and cycle counts follow MAME's tms34010 core (Alex Pasadyn, Zsolt Vasvari, Aaron Giles) because that is the behaviour every supported game has been tested against.
- rtl/tms34010/tms34010.sv:18 The next instruction only starts once the debt is paid, so the program sees the same timing as on the real chip (and in MAME) while memory latency stays hidden.
- rtl/tms34010/tms34010.sv:179 MAME treats any PSIZE other than 1/2/4/8/16/32 as 1 bit for pixel access, and uses a pixel shift of 0 for PSIZE=32 (the 34010 has no such case).
- rtl/tms34010/tms34010.sv:203 They read as zero until written, which makes XY addressing collapse to the X term, as in MAME.
- rtl/tms34010/tms34010.sv:217 Raster operations used by single-pixel writes (MAME raster_op_1..21)
- rtl/tms34010/tms34010.sv:613 The display address handling copies MAME's scanline callback: VCOUNT is published, the display interrupt fires on DPYINT, DPYADR reloads from DPYSTRT at VSBLNK, and every visible line hands the board its row/column then steps DPYADR.
- rtl/tms34010/tms34010.sv:624 As MAME does, the screen window (hblank) stays put and only takes new HEBLNK/HSBLNK values that are valid and have been left alone for a few frames (any timing change other than HEBLNK/HSBLNK takes them at once).
- rtl/tms34010/tms34010.sv:627 Each line is drawn from the HEBLNK/HSBLNK in effect when it starts (line_heblnk/line_hsblnk), so a write after VCOUNT reads n changes line n+1, as in MAME.
- rtl/tms34010/tms34010.sv:672 REFCNT: MAME returns (total cycles / 16) & 0xfffc
- rtl/tms34010/tms34010.sv:675 Live HCOUNT read value: MAME scales the beam position and offsets it by HEBLNK; returning the true counter is what the hardware does.
- rtl/tms34010/tms34010.sv:686 CPU writes follow MAME's io_register_w.
- rtl/tms34010/tms34010.sv:833 MAME: ((dpyadr & 0x7c) << 4) | DPYTAP (DPYADR bits 6:2 at column bits 10:6)
- rtl/tms34010/tms34010.sv:1000 ALU flag helpers (MAME SET_NZCV_ADD / SET_NZCV_SUB semantics)
- rtl/tms34010/tms34010.sv:1025 leftmost-one: number of leading zeros (0 for a zero operand, as in MAME).
- rtl/tms34010/tms34010_gfx.sv:8 The loops are a direct translation of MAME's pixblt / pixblt_r / pixblt_b / fill templates (34010gfx.hxx), including the order of word reads and writes.
- rtl/tms34010/tms34010_gfx.sv:15 Clipped-away and window-mode-1 operations cost nothing, as in MAME.
- rtl/tms34010/tms34010_gfx.sv:82 MAME's pixelsize_lookup: PSIZE & 0x1f -> 1/2/4/8/16 bits (so 32 means 1)
- rtl/tms34010/tms34010_gfx.sv:108 MAME s_pixel_op_timing_table
- rtl/tms34010/tms34010_gfx.sv:115 Pixel processing ops (MAME pixel_op00..21), evaluated on 32-bit operands
- rtl/tms34010/tms34010_gfx.sv:235 MAME keeps m_gfxcycles between operations; an operation entered with P set (resumed after an interrupt, or P set by software) only pays what is left.
- rtl/tms34010/tms34010_gfx.sv:237 Here the work is always finished in one go, so a resume charges the last operation's figure again, exactly as MAME's step-at-a-time path does.
- rtl/tms34010/tms34010_gfx.sv:651 PIXBLT R works it out per row; PIXBLT B and FILL use the first row's figures for every row, as MAME does.
- rtl/tms34010/tms34010_muldiv.sv:10 Results follow MAME's arithmetic (C truncating division, remainder takes the sign of the dividend), which is what the games were verified against.
- rtl/tms34010/tms34010_pkg.sv:3 Generated from the MAME tms34010 opcode dispatch table (34010tbl.hxx) so the HDL decode is a one-to-one image of the reference emulator.
- rtl/tv80/tv80_core.v:1185 Y Unit core: the latch is cleared once, when the NMI is taken (the first clock of NMICycle), and a new NMI edge is kept at any time, also during the acknowledge cycle: it is then taken after the first instruction of the handler, as on a Z80
- rtl/yunit_dlmap.sv:5 Everything lands at the byte address it has in the MRA, except the graphics (MRA 0x100000-0x8FFFFF, MAME's "gfx" region), whose four 2 MB chunks are interleaved per 16-bit word so one SDRAM line holds every plane of 8 pixels (see the layout
- rtl/yunit_dlmap.sv:10 Mortal Kombat "Victor bootleg of rev 3.0" (mkla3bl) ships its graphics in three 2 MB files that MAME's init_mkla3bl rearranges into the normal order: the bytes of the first two files alternate between two ROMs each
- rtl/yunit_dlmap.sv:19 With bl_gfx set, a word of the first two files is written as two single byte writes (the SDRAM write port has byte enables) to the places those bytes have in the normal order, so the game sees the graphics MAME gives it.
- rtl/yunit_dma.sv:5 Behaviour follows MAME's midyunit dma_w / dma_draw, including details games depend on: - register 0 bit 15 starts a blit and reads back set until it completes - any write to register 0 drops the completion interrupt (INT1) - completion is s
- rtl/yunit_dma.sv:16 The graphics ROMs are stored as MAME loads them (four 2 MB chunks, each holding two bits of every pixel) but with the chunks interleaved per 16-bit word, so one 8-byte SDRAM line carries all planes of 8 pixels: line byte 2*c + j = chunk c,
- rtl/yunit_dma.sv:127 pixel index of the next source pixel (MAME's o)
- rtl/yunit_dma.sv:128 pixel index of the next row (MAME's offset)
- rtl/yunit_dma.sv:174 what to do with this pixel (the cases of MAME's dma_draw)
- rtl/yunit_dma.sv:194 MAME draws a blit the moment it is started; here drawing takes time, so a second start that arrives while the first is still drawing is held off.
- rtl/yunit_dma.sv:292 Clipping as MAME does it, spread over a few states so each one stays a short add/compare chain at 96 MHz
- rtl/yunit_dma.sv:353 MAME's overrun guard: the row is skipped
- rtl/yunit_video.sv:4 Turns the frame store into pixels the way MAME's scanline_update does: - at the start of every displayed line the row the 34010 points at (DPYADR) is fetched from VRAM into a line buffer - pixels from HEBLNK to HSBLNK read consecutive entri
- rtl/yunit_video.sv:97 MAME writes a pen at (offset & mask), so with the 4 bpp mask several CPU words alias one pen and the last write wins.
- rtl/yunit_video.sv:126 MAME only erases rows 0-509; row - 1 is taken on the full 12-bit address
- README.md:3 **AI disclosure:** this core was developed using AI and MAME as a reference.
- README.md:31 | Protection | 34010-side PAL sequences and sound-CPU hidden RAM, as in MAME |
- README.md:80 MAME Y Unit driver: Alex Pasadyn, Zsolt Vasvari, Ernesto Corvi, Aaron Giles (thanks to Kurt Mahan); MAME TMS34010 core, Williams sound boards, 6821 PIA and HC-5
- README.md:98 The cheats for these games come from the MAME cheat collection (the cheat.txt of the 27 July 2025 release, for MAME 0.279; [mamecheat.co.uk](https://www.mameche
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 1
MAMEの近似をそのまま採用 — 2
- rtl/midway_yunit.sv:1028 Terminator 2 freeze workaround (MAME term2*_hack_w): one main RAM word is forced to zero when written by one specific instruction
- rtl/tms34010/tms34010_gfx.sv:14 Cycle counts are MAME's approximations; they are returned in `cycles` and charged to the CPU's cycle budget.