← All cores
atarigx2 (decoryah)
Cites hardware references or measurements that MAME's driver also gives — 5
Notes where it differs from MAME — 1
- AtariGX2.sv:150 Moto Frenzy's sound watchdog (6DC8: every ~35 frames it sends 07 and needs the reply to the heartbeat 03, sent at the start of that interrupt, to be in by then) fails at that speed: the game resets the sound board every 6 s. Paced: the inte
Cites MAME source — 74
- AtariGX2.sv:2 Atari GX2 (MAME atari/atarigx2.cpp: Space Lords, Moto Frenzy) for MiSTer
- AtariGX2.sv:149 Full: TG68K unpaced, with the ROM cache ~1.7x MAME's 68EC020 in Moto Frenzy's VBLANK interrupt and ~2.5x in CPU-bound loops.
- AtariGX2.sv:153 Auto: Paced for Moto Frenzy (~80 % idle in MAME), Full for Space Lords (~90 % busy in MAME; its watchdog runs ms after the heartbeat).
- rtl/gx2_inputs.sv:1 Atari GX2 inputs: MAME 0.289 atarigx2.cpp's INPUT_PORTS (P1_P2, the ADC0809's A2D0..7) and the JSA's coins, from the MiSTer joysticks, analog sticks, paddle, spinner and mouse, with the OSD's choice of source per control.
- rtl/gx2_inputs.sv:4 Space Lords (game 0): two flight yokes (AD_STICK X/Y, 0x10..0xF0, centre 0x80); MAME's channels: A2D1 P1 Y, A2D4 P1 X, A2D2 P2 X, A2D3 P2 Y. Buttons: P1 Laser, Nuke, Throttle forward, Throttle reverse, Rear view, Start (Hyperspace); P2 Lase
- rtl/gx2_inputs.sv:8 MAME's sensitivity does not narrow the range (ioport.cpp: an absolute stick's value is divided by it before it is applied, the keys' clamp too): a stick and the keys both reach 0x00 and 0xFF; the keys move 10 * 50 % = 5 a frame.
- rtl/gx2_inputs.sv:13 Every analog axis is a signed position -127..127 (0 = centre) before it is scaled into the port's range: d-pad the axis moves while held and returns while released (MAME's keydelta per frame; OSD speed; on release it returns at the sam
- rtl/gx2_inputs.sv:43 steering range: 0 full (MAME), 1 75 %, 2 50 %
- rtl/gx2_inputs.sv:45 0 MAME, 1 slow, 2 fast, 3 instant
- rtl/gx2_inputs.sv:46 the d-pad axis when let go: 0 returns (MAME), 1 snaps to the centre, 2/3 stays
- rtl/gx2_inputs.sv:117 the d-pad's per-frame step: MAME's keydelta 10 at sensitivity 100 in Space Lords' 0x10..0xF0 port is 11 of 127; Moto Frenzy's handlebar at sensitivity 50 moves 5 of its 0x00..0xFF a frame, 5 of 127 at the full range
- rtl/gx2_inputs.sv:122 MAME
- rtl/gx2_inputs.sv:153 MAME's pedal keydelta 16 of 255: 8 of 127 a frame up while held, back down when released
- rtl/gx2_inputs.sv:218 steering: 0x80 - x * range (PORT_REVERSE), the full range reaching 0x00 / 0xFF as MAME's (x * 128 / 127, rounded); in three registered stages (the product, the offset, the clamp: one stage missed 85.9 MHz by 0.23 ns)
- rtl/gx2_inputs.sv:227 full (MAME)
- rtl/gx2_inputs.sv:250 MAME's bits, active low
- rtl/gx2_jsa.sv:1 Atari JSA IIIs sound board, from MAME 0.289 atarijsa.cpp (atari_jsa_iii_device / atari_jsa_iiis_device) and atariscom.cpp (the sound-comm latches).
- rtl/gx2_jsa.sv:5 6502 (T65) 1.79 MHz, 8 KB RAM, 64 KB ROM (block RAM, loaded with the image), 4 KB bank at 3000 (the first 16 KB) YM2151 (jt51) 3.58 MHz, its IRQ and a 249.7 Hz timer on the 6502's IRQ; the main CPU's command on its NMI 2 x OKI6295 (jt6295)
- rtl/gx2_jsa.sv:13 Outputs as MAME's routes: left = YM left * 0.60 + OKI1 * 0.75, right = YM right * 0.60 + OKI2 * 0.75, with the gains of update_all_volumes(): YM * MIX[3:1] / 7, OKI * (MIX[0] ?
- rtl/gx2_jsa.sv:103 NMI: MAME's 6502 takes one for every command written after the last was read (atari_sound_comm asserts the line on each write, a pending NMI on every assert after a clear).
- rtl/gx2_jsa.sv:271 ------------------------------------------------------------------ the 6502's data input RDIO: 01 coin R (COIN2), 02 coin L (COIN1), 04 tilt, 08 service, 10/80 self test (MAME's double inversion leaves them 0 either way), 20 output buffer f
- rtl/gx2_jsa.sv:303 OKI: jt6295's 14-bit sum, << 4 for the YM's 16-bit scale (a full-scale 12-bit voice = 1.0 in MAME's stream)
- rtl/gx2_main.sv:1 Atari GX2 main board: the 68EC020 (TG68K in 68020 mode), its memory map and I/O, from MAME 0.289 atarigx2.cpp (main_map, latch_w, mo_command_w, the input ports, init_spclords / init_motofren).
- rtl/gx2_main.sv:15 The board's 32-bit bus: TG68K splits a long access into two 16-bit cycles; MAME sees one.
- rtl/gx2_main.sv:15 The XGA and POLYLSB windows answer differently to a long than to two words (atarixga.cpp), so there the two halves are joined: the first half of a long (TG68K's longword) is held, and the access goes to gx2_xga as one 32-bit cycle.
- rtl/gx2_main.sv:19 Every RAM is block RAM except the program ROM; all are cleared (MAME's power-on zeros) while cpu_reset is held after a reset, which the top level keeps up until the clear is done.
- rtl/gx2_main.sv:67 active low, MAME's P1_P2
- rtl/gx2_main.sv:204 ------------------------------------------------------------------ ADC0809 (adc0808.cpp) a read returns the result register and starts a conversion of channel A3..A1: one ADC clock to READY, one more to RUNNING (EOC low, SAR sampled), 64 to
- rtl/gx2_main.sv:256 latch: upper byte (D13-D11 MO control), lower byte (D4 /SNDRES); MAME's 6502 runs until the latch is written
- rtl/gx2_main.sv:274 MAME's unmapped value
- rtl/gx2_video.sv:3 Reference: MAME 0.289 atarigx2_v.cpp (get_alpha_tile_info, get_playfield_tile_info, atarigx2_playfield_scan, scanline_update, screen_update), atarigx2.cpp (pflayout / pftoplayout, blend_gfx, IRGB_1555 palette of 2048).
- rtl/gx2_video.sv:7 GX2 drops the GT colour RAM / MRAM mixer for a plain 2048-entry IRGB_1555 palette and MAME's three-layer rule: playfield (priority (colour bank >> 2) & 7 for the whole line), then an object pixel wherever it is non-zero and its priority >=
- rtl/gx2_video.sv:25 MAME m_playfield_base: Space Lords 0x000, Moto Frenzy 0x400
- rtl/gx2_video.sv:65 Video timing: 456 x 262 at 7.159 MHz, visible 336 x 240 (MAME set_raw)
- rtl/gx2_video.sv:229 SDRAM word bases (the MRA image layout, tools/gx2_rom.py): the three playfield thirds (planes 0-1, 2-3, 4-5) at a fixed 0x80000-byte stride (a smaller set is mirrored to fill it: MAME's code % elements) and the alphanumerics
- rtl/gx2_video.sv:423 colour = (pf_base >> 5) + ((bank << 3) & 0x18) + tile colour; pen = colour * 32 + pix6 (granularity 32: a 6-bit pen overlaps into the next colour, as MAME's)
- rtl/gx2_video.sv:540 stage 3: the palette's port B reads pal2_addr_c (registered, valid the next clock) stage 4: IRGB_1555 -> 8 bits a channel, MAME's IRRRRRGGGGGBBBBB_decoder: pal6bit({5 bits, I})
- rtl/gx2_xga.sv:1 Atari GX2 XGA protection FPGAs, from MAME 0.289 atarixga.cpp (Morten Shearman Kirkegaard, Samuel Neves, Peter Wilhelmsen): 136094-0072 (Moto Frenzy) sel95 = 0 136095-0072 (Space Lords) sel95 = 1, plus the POLYLSB registers at C80F00-C80FF
- rtl/gx2_xga.sv:6 The port is the 68EC020's 32-bit bus as MAME sees it: one access per long word with its byte lanes (ACCESSING_BITS_16_31 = be[3] | be[2], ACCESSING_BITS_0_15 = be[1] | be[0]).
- rtl/gx2_xga.sv:8 MAME's log of both games (tools/capture.py --prot): the XGA window only ever sees 16-bit accesses; POLYLSB byte writes, byte reads and (the boot test) long reads.
- rtl/gx2_xga.sv:13 The result is computed when the ciphertext is written (MAME: on the read for 136094; the key comes from the same address either way) and busy holds a read until it is ready (~130 clocks at most).
- rtl/gx2_xga.sv:138 key RAM: MAME's 16-bit m_ram keeps only its low byte in use (decipher takes a uint8_t key).
- rtl/gx2_xga.sv:157 POLYLSB registers (136095): 64 x 32, MAME m_update
- rtl/gx2_xga.sv:189 key offsets (atarixga.cpp)
- rtl/gx2_xga.sv:319 polylsb_write keeps the whole data bus: the lanes not written are 0 (MAME's data for a narrower write)
- rtl/rle_objects.sv:1 Reference: MAME atarirle.cpp, modesc masks in MAME atarigt.cpp.
- rtl/rle_objects.sv:2 rom_words is the object ROM's length in 16-bit words (MAME's m_rombase.length()): an input on GX2, where it differs per game (Space Lords 0x300000, Moto Frenzy 0x380000); ROM_WORDS is its upper bound.
- rtl/rle_objects.sv:5 Atari GX2 changes (atarigx2.cpp modesc_0x200 / modesc_0x400): the colour mask and the base palette entry come in as colmask / palbase (GT: 0x0ff0 / 0x000; Moto Frenzy 0x01f0 / 0x200; Space Lords 0x03f0 / 0x400), and the VRAM-target bit (obj
- rtl/rle_objects.sv:483 vblank frame-aligns the accumulator (mirrors MAME's m_partial_scanline reset at vblank); mogo consumes it.
- rtl/rle_objects.sv:542 word 1 & colmask: the colour already shifted left by 4, as MAME's (color << 4)
- rtl/rle_objects.sv:607 clear the checksum BRAM first (MAME memsets m_checksums before accumulating; real BRAM power-on content is likewise undefined)
- rtl/rle_objects.sv:915 draw command: whole-buffer erase (simplification: MAME does a partial erase from the current scanline; a full clear is simpler and cheap enough here), then sort_and_render
- rtl/rle_objects.sv:1063 MAME: palettebase = m_palettebase + ((color << 4) | (priority << PRIORITY_SHIFT))
- rtl/rle_objects.sv:1069 MAME 0.289 adds the object's pen to the unmasked base (draw_rle: m_palettebase + color); the Primal Rage core masks the low colour bits by the object's bpp, which 0.289 does not
- README.md:3 MAME's `atari/atarigx2.cpp` driver, Atari Games' 1992 GX2 board (68EC020 at 14.318 MHz; JSA IIIs sound board: 6502 at 1.79 MHz, YM2151, two OKI6295; a 128 x 64
- README.md:13 Road Riot's Revenge (`rrreveng`, the third GX2 game) does not run in MAME 0.289 (its protection is not emulated) and is not included.
- README.md:14 The cabinets' network boards (DSPCOM / Clarn) are not emulated in MAME either: one cabinet only.
- README.md:16 Written for MiSTer from MAME 0.289's driver on the Primal Rage core (MiSTer-devel/Arcade-PrimalRage_MiSTer, Atari GT: the same board family; its 68EC020 bus, RL
- README.md:29 These pictures come from MAME 0.289 (`tools/capture.py`): the title screens from attract mode, the others from a game started with coins and Start (Space Lords
- README.md:34 **Tested on a real MiSTer** by the repository owner, on a CRT (the analog output) and on a RetroTINK 4K (direct video): both games play with MAME's picture and
- README.md:38 20261101 adds one fix checked on the bench: Moto Frenzy's motion objects are drawn from the object RAM as it was when the draw began, as in MAME (before, a few
- README.md:42 What was checked besides, in simulation and in the Quartus tool flow, against MAME 0.289 (details and numbers in `docs/status.md`):
- README.md:49 The sound board alone replaying MAME's logged commands of a 45 s Moto Frenzy session: no command lost, the envelope against MAME's recording correlating 0.94 /
- README.md:53 Known differences: in Moto Frenzy's race the YM2151's engine sound is ~8 dB quieter against the samples than in MAME.
- README.md:53 Road Riot's Revenge and the cabinets' network link are not in MAME and not here.
- README.md:103 | Steering Range (Moto Frenzy) | Full (MAME: the handlebars' whole travel), 75 %, 50 % |
- README.md:106 | D-Pad Release | Return to Centre (MAME: at the D-Pad Speed), Snap to Centre (at once), Hold |
- README.md:110 Moto Frenzy's race select (STEER TO SELECT YOUR RACE) keeps scrolling while the handlebars are off centre, even a little (in MAME too): with MAME's d-pad behavi
- README.md:120 The core's 68EC020 (TG68K with a ROM cache) runs 1.7 to 2.5 times as fast as MAME's. Moto Frenzy's sound watchdog needs it no faster than the board: at Full it
- README.md:135 python tools/gx2_rom.py image spclords work/spclords.rom sim/run.sh work/spclords.rom 0 300,600,900 work/sim/sl1 +pc # the whole machine, frames as PPM s
- README.md:143 the same in MAME
- README.md:145 `tools/lua/gx2_sndlog.lua` logs MAME's sound comm for `sim/run_jsa.sh`; `tools/cmp_audio.py` compares the bench's WAV with MAME's `-wavwrite`.
- README.md:147 `tools/lua/gx2_capture.lua` (MAME 0.289) saves MAME's frames and RAMs for the comparison.
- README.md:157 **MAME** (the atarigx2, atarirle, atarijsa, atarixga drivers and devices by Aaron Giles, Morten Shearman Kirkegaard, Samuel Neves, Peter Wilhelmsen and others;
Says it matches, follows or was checked against MAME — 3
- rtl/rle_objects.sv:1044 width==0 or height==0 means prescan found an invalid data offset for this object (matches MAME bailing on info.data == nullptr in draw_rle, before it ever divides by scaled_width/height)
- README.md:45 The ROM path: the nine sets' images assembled from the MRAs are byte-identical to those built from MAME's ROM tables.
- README.md:46 The whole machine from reset: Space Lords' boot colour test pixel-identical to MAME's; both attract modes through MAME's sequence (Space Lords' tutorial, Moto F
Says it was translated, ported or taken from MAME — 1
- rtl/rle_objects.sv:529 the object RAM as the draw began, copied by the same pass: MAME renders at once on /MOGO, but this draw runs for up to ~190 lines, and Moto Frenzy's race loop writes the next frame's objects meanwhile (lines 4-160 of the draw's frame); read
Shares text with the MAME driver without saying so — 2