← All cores
RShark (kyledlester)
Cites MAME source — 34
- RShark.sv:21 The game is vertical (MAME ROT270): HDMI uses the framework screen_rotate (DDR3 framebuffer, counter-clockwise); native/analog output is the unrotated 15 kHz raster for a rotated CRT.
- rtl/rshark/rshark_clocks.sv:7 phi1/phi2: FX68K phase enables, alternating on tick16 -> 68000 at 8 MHz (MAME 8_MHz_XTAL).
- rtl/rshark/rshark_clocks.sv:8 ce_4m : tick16 / 4 -> Z80 and YM2151 clock (MAME 8_MHz_XTAL / 2).
- rtl/rshark/rshark_clocks.sv:9 ce_1m : tick16 / 16 -> OKI M6295 clock (MAME 8_MHz_XTAL / 8).
- rtl/rshark/rshark_core.sv:4 Everything runs on clk_sys (94.371840 MHz) with clock enables: rshark_clocks -> ce_pix 7.864320 MHz, FX68K phi1/phi2 (8 MHz), 4 MHz (Z80/YM2151), 1 MHz (OKI) rshark_video_timing -> 512 x 256 raster; IRQ6 at line 120, IRQ5 + sprite copy + t
- rtl/rshark/rshark_core.sv:80 ------------------------------------------------------------------ inputs (MAME active low) MiSTer joystick: 0 right, 1 left, 2 down, 3 up, 4-7 buttons 1-4, 8 start, 9 coin, 10 service
- rtl/rshark/rshark_main.sv:4 MAME 0.289 rshark_state::rshark_map (docs/MEMORY_MAP.md): FX68K at 8 MHz (phi1/phi2 enables), program ROM / work RAM / sprite RAM in block RAM (zero wait states), I/O, sound latch, control byte, 4 x 8 tilemap control registers, palette writ
- rtl/rshark/rshark_main.sv:26 MAME port values (active low)
- rtl/rshark/rshark_main.sv:81 ------------------------------------------------------------------ decode (A23-A20 ignored) MAME rshark_map / superx_map differ only in where RAM and the I/O/video block sit: R-Shark: RAM 0x40000-0x4FFFF, I/O + video 0xC0000-0xCFFFF Super-X
- rtl/rshark/rshark_main.sv:138 A sprite RAM write to an entry the vblank copy has not read yet waits, so the copy is an atomic snapshot of sprite RAM at the vblank instant, as MAME's buffered_spriteram16 copy.
- rtl/rshark/rshark_main.sv:182 unmapped: MAME unmap_value 0
- rtl/rshark/rshark_sound.sv:4 MAME 0.289 dooyong_state::bluehawk_sound_map + sound_2151 (docs/AUDIO.md): Z80 (T80s) at 4 MHz: 0000-EFFF ROM (rse3), F000-F7FF RAM, F800 R sound latch, F808-F809 YM2151, F80A OKI M6295.
- rtl/rshark/rshark_sound.sv:8 Mono mix as MAME: YM left and right x 0.35 each + OKI x 0.42 (MAME scales OKI's 12-bit voices to full range: x16 against the YM's 16-bit scale), saturated to 16 bits like MAME's output.
- rtl/rshark/rshark_sound.sv:48 A long reset (every ROM download) therefore ends exactly with the board reset, so the Z80 starts together with the 68000 as in MAME (the sound program races the 68000 on the latch).
- rtl/rshark/rshark_sound.sv:194 MAME unmapped read value
- rtl/rshark/rshark_sprites.sv:4 Hardware form of MAME 0.289 dooyong_68k_state::draw_sprites (docs/VIDEO.md).
- rtl/rshark/rshark_sprites.sv:7 Later entries overwrite earlier ones, which reproduces MAME's "entry 255 drawn first, pri=31 blocks the rest" result (the colour 0/15 priority test is applied at output).
- rtl/rshark/rshark_sprites.sv:9 Pixels at x >= 512 are dropped (MAME clips, no wrap).
- rtl/rshark/rshark_tilemap.sv:4 Hardware form of MAME 0.289 rshark_rom_tilemap_device (docs/VIDEO.md), one engine shared by the four layers.
- rtl/rshark/rshark_video.sv:6 Output pixel: sprite {colour, pen} shown unless pen 15 or (colour 0/15 and the tile pixel has priority bit 1) - MAME prio_transpen with GFX_PMASK_4 | (colour 0/15 ?
- rtl/rshark/rshark_video.sv:24 control byte bit 0 (MAME flip_screen)
- rtl/rshark/rshark_video.sv:81 Flip screen (MAME tilemap set_flip_all + draw_sprites flip branch): display line y shows logical line 255 - y; see the read addresses below for x. The OSD flip is a further 180 degrees of that picture, so the two compose as an XOR.
- rtl/rshark/rshark_video.sv:137 Every displayed frame therefore uses one palette, as MAME renders it (docs/VIDEO.md).
- rtl/rshark/rshark_video.sv:177 flipped: tiles mirror around the visible centre (x -> 511 - x); MAME's flipped sprite formula sx = 498 - 16*w - sx lands them 2 dots further (x -> 513 - x) OSD flip mirrors the dot first (x -> 511 - x), then the game's flip applies to it: s
- rtl/rshark/rshark_video_timing.sv:4 MAME logical raster (dooyong.cpp dooyong_68k()): set_size(64*8, 32*8) = 512 x 256, visarea x 64..447, y 8..247 (384 x 240), 60 Hz.
- rtl/rshark/rshark_video_timing.sv:6 hcount/vcount are MAME's hpos/vpos (beam coordinates).
- rtl/rshark/rshark_video_timing.sv:13 Reset phase: MAME starts its screen at vblank begin (screen.cpp: m_vblank_start_time = 0), i.e. the beam is at line 248, dot 0 at time 0.
- rtl/rshark/rshark_video_timing.sv:14 The raster leaves reset at the same position so CPU time and interrupt lines keep MAME's phase (used to compare bus traces with MAME during development).
- README.md:18 Put the MAME ROM zips (MAME 0.289 sets) in **`/media/fat/games/mame/`**.
- README.md:25 | Game | MAME set | Year | Genre | Board | Status |
- README.md:35 | Game | MAME set | Year | Parent game | Status |
- README.md:61 Sound: YM2151 and OKI M6295, mixed with MAME's levels.
- README.md:76 MAME's `dooyong` driver (0.289) is the behavioural reference.
- README.md:80 The original PCB's video timing has never been measured; the core uses MAME's raster (15.36 kHz / 60.00 Hz).
Shares text with the MAME driver without saying so — 1