← All cores
crashrace (decoryah)
Cites MAME source — 54
- CrashRace.sv:5 Written for MiSTer from MAME 0.289's driver (src/mame/vsystem/crshrace.cpp, with vsystem_spr.cpp, k053936.cpp and the devices it uses).
- CrashRace.sv:145 keyboard: 1 / 2 start, 5 / 6 / 7 coin, 9 service, T tilt, F1 test (MAME's defaults; the OSD's Service Mode is the board's service DIP switch, which the game looks at when it starts, so it takes a Reset)
- CrashRace.sv:170 MAME's P1 (fff000), active low: 0 up, 1 down, 2 left, 3 right, 4 Accel, 5 Brake, 6 button 3 (the game does not use it), 7 unknown, 8 / 9 / 10 coins 1 / 2 / 3, 11 / 12 start 1 / 2, 13 test, 14 tilt, 15 service
- CrashRace.sv:177 the DIP switches (the MRA's <switches>, ioctl index 254): byte 0 DSW0 bits 7:0 (SW2), 1 DSW0 bits 15:8 (SW1), 2 DSW1 (SW3), 3 the region (DSW2 bits 11:8); MAME's defaults until they come.
- CrashRace.sv:297 the OSD's volume steps on MAME's own level
- CrashRace.sv:427 Orientation: the game is vertical (MAME's ROT270).
- rtl/crshrace_chars.sv:2 Lethal Crash Race's char layer (MAME's m_tilemap[1], "bg"), a line at a time into a line buffer: MAME 0.289's tilemap for one bitmap row (src/mame/vsystem/crshrace.cpp get_bgtile_info, src/emu/tilemap.cpp).
- rtl/crshrace_chars.sv:5 64 x 64 tiles of 8 x 8, scanned by rows, never scrolled: MAME's bitmap pixel (x, y) is the layer's pixel (x, y), so only the top left 40 x 28 tiles are ever seen (VRAM 1 holds 2 K words: rows 0..31).
- rtl/crshrace_core.sv:2 Lethal Crash Race (Video System, 1993; VSEC-24): the machine, written from MAME 0.289's src/mame/vsystem/crshrace.cpp.
- rtl/crshrace_core.sv:4 MC68000 at 16 MHz (fx68k; MAME: "16 MHz ???", the board has 32 and 24 MHz crystals); the sound board (rtl/crshrace_sound.sv: Z80, YM2610); the video (rtl/crshrace_video.sv: the 8 x 8 char layer, the K053936 layer, the VS9108 / VS9210 sprite
- rtl/crshrace_core.sv:8 The 68000's memory map (MAME's main_map; anything else reads 0, MAME's unmapped value, and ignores writes):
- rtl/crshrace_core.sv:16 IRQ 1 (autovectored) at every vblank, held until acknowledged (MAME's irq1_line_hold).
- rtl/crshrace_core.sv:18 Clocking and MAME's timeline (the owner's Aquarium core's scheme, unchanged): one 96 MHz clock.
- rtl/crshrace_core.sv:19 MAME's memory is instant and has no wait states; here the ROMs are read through a cache from the SDRAM (rtl/crshrace_cache.sv) and the video memories are copied at the vblank (a CPU write to an entry not yet copied waits for it).
- rtl/crshrace_core.sv:21 DTACK is always asserted at once; where the data is not there yet when the CPU would take it, or a write has to wait, the CPU's phases are held, and the phases it missed are given back right after, at one every 2 clocks, so its program stay
- rtl/crshrace_core.sv:42 MAME's input ports, as read (active low where MAME's are; DSW2's bit 15, the latch's pending flag, is the board's)
- rtl/crshrace_core.sv:64 one clock at each vblank while running (MAME's frame_done)
- rtl/crshrace_core.sv:67 ================================================================== the start MAME's screen begins at the start of a vblank at time 0 without its callbacks; its first vblank (the IRQ, the sprite buffers, frame_done 0) is a frame later.
- rtl/crshrace_core.sv:70 (The Aquarium core's measured lead of the core's 68000 over MAME's bus timing.)
- rtl/crshrace_core.sv:87 the sound board starts at MAME's time 0, START_EARLY clocks after the 68000
- rtl/crshrace_core.sv:146 A write is made as soon as AS is low, with its data and its byte lanes (wr_dsn), as MAME makes it at the start of the bus cycle.
- rtl/crshrace_core.sv:241 the latch's pending flag as the 68000 reads it: the board's. (MAME_SYNC, the benches': as MAME's 68000 sees it, its own write at once and the Z80's acknowledge only at the next vblank; MAME's soundlatch_pending_r makes the Z80 catch up firs
- rtl/crshrace_loader.sv:5 The image (mra/*.mra, tools/crshrace_rom.py): MAME 0.289's regions in MAME's byte order (the ROM_LOAD16_WORD_SWAP files are swapped back by the MRA, so a 16-bit word's high byte is the even byte), the same layout for every set: 0x000000 ma
- rtl/crshrace_loader.sv:20 The tiles are stored in 4 x 4 pixel blocks, so the K053936 layer (rtl/crshrace_roz.sv) reads a block with one 4-word burst whichever way the layer is turned: within a tile's 128 bytes, MAME's byte {row[3:0], word[1:0], byte} (row, the word
- rtl/crshrace_ram.sv:41 the bench's (a block RAM powers up 0, as MAME's memory)
- rtl/crshrace_roz.sv:2 Lethal Crash Race's K053936 layer (MAME's m_tilemap[0], "fg", drawn by k053936_device::zoom_draw), a line at a time into a line buffer: MAME 0.289's src/devices/video/k053936.cpp (its "simple" mode, the only one the game uses: it writes con
- rtl/crshrace_roz.sv:8 MAME's region is 4 MB and the ROMs fill 3: tiles from 0x6000 on are zero there (pen 0).
- rtl/crshrace_roz.sv:11 The walk (with the control words ctrl[0..6] as signed 16-bit values; set_offsets(-48, -21); set_wrap(1)): incyx = ctrl[2], incyy = ctrl[3] (times 256 with ctrl[6] bit 14), incxx = ctrl[4], incxy = ctrl[5] (times 256 with bit 6) cx(x, y) = 2
- rtl/crshrace_sound.sv:2 Lethal Crash Race's sound board: the Z80, the YM2610 and the 68000's sound latch, written from MAME 0.289's src/mame/vsystem/crshrace.cpp (with machine/gen_latch.cpp, sound/ymopn.cpp).
- rtl/crshrace_sound.sv:5 Z80 at 4 MHz (MAME: "4 MHz ???"): 0000-77ff ROM, 7800-7fff RAM, 8000-ffff a 32 KB bank of the 128 KB ROM (sh_bankswitch_w: the byte's bits 1:0).
- rtl/crshrace_sound.sv:13 The mix is MAME's: a stereo speaker, the YM2610's FM and ADPCM left and right at 1.0 each and its SSG at 0.75 to both.
- rtl/crshrace_sound.sv:17 Clocking (the owner's Aquarium core's scheme): the Z80 steps once per 24 clocks of 96 MHz from its start, as MAME's Z80 starts at time 0.
- rtl/crshrace_sound.sv:18 Its ROM is read through a cache from the SDRAM (rtl/crshrace_cache.sv); while a miss is filled its clock enable is held and the cycles it missed are given back right after at one step per 8 clocks, so the program stays on MAME's timeline; a
- rtl/crshrace_sound.sv:27 the sound board's (its start: MAME's time 0)
- rtl/crshrace_sound.sv:240 ------------------------------------------------------------------ the interrupts the NMI is the latch's pending flag, the IRQ the YM2610's line; either goes up on the Z80's own timeline (behind by the steps it still owes after a wait, it s
- rtl/crshrace_sound.sv:302 One of the YM2610's ADPCM ROMs (1 MB) in the SDRAM: the byte at `addr`, fetched again whenever `addr` changes (one word read); past the 1 MB the ROM reads 0 (MAME's region ends there).
- rtl/crshrace_sprites.sv:2 Lethal Crash Race's sprites, a line at a time into a line buffer: MAME 0.289's vsystem_spr_device::draw_sprites (the VS9108, src/mame/vsystem/vsystem_spr.cpp) with crshrace_state::tile_callback (the VS9210's tile table) for one bitmap row.
- rtl/crshrace_sprites.sv:5 Sprite RAM 0 (the display buffer: as it was at the vblank before the frame's, rtl/crshrace_video.sv), 4 K words: the list is its first 512 words, up to the first with bit 14 set (the end); an entry with bit 15 set is skipped, otherwise its
- rtl/crshrace_sprites.sv:15 Each block is drawn four times, at its place and 512 pixels to the left and / or up (MAME's wrap): here the block's x and y are taken modulo 512.
- rtl/crshrace_video.sv:2 Lethal Crash Race's video: the video memories and registers, their snapshot at the vertical blank, the raster, the three layers and MAME 0.289's mix of them (src/mame/vsystem/crshrace.cpp screen_update, vsystem_spr.cpp, src/devices/video/k0
- rtl/crshrace_video.sv:11 MAME draws the whole frame at the start of the vertical blank from the state of that instant, and then (its vblank callbacks) copies both sprite RAMs into their buffers (buffered_spriteram16_device): the sprites a frame shows are the RAMs a
- rtl/crshrace_video.sv:18 The raster: MAME's screen is 60 Hz, 512 x 256 with the visible area 320 x 224 at 0, 0 (no blanking times of the board are known: MAME: "TODO: PCB sports 32 MHz and 24 MHz XTALs"); the core draws it on a standard 15 kHz 240p raster of its ow
- rtl/crshrace_video.sv:22 The vblank begins at line 224 (vbl_ev): MAME's vblank, the 68000's IRQ 1.
- rtl/crshrace_video.sv:26 Flip (the OSD's Flip Screen; MAME does not flip the game, MACHINE_NO_COCKTAIL, and the board's flip is not known): the picture turned 180 degrees, MAME's picture dot for dot: line y is drawn from MAME's row 223 - y and read out from its end
- rtl/crshrace_video.sv:30 Each visible line is drawn during the line before it into ping-pong line buffers (a layer each; the sprites' with a written bit a pixel) and mixed as the beam runs, in MAME's order (screen_update, by gfxctrl & 0xfb): 0x00 the sprites, the c
- rtl/crshrace_video.sv:221 ================================================================== drawing the next line at the start of each line the next visible line is started (MAME's row; flipped, row 223 - line) into line buffer bank line[0]
- rtl/crshrace_video.sv:268 ================================================================== the dot sub 0: the line buffers' address (the dot); sub 1: their words, the mix (MAME's order), the palette's address; sub 2: the palette entry; sub 3: the colour.
- rtl/crshrace_video.sv:303 xGGGGGBBBBBRRRRR (MAME's xGBR_555: red bits 4:0, blue 9:5, green 14:10), pal5bit
- rtl/crshrace_video.sv:316 gfxctrl bit 2: the picture black (MAME's black_pen)
- README.md:4 Written from MAME 0.289's driver (`src/mame/vsystem/crshrace.cpp`, with `vsystem_spr.cpp`, `k053936.cpp` and the devices it uses), with MAME as the reference fo
- README.md:34 An 8-way joystick and two buttons per player, Start and Coin, named for what they do: **Accel** (MAME's button 1) and **Brake** (button 2).
- README.md:45 | DIP switches | MAME's: Demo Sounds, Free Play, Difficulty, Coin Slot, Coin A, Coin B, 2 to Start 1 to Continue, Reset on P.O.S.T. Error, Region |
- README.md:58 `rtl/` holds the machine (`crshrace_core.sv`: the 68000, its memory map and the start; `crshrace_video.sv`: the raster, the video memories' display copies taken
- README.md:61 Every ROM lives in the SDRAM; the CPUs read theirs through caches, and the 68000 and the Z80 are held while a miss fills and given back the cycles they missed a
Says it matches, follows or was checked against MAME — 1
- README.md:10 **Status.** Simulated with the game's real programs (`sim/run_sys.sh`) and compared with MAME 0.289: the power-on test, the attract mode (the Video System logo,
Shares text with the MAME driver without saying so — 1