← コア一覧
seta2 (decoryah)
MAMEのソースを引用 — 86
- Seta2.sv:3 Seta "newer hardware" (TMP68301 + X1-020 / DX-101 + X1-010, 1994-2000) -- MAME's seta/seta2.cpp -- for MiSTer: Guardians / Denjin Makai II, Mobile Suit Gundam EX Revue, Penguin Brothers / A-Blast, Puzzle De Bowling, Kosodate Quiz My Angel 1
- Seta2.sv:7 Written for MiSTer from MAME 0.289's driver (src/mame/seta/seta2.cpp) and devices (src/devices/video/x1_020_dx_101.cpp, src/devices/cpu/m68000/tmp68301.cpp, src/devices/sound/x1_010.cpp, src/devices/machine/eepromser.cpp).
- Seta2.sv:195 ioctl index 254: byte 0 = DSW1 (MAME's port bits 7:0), byte 1 = DSW2, byte 2 = board jumpers (gundamex: bit 0 Language, 1 = English); a 1 is "off" (active low)
- Seta2.sv:259 keyboard: 1 / 2 start, 5 / 6 coin, 9 service (MAME's defaults); the mahjong keys (MAME's defaults: A-N, Kan LCtrl, Pon LAlt, Chi Space, Reach LShift, Ron Z, Bet 2, Flip Flop Y, Last Chance RAlt, Take Score RCtrl, Double Up RShift, Big Enter
- Seta2.sv:310 coins as MAME's PORT_IMPULSE(5): a press reaches the game as 5 frames however long it is held
- Seta2.sv:513 MAME: the X1-010's two outputs into the mono speaker at 1.0 (s2_core); "Normal" is that level
- rtl/s2_cen.sv:1 Clock enables from the machine clock (MCLK Hz, the build's: Seta2.sv): the TMP68301 / X1-010 clock of the board, 50 MHz / 3 = 16.667 MHz, or on the P0-113A boards (gundamex, grdiansa, grdiansbl: MAME's seta2_32m) 32.53047 MHz / 2 = 16.265 M
- rtl/s2_core.sv:1 The seta2.cpp machine: TMP68301 (fx68k + s2_tmp68301 in s2_main), the X1-020 / DX-101 video chip (s2_video), the X1-010 (ppriest's x1_010.sv: MAME's x1_010.cpp transcribed), the 93C46 EEPROM (gundamex), the program cache.
- rtl/s2_core.sv:109 the parallel port: gundamex reads the EEPROM's DO at bit 3 (the other bits 0); the others' callback is the default 0xffff the parallel port's pins: Gundam EX's 93C46 data out; the light-gun board's second DIP bank (MAME: "DSW2 // fffd0a.w")
- rtl/s2_core.sv:198 MAME routes both outputs to the mono speaker at 1.0: L + R, clipped
- rtl/s2_eeprom.sv:1 93C46 serial EEPROM, 64 x 16 bits (Gundam EX Revue, on the TMP68301's parallel port), from MAME 0.289's src/devices/machine/eepromser.cpp (eeprom_serial_93cxx_device, EEPROM_93C46_16BIT: 6 address bits, no streaming, writes take no time).
- rtl/s2_eeprom.sv:6 The contents are initialised from the MRA's image (MAME's "eeprom" region, big-endian words) through the init port.
- rtl/s2_guns.sv:3 The light guns of Sammy's hunting games (MAME 0.289 seta2.cpp, INPUT_PORTS deerhunt / wschamp: IPT_LIGHTGUN_X / _Y), after ppriest's gx_guns.sv (Lethal Enforcers II in the konamigx core) and the Zombie Raid guns of his Arcade-Seta_MiSTer.
- rtl/s2_guns.sv:13 The ports read v as MAME's lightgun fields do, linearly across the picture: X = 0x25 + v * 160 / 255 (PORT_MINMAX 0x25, 0xC5), Y = 0x08 + v * 240 / 255 (0x0800..0xF800, the high byte), here (v * 161) >> 8 and (v * 241) >> 8, exact at both e
- rtl/s2_guns.sv:15 The crosshair (OSD) marks v / 256 of the 320 x 240 picture, as MAME draws its own.
- rtl/s2_guns.sv:25 { Y, X } in MAME's units
- rtl/s2_main.sv:1 seta2.cpp main board: the TMP68301's 68HC000 (fx68k) with its bus, the memory maps of the phase-1 games, the work RAM, the inputs, the sample bank registers and Puzzle De Bowling's protection read.
- rtl/s2_main.sv:5 Memory maps (MAME 0.289 seta2.cpp, the *_map functions; cfg_map numbers as tools/seta2_cfg.py): 0 grdians 000000-1FFFFF ROM 200000-20FFFF RAM 304000-30FFFF RAM (slow) 600000/2 DSW1/2 700000/2/4 P1/P2/SYSTEM 70000C watchdog 800001 loc
- rtl/s2_main.sv:14 (P1/P2/SYSTEM 600000/2/4, DSW 600300/2, banks 600300-60030F), video D00000 5 pzlbowl 000000-0FFFFF ROM 200000-20FFFF RAM 400300/2 DSW1/2 400300-40030F banks 500000/2 P1/P2 500005 coins (SYSTEM | random bit 7) 500006 watchdog 700000
- rtl/s2_main.sv:74 the light-gun games' battery RAM, its second port (byte address, little-endian words: MAME's nvram file order): the SD card's file (Seta2.sv); nv_written pulses when the game changes it
- rtl/s2_main.sv:127 the memory maps (header byte 2, tools/seta2_cfg.py): M_SAM is Sammy's light-gun board (MAME's samshoot)
- rtl/s2_main.sv:143 INT2, the light-gun games only: MAME's set_periodic_int(irq2_line_hold, 60 Hz), a timer of its own (not the screen's): held until acknowledged, raised every 1/60 s of the CPU's clock (50 MHz / 3: 277,778 cycles, 59.99999 Hz)
- rtl/s2_main.sv:246 (MAME's port: active-high custom bit 7 | rand)
- rtl/s2_main.sv:330 ------------------------------------------------------------------ the light-gun games' battery RAM (8 KB) MAME gives samshoot 64 KB of NVRAM at 0x300000; after power-on the games write only its first 2 KB (MAME, 100 s of play each: Deer Hu
- rtl/s2_main.sv:334 Starts at zero, as MAME's (nvram_device::DEFAULT_ALL_0); s2_nvram clears it at every ROM load before the saved file comes.
- rtl/s2_main.sv:459 MAME's region pointer on a little-endian host: the 68000 byte n is at n ^ 1
- rtl/s2_mem.sv:4 The MRA's image (tools/make_mra.py; byte offsets): 0x0000000-0x0000FFF header: configuration bytes (0x00..0x3F, cfg below), 93C46 EEPROM image (0x100..0x17F) 0x0100000-0x04FFFFF program: MAME's "maincpu" region in the 68000's byte order (
- rtl/s2_mem.sv:8 graphics, MAME's "video" region exactly (up to 32 MB; zeros where MAME's region is erased) The DDR3 holds the image at byte 0x30000000 (BASE): with fast load (MRA address="0x30000000") Main_MiSTer puts it there itself and only the graphics
- rtl/s2_nvram.sv:4 The bytes are little-endian words, as MAME's nvram file (its first 8 KB).
- rtl/s2_nvram.sv:5 Without a saved file the RAM is all zeros, as MAME's: it is cleared at every ROM load (8192 clocks, done long before the file comes; a file that comes cuts it short).
- rtl/s2_render.sv:1 Allumer X1-020 / NEC DX-101 line renderer (seta2.cpp): draws one line of the sprite list into a line buffer.
- rtl/s2_render.sv:10 walker reads the private list (the copy made at register 0x26) entry by entry and the sub-sprites of each entry from the sprite RAM (64-bit port: one sub-sprite per read) ytest MAME's "does the sprite cover this scanline" test; a c
- rtl/s2_render.sv:15 Rows without a visible pixel are dropped here (MAME draws and clips them; the picture is the same) fetch the 8 bytes of the tile row from the graphics ROM (SDRAM; in order) drawer 8 pixels per clock into an 8-bank line buffer at zo
- rtl/s2_render.sv:21 The line buffer holds two lines (`lb_sel` picks the one drawn; the display reads the other through dsp_* and clears each pixel after reading it, so a line starts clear = pen 0, MAME's bitmap.fill(palette().pen(0))).
- rtl/s2_render.sv:34 MAME's yy: the line after the global y zoom / offset
- rtl/s2_render.sv:36 MAME's inc2 = 2^32 / the zoom register (0x10000 = 1)
- rtl/s2_render.sv:139 MAME: `if (s2 >= end) break;` -- s2 < 0x600 * 4 + 256 * 4 words here, never at the end of the sprite RAM
- rtl/s2_render.sv:222 line = usedscanline - firstline; y = line >> 3; line &= 7 (mod 1024: the cases where C's value is negative are reads outside the sprite in MAME, which never happen in the games)
- rtl/s2_render.sv:639 shrink (zoom < 1) without shadow, all 8 columns in one clock: column k lands at floor((sx + m z) / 2^16), m = k (flipx 7 - k), = (sx >> 16) + ((sx & 0xffff) + m z) >> 16 (0..7 on); the row's positions are consecutive within 8 pixels, so the
- rtl/s2_render.sv:703 ---- pixel loop (MAME's two loops of drawgfx_line), one position per clock; a shadow pixel reads its destination first shrink (zoom < 1): column k (0..7) at base + k * z, flipx: at base + (7 - k) * z (x0, x1, dx of the C code) enlarge
- rtl/s2_samports.sv:1 The input ports of Sammy's light-gun board (MAME 0.289 seta2.cpp: samshoot_map, INPUT_PORTS deerhunt / wschamp / trophyht), active low, from the players' controls: shared by the top level (Seta2.sv) and the machine bench (sim/sys/tb_sys.sv)
- rtl/s2_samports.sv:4 BUTTONS $400002 bit 0 trigger P1, bit 1 pump P1; two guns: bit 4 trigger P2, bit 5 pump P2; the location test: bit 1 trigger P2 TRIGGER $700000 bit 7 START1 (bits 5 / 6: MAME's "custom" trigger bits, never driven: 1) PUMP $700002 b
- rtl/s2_tmp68301.sv:2 From MAME 0.289's src/devices/cpu/m68000/tmp68301.cpp; the behaviour below is that file's, item by item:
- rtl/s2_tmp68301.sv:10 timers count when TS = 1 and CS = 0, at the CPU clock / 2^P (P = 8..15: 256), on the ticks of a free-running divider of the CPU clock (MAME counts (total_cycles >> div)); max = MAX1 or MAX2 (MR = 1 / 2; 0 = 65536): on reaching it the c
- rtl/s2_tmp68301.sv:13 TS = 0 holds the counter at 0; writing the counter of timer 1 / 2 clears it (timer 0: no effect, as MAME).
- rtl/s2_tmp68301.sv:16 serial not used by the seta2.cpp games (MAME's TX / RX state machines are not modelled): the registers are stored, SSR reads TXE, plus TXRDY once TXEN is set.
- rtl/s2_tmp68301.sv:19 Registers at 0xFFFC00-0xFFFFFF (the word address within that range = reg_addr[9:1]); MAME's map quirks kept: 0xFFFC9D reads IVNR, 0xFFFE40 (TCR2) reads TCR1.
- rtl/s2_tmp68301.sv:45 pulse: MAME's parallel_w_cb(PDR & PDIR)
- rtl/s2_tmp68301.sv:92 MAME scans the vectors in order 0..31; the ones raised here: ext0..2 (vectors 0, 1, 2 = slots 0, 1, 2) and the timers (vectors 4, 5, 6 = slots 8, 9, 10).
- rtl/s2_tmp68301.sv:148 MAME: 0xFFFC9D reads IVNR
- rtl/s2_tmp68301.sv:178 MAME: 0xFFFE40 reads TCR1
- rtl/s2_video.sv:1 Allumer X1-020 / NEC DX-101 video chip (seta2.cpp), from MAME 0.289's src/devices/video/x1_020_dx_101.cpp.
- rtl/s2_video.sv:9 Register 0x24 / 0x26 written non-zero: the display-list copy of vregs_w -- the list at sprite RAM 0x3000 into the private list, the sub-sprites each entry points at packed into sprite RAM 0x0000.., the pointers rewritten -- in MAME's order
- rtl/s2_video.sv:14 Timing: the CRTC values come from the MRA (the values the games program; MAME runs every set at 60 Hz on a 0x200 x 0x100 raster).
- rtl/s2_video.sv:15 MAME's raster position ("vpos": 0 = first visible line) is kept one line ahead of the picture: line N is drawn while line N-1 is shown, starting where MAME's raster reaches (N, 0); a raster IRQ for line N therefore comes one line before tha
- rtl/s2_video.sv:17 While the raster IRQ is enabled the line starts `rdly` dots later, so that the IRQ routine's writes (Guardians: ~80 dots after the IRQ) reach the line it names, as with MAME's update_partial.
- rtl/s2_video.sv:41 displayed dots (MAME's visible width)
- rtl/s2_video.sv:45 displayed lines (MAME's visible height)
- rtl/s2_video.sv:46 raster mode: dots between MAME's line start and drawing the line
- rtl/s2_video.sv:51 level: MAME's screen_vblank, from MAME's line v_height to line 0
- rtl/s2_video.sv:52 pulse: the raster timer fires with 0x3c bit 0 set (MAME: HOLD_LINE on INT1)
- rtl/s2_video.sv:73 simulation back door (frozen MAME states): 0 sprite RAM (64-bit word), 1 palette (word), 2 private list (64-bit), 3 register
- rtl/s2_video.sv:288 MAME's vpos of the line being drawn: (vc - v_start) mod v_total, + 1 from dot h_start on; two registered steps, so mvpos follows hc / vc 2 clocks late (lstart is delayed to match)
- rtl/s2_video.sv:298 MAME's line mvpos has just begun
- rtl/s2_video.sv:396 raster: a write to 0x3c arms MAME's one-shot timer for (m_rasterposition, hpos): hpos 0 (the start of that line), or the current hpos + 0x100 (half a line on) when that line is the current one; when it fires with 0x3c bit 0 set: the IRQ
- README.md:3 Written from MAME 0.289's `seta/seta2.cpp`, `x1_020_dx_101.cpp`, `tmp68301.cpp`, `x1_010.cpp` and `eepromser.cpp`; MAME was the oracle for everything (ROM layou
- README.md:20 Not supported, from the same driver: Reel'N Quake!, Endless Riches and TelePachi Fever Lion (medal machines), and Star Audition, the A-Blast bootleg, Namco Star
- README.md:25 The title screens, as MAME 0.289 draws them.
- README.md:103 `tools/make_mra.py` writes the MRAs from MAME 0.289's ROM lists and DIP switches (read from `seta2.cpp` itself) and checks that each builds, byte for byte, the
- README.md:135 | Crosshair | OSD: shows where each gun points, red P1, green P2, as MAME's crosshair. A real gun does not need it |
- README.md:137 The aim covers MAME's ranges (X 0x25-0xC5, Y 0x08-0xF8) evenly across the 320 x 240 picture, and the games take a shot where MAME's crosshair is: in Deer Huntin
- README.md:154 | DIP switches | per game | as MAME 0.289 defines them, with MAME's defaults; Gundam EX's Language jumper too. The light-gun games' second bank works here (in M
- README.md:155 | Volume | Normal, -6 dB, -12 dB, -18 dB | Normal is MAME's mix (the X1-010's two outputs into one speaker) |
- README.md:163 MiSTer keeps the battery RAM on the SD card as a `.nvm` file (the MRAs' `<nvram index="4" size="8192"/>`: its first 8 KB, all the games use) and loads it with t
- README.md:200 **Known differences from MAME**
- README.md:202 MAME 0.289's X1-010 returns a channel's "playing" flag without bringing the sound up to date, so a flag clears there only at its next sound update; the core cle
- README.md:206 The raster interrupt and the palette: the core draws each line just ahead of the beam and looks the palette up as the dots go out; a replay of MAME's writes sho
- README.md:211 TMP68301 and X1-010 at 50 MHz / 3 = 16.667 MHz (Gundam EX, the P0-113A Guardians and the bootleg: 32.53047 MHz / 2), as MAME.
- README.md:212 Guardians and Penguin Brothers / A-Blast get 262 lines instead of their CRTC's 259 and 256, with a line two or four dots shorter so that the frame rate stays ne
- README.md:217 The light-gun games (Sammy's board, MAME's `samshoot`) run as their CRTC says: 7 MHz, 446 x 262, 59.9 Hz; their second interrupt is MAME's 60 Hz periodic one, c
- README.md:220 The video chip (`rtl/s2_video.sv`, `rtl/s2_render.sv`) is written from MAME's `x1_020_dx_101.cpp`: sprites and tile sprites drawn a line ahead of the beam from
- README.md:221 Sound: the X1-010 (ppriest's `x1_010.sv`, MAME's sound chip transcribed: Credits) with the sample banks of each board.
- README.md:239 the video chip on frozen MAME states, vs MAME's pixels sim/sys/run.sh <image> <frames> <out> +every=10 [+wav] the whole machine from reset (sim/sys/runb.sh
- README.md:246 `tools/capture.py` runs MAME headless with `tools/lua/dump_state.lua` (states, pixels, the same scripted inputs); `tools/sys_match.py` / `tools/sys_lag.py` comp
- README.md:266 **MAME** (the seta2 driver and the X1-020 / DX-101 video chip by Luca Elia and David Haywood, the TMP68301 by Olivier Galibert, the X1-010 by Luca Elia with the
- README.md:268 **ppriest / Paul Priest**: [Arcade-Seta_MiSTer](https://github.com/ppriest/Arcade-Seta_MiSTer)'s `x1_010.sv`, MAME's X1-010 transcribed (GPL-3.0; `modules/x1_01
MAMEと一致する、MAMEに合わせた、またはMAMEで確認したと記載 — 3
- rtl/s2_render.sv:3 Written from MAME 0.289's src/devices/video/x1_020_dx_101.cpp (draw_sprites_line, drawgfx_line, draw_pixel, get_tile), whose executable copy is tools/seta2_ref.py (pixel-exact against MAME on the captured frames).
- README.md:182 **Verification.** MAME 0.289 is the reference.
- README.md:182 In simulation (Verilator, the games' real programs, the real SDRAM path): every ROM region of the 23 sets byte-identical to what MAME loads; the video chip on f
MAMEの近似をそのまま採用 — 1
- rtl/s2_video.sv:234 num, xoffs, yoffs as they are; sprite = ((current_sprite_entry / 4) & 0x7fff) | (sprite & 0x8000) (the end marker's entry with sprite == 0 gets | 0x4000: MAME's penbros hack, the pointer filtered when drawing)
MAMEドライバと同じ文言を含む(出典の明記なし) — 14
- Seta2.sv:7 Written for MiSTer from MAME 0.289's driver (src/mame/seta/seta2.cpp) and devices (src/devices/video/x1_020_dx_101.cpp, — 共通の文言: seta/seta2.cpp:48
- rtl/s2_main.sv:454 pzlbowl_protection_r: address = (RAM[0x20BA16] << 16) | RAM[0x20BA18]; the byte m_maincpu_region->base()[address - 2] — 共通の文言: seta/seta2.cpp:506
- rtl/s2_render.sv:3 Written from MAME 0.289's src/devices/video/x1_020_dx_101.cpp (draw_sprites_line, drawgfx_line, draw_pixel, get_tile), whose — 共通の文言: seta/seta2.cpp:48
- rtl/s2_render.sv:180 sy = s2[1] & 0x3ff; sy += global_yoffset; sy &= 0x3ff; if (sy & 0x200) sy -= 0x400; — 共通の文言: devices/video/x1_020_dx_101.cpp:687
- rtl/s2_render.sv:188 endline = firstline + height * 0x10 - 1; if (endline & 0x200) endline -= 0x400; (on the whole int: firstline in — 共通の文言: devices/video/x1_020_dx_101.cpp:703
- rtl/s2_render.sv:197 firstcolumn = sx + xoffs; firstcolumn = (firstcolumn & 0x1ff) - (firstcolumn & 0x200); lastcolumn = fc + width * 16 - 1 — 共通の文言: devices/video/x1_020_dx_101.cpp:733
- rtl/s2_render.sv:206 dx = sx + (scrollx & 0x3ff) + xoffs + 0x10 (only mod 1024 matters below) — 共通の文言: devices/video/x1_020_dx_101.cpp:763
- rtl/s2_render.sv:210 sy = s2[1] & 0x1ff; if (sy & 0x100) sy -= 0x200; sy += global_yoffset; sy &= 0x3ff; — 共通の文言: devices/video/x1_020_dx_101.cpp:789
- rtl/s2_render.sv:216 firstline = (sy + yoffs) & 0x3ff; endline = (firstline + (sizey + 1) * 8 - 1) & 0x3ff; both signed at 0x200 — 共通の文言: devices/video/x1_020_dx_101.cpp:807
- rtl/s2_render.sv:225 sx = (s2[0] + xoffs); sx = (sx & 0x1ff) - (sx & 0x200); sx -= global_xoffset — 共通の文言: devices/video/x1_020_dx_101.cpp:842
- rtl/s2_render.sv:232 basecode = (code & ~((sizex + 1) * (sizey + 1) - 1)) + ((flipy ? sizey - y : y) * (sizex + 1)) + (flipx ? sizex : 0) — 共通の文言: devices/video/x1_020_dx_101.cpp:857
- rtl/s2_render.sv:384 the tilemap's tile word (get_tile): attr = s3[0], code = s3[1] + ((attr & 7) << 16), 16x16: code &= ~3, + 1 / + 2 by the half — 共通の文言: devices/video/x1_020_dx_101.cpp:538
- rtl/s2_video.sv:1 Allumer X1-020 / NEC DX-101 video chip (seta2.cpp), from MAME 0.289's src/devices/video/x1_020_dx_101.cpp. — 共通の文言: seta/seta2.cpp:48
- rtl/s2_video.sv:234 num, xoffs, yoffs as they are; sprite = ((current_sprite_entry / 4) & 0x7fff) | (sprite & 0x8000) — 共通の文言: devices/video/x1_020_dx_101.cpp:329