← All cores
atarisys2
Cites hardware documentation that MAME's driver does not — 28
- atarisys2.sv:125 paperboy TM-275 Table 1-3 (unchanged, and its labels predate this work) 720 TM-294 Table 1-3 + Figure 3-22, the game's own game options screen ssprint TM-290 Table 3-2 + Figure 3-20, the game's own switch settings screen TM-290 kee
- atarisys2.sv:1031 Loaded into the sound-bus eeprom[] so the game has valid coinage -- otherwise it powers up blank and "INSERT COIN" never credits (the coin input path itself is correct; verified vs SP-275 sheet 9A).
- atarisys2.sv:1455 SP-275 sheet 9A has it as the third/aux coin-door input; MAME called it IPT_COIN3 until commit 76f3936 reclassified it as IPT_SERVICE1, which is what the cabinet actually wires there.
- atarisys2.sv:1472 Physical option DIP switches (SP-275 sheet 9B, TM-275 tables 1-2/1-3), exposed in the OSD "Game Options" page and fed to the two POKEYs' pot lines (ALLPOT).
- atarisys2.sv:1690 SP-308 is the authority, and it is unambiguous: sheet 1B "Control Panel" S5A/S5B = FIRE (J24 pin 7, orange) S3A/S3B = SIREN (J24 pin 8, yellow) sheet 6A "Control Panel Inputs" SW5 -> LS244 5P in 11 -> out 9 = DAL1 (IN0 bit 1) SW3 -> LS
- atarisys2.sv:2097 LEVELS (schematic-derived rebalance): SP-275 sheet 9B "Audio Output Drivers" sums each chip into the TDA2002 through its own input resistor -- YM (YAM) R141/R144=47K, POKEY (PAUD) R139/R142=47K, TMS (TIAUD) R140/R143=68K -- so the board's i
- atarisys2.sv:2113 TMS5220 speech (tms_snd, signed 14-bit) is mono on real hardware (a single "TIAUD" net feeding the shared resistor mixer, sheet 9A) -- summed into BOTH channels equally.
- atarisys2.sv:2119 Two consequences: (1) The TMS `<<2` becomes the *unity* (loudest) speech level; the game runs speech at TMS bits 5-7 = 000 (gain 0.5, verified in MAME: 0x187a only ever = 0x1f/0x1e), so typical speech now plays at <<2 * 0.5 = <<1 -- i.e. 6
- atarisys2.sv:2132 Base per-chip terms (schematic-derived, see LEVELS above): YM at 1/2 FS and POKEY <<9 (~1/2 FS) => ~1:1 (SP-275 sheet 9B equal 47K sums); TMS <<2 (mono -> summed into both channels equally; real speech is well under its 8191 FS, so <<2 is a
- atarisys2.sv:2135 Schematic-accurate chain (derived from SP-275 sheets 9A/9B).
- atarisys2.sv:2144 Analog audio chain -- SP-275 sheets 9A/9B.
- atarisys2.sv:2217 See the SP-308 note above.
- rtl/adc/adc0809.sv:19 The conversion time is settled: the default 64 clocks on the exact 625 kHz enable = 102.4 us sits inside the data-sheet 90-116 us window, and the handlebar, calibration and TM-275 control diagnostics all behave correctly on hardware at this
- rtl/main/sys2_analog_map.sv:40 SP-290 sheet 8B puts every ADC input, after its 100 R series resistor (R13-R20), on a node with RN2 10k to +5 V, RN1 10k to GND and 0.1 uF to GND.
- rtl/main/sys2_main_bus.sv:616 See SP-275 sheet 6B.
- rtl/mem/sys2_sdram.sv:293 Measured on the fitted netlist, that slot was open at BOTH ends of the PVT range: the data reaches this flop at 35.003..42.192 ns while the 31.250 edge reaches it at 39.217..40.679 -- the unwanted edge sits INSIDE the arrival window, so whi
- rtl/sys2_video_timing.sv:5 Sources: SP-275 sheet 11A and MAME atarisy2.cpp commit d066f16.
- rtl/video/sys2_mob_decode.sv:8 The field masks are the MAME `atari_motion_objects_config` s_mob_config for atarisy2 (atarisy2_v.cpp @ d066f16), cross-checked against the schematics.
- rtl/video/sys2_mob_walker.sv:11 This follows the SCHEMATIC, not MAME.
- rtl/video/sys2_mob_walker.sv:43 This is the real hardware budget, not MAME's. The linked-list address advances on a strobe generated once every 16 of the 640 horizontal clocks and the pointer resets to the head each line, so the board visits exactly 640/16 = 40 entries pe
- rtl/video/sys2_mob_walker.sv:239 The 82S131 at 5P (confirmed from schematic sheet 12A) takes only MOPIC[2:0] as input and its three outputs supply MO graphics ROM address [8:6]; the higher MOPIC bits bypass the PROM entirely into the ROM address latches.
- rtl/video/sys2_palette.sv:7 Each channel is (colormap[nibble] * intensity[I]) >> 4, using the resistor/intensity ladders from schematic sheets SP16A-SP17A (integer reference values from MAME's atarisy2_v.cpp).
- rtl/video/sys2_priority.sv:6 Paperboy per-pixel layer priority (SP-275 sheet 15B; confirmed against MAME's atarisy2_v.cpp).
- rtl/video/sys2_priority.sv:11 The hardware rule (SP-275 sheet 15B): 1.
- rtl/video/sys2_video_render.sv:26 Scroll value fields per SP-275 sheet 15A: X = xscroll[15:6] (pixels, 0-1023) + bank0 = xscroll[3:0], effective on the following scanline after the CPU write.
- rtl/video/sys2_video_render.sv:344 Final per-pixel priority (SP-275 sheet 15B): the motion object competes with the playfield using the carried category, then the alpha layer is placed on top.
- README.md:178 **Native raster.** 640 × 416 total, 512 × 384 visible, 16 MHz pixel clock, ~60.096 Hz, with the blanking, sync, 32V and VBLANK edges transcribed off SP-275 shee
- README.md:182 **Analog audio chain.** The board filters **per chip, not on the sum** — SP-275 sheets 9A/9B give each of the YM, POKEY and TMS paths its own preamp pole, inter
Says it was checked on “real hardware” — 6
- atarisys2.sv:1648 positive Y is DOWN on the pad -- confirmed on hardware
- rtl/clocks/sys2_clocks.sv:32 T-11 headroom caveat: pinning the T-11 to EXACTLY 10 MHz drops it below the prior +6.7 % (10.67 MHz) rate, which had "masked a new-objects-arrive- late symptom." That symptom (graphic pop-in of houses/objects) was later root-caused to the s
- rtl/main/sys2_analog_map.sv:26 This block used to be a two-part VERIFY; both parts were answered by research and the whole path was then confirmed on hardware.
- rtl/main/sys2_analog_map.sv:49 Confirmed on hardware via APB's Pedal Test, which prints lo/hi/range/raw/ normalized rather than the Sprints' bare lo/value/hi: raw moves 00 -> 3F and normalized 00 -> FF as the pedal travels.
- rtl/main/sys2_main_bus.sv:598 Left in the mailbox, a stale byte becomes data-byte-1 of the next readout (cmd 0x0B high-score table) and shifts the whole 180-byte transfer by one -> the T-11's terminator check reads a data byte ('E'=0x45) instead of 0x55 -> $01C0=04 -> $
- rtl/mem/sys2_sprite_byte_fifo.sv:45 DEPTH=16 / margin 4 is silicon-validated: on hardware the full inverted sum of the original 256 KiB sprite image matched, so the FIFO delivered every byte to the writer with no overflow.
Notes where it differs from MAME — 1
- atarisys2.sv:1814 Rate conversion (deflection -> turn rate) lives in sys2_analog_spin; see its header for why a springing thumbstick cannot map one-to-one onto a continuous-rotation encoder, and for the deliberate divergence from MAME's angle mapping on 720.
Cites MAME source — 93
- atarisys2.sv:113 MAME only fills in csprint's 0x80 bit and leaves bits 5:0 inheriting Paperboy's Lives/Bonus Life -- impossible for a racing game.
- atarisys2.sv:121 MAME uses generic `DEF_STR` stand-ins where a game has no matching enum -- 720's "Bonus Life" is really first bonus ticket at and its "Difficulty" is timer for STREET; APB's "Max Continues" is Add-A-Coin Control.
- atarisys2.sv:136 ssprint has NO switch-1 option; csprint's Auto High Score Reset is the one place the two Sprints genuinely differ, and MAME has that right.
- atarisys2.sv:139 However, refer to the Report Options screen in self-test to be sure" -- the manual hedges, so MAME's "Attract Lights" is kept rather than dropping the option.
- atarisys2.sv:141 APB's Add-A-Coin maximum reads "Unlimited" on the manual's top setting; MAME calls it 199, which is presumably the internal counter cap.
- atarisys2.sv:172 It was H0 ("every game but Paperboy") until 720's stick became an ANGLE (sys2_stick_angle): from then on sensitivity does nothing on 720, and the deadzone is shadowed by 720's fixed +/-32 centre window (MAME's) at every setting but Largest.
- atarisys2.sv:178 720 keeps MAME's fixed window rather than taking this deadzone: a springing stick passes through small, noisy-angle deflections on its way back to centre, and a window much under 32 would let the skater flick to a random facing on release.
- atarisys2.sv:504 The raster is the same 512x384 as every other game; it is the MONITOR that is turned, which is why MAME renders APB 384x512 and why its self-test screen only matches ours after a rotation.
- atarisys2.sv:506 **The direction is measured, not assumed: rotated CCW our frame is 0 px against MAME's, rotated CW it is 2432 px.**
- atarisys2.sv:557 CCW, measured against MAME rather than guessed (see above).
- atarisys2.sv:1266 The board's tile ROM decodes only as many address lines as it has, so an over-range code wraps -- MAME writes that as `rawcode % gfx->elements()`.
- atarisys2.sv:1270 elements = HALF/16, i.e. MAME's tiles region / 32.
- atarisys2.sv:1411 joystick_0[4]=Throw R [5]=Throw L [6]=Coin [7]=Service Credit (J1 order in CONF_STR; the release MRA <buttons> MUST list them in the SAME order -- an MRA name list overrides the OSD labels, and a mismatch silently drives the wrong core b
- atarisys2.sv:1455 SP-275 sheet 9A has it as the third/aux coin-door input; MAME called it IPT_COIN3 until commit 76f3936 reclassified it as IPT_SERVICE1, which is what the cabinet actually wires there.
- atarisys2.sv:1498 MAME's ioport `defvalue` is NOT a transcription of those arrows -- it says 00 for paperboy DSW0 and 0x55 for 720 DSW1, and BOTH disagree with the manuals.
- atarisys2.sv:1499 Do not re-derive this from MAME.
- atarisys2.sv:1527 DSW1 is NOT game-independent -- see PB_DIP_MENU for the sourcing and the csprint deviation from MAME.
- atarisys2.sv:1690 SP-308 is the authority, and it is unambiguous: sheet 1B "Control Panel" S5A/S5B = FIRE (J24 pin 7, orange) S3A/S3B = SIREN (J24 pin 8, yellow) sheet 6A "Control Panel Inputs" SW5 -> LS244 5P in 11 -> out 9 = DAL1 (IN0 bit 1) SW3 -> LS
- atarisys2.sv:1698 Neither MAME nor the TM can tell you this.
- atarisys2.sv:1768 Rather than writing spinner deltas into the counter -- which is what MAME does, and which would bypass the 156 kHz sample rate, the 2x decode and the resolution bit -- each channel gets a `sys2_quad_gen` that emits REAL quadrature edges for
- atarisys2.sv:1774 Channel map, from each game's MAME PORT_MODIFY("LETAn"):
- atarisys2.sv:1788 That module is a POSITION model: all four centre counts fall at the top (edges at positions 142, 143, 2 and 3 -- MAME's Fake Spinner pair, centred on 0), and it owns the shaft position 720's stick-angle mode steers against.
- atarisys2.sv:1921 sys2_stick_angle is MAME's Fake Joystick mode for 720, turned into rotate-count deltas so the real quadrature path still carries them.
- atarisys2.sv:1923 The rate path (ana_d0) is now unused on 720, and both steering-feel options are hidden there (PB_STEER_MENU, h5); its deadzone is pinned to the default, which only decides when the stick takes over from the D-pad -- the angle's own centre w
- atarisys2.sv:2117 sys2_sound_bus decodes 0x187a into three Q0.8 gains (mix_gain_ym/pk/tms, 256 = unity) via the MAME atarisy2 mixer_w resistor model; each chip's base term below is scaled by its gain.
- rtl/adc/adc0809.sv:18 Source: National ADC0808/ADC0809 data sheet (8 clocks/bit, 64-clock nominal conversion at f_CLK); MAME d066f16 adc0808_device functional model.
- rtl/main/sys2_analog_map.sv:14 Channel assignment, from each game's MAME PORT_MODIFY("ADCn"):
- rtl/main/sys2_analog_map.sv:31 MAME declares the Sprint/APB pedals `PORT_MINMAX(0x00,0x3f) ...
- rtl/main/sys2_analog_map.sv:35 PORT_INVERT IS a bitwise `~` of the accumulated value -- `src/emu/ioport.h` comments it "positional control bits are active low" and `ioport.cpp` applies a plain `value = ~value`.
- rtl/main/sys2_analog_map.sv:45 So the span is travel, but MAME's 0xFF rest is a value a real board cannot produce.
- rtl/main/sys2_analog_map.sv:46 That is not a play problem (see the residual below); 0xFF stays because it is MAME's figure.
- rtl/main/sys2_analog_map.sv:60 TM-290 Fig 3-9 prints a REAL Super Sprint cabinet's Pedal Test: rest ~0x67, pressed ~0x96 -- mid-scale, ~0x2F of travel, and INCREASING with press, i.e. opposite in direction and offset to the MAME-derived 0xff -> 0xc0 here.
- rtl/main/sys2_main_bus.sv:105 IN0 is not the only such port -- MAME's ssprint also does PORT_MODIFY("IN1"), which ROTATES the coin bits (paperboy 0x20/0x40/0x80 = COIN3/COIN1/COIN2; ssprint = COIN1/COIN2/COIN3).
- rtl/main/sys2_main_bus.sv:149 MAME 0.288 bankselect_w, exactly: bank = bitswap(page ^ 3, 5,4,1,0,3,2) -- the XOR comes FIRST, then the low bit-pairs swap.
- rtl/main/sys2_main_bus.sv:160 ssprint's region mirrors only pairwise (2=4, 3=5, ...), and bank^0xC crosses the pair: without the XOR its map-source read (bankselect 0x1000, MAME bank 13, region 0x2A000 = track data) served region 0x12000 = a sea of 0x0F0F -- which the d
- rtl/main/sys2_main_bus.sv:395 Derived from MAME 0.288 atarisy2.cpp INPUT_PORTS_START(paperboy) plus each game's PORT_MODIFY("IN0"):
- rtl/main/sys2_main_bus.sv:533 Per MAME d066f16 and the SP6A transcription, each latch samples its own enable bit at the set event; delivery to the T-11 is ungated, so clearing an enable bit never clears an already-pending latch.
- rtl/main/sys2_main_bus.sv:578 ssprint's boot checks fast: it found nothing, touched sound_reset (0x15A0 -- the failure branch MAME's IO-read trace never takes), and never started attract.
- rtl/rom/sys2_char_rom.sv:35 16 KiB: Paperboy populates only the first 8 KiB (512 chars) and the rest is 0xff fill, but 720/ssprint/csprint/apb all ship 0x4000 and MAME masks the alpha code to 10 bits (`code = data & 0x3ff`) for every game in the driver.
- rtl/rom/sys2_maincpu_rom.sv:9 The MAME maincpu region is a sparse 0x90000-byte logical image populated only in 0x8000-byte windows selected by the 0x8000-granular index addr[19:15] -- Paperboy uses {1, 2, 6, 10, 14}, the family union is {1, 2, 3, 6, 10, 11, 14, 15}.
- rtl/rom/sys2_maincpu_rom.sv:121 MAME's ASSEMBLED region replicates each banked ROM across the region (ROM_RELOAD): paperboy's units mirror 4-way (2=3=4=5, 6=7=8=9, 10=11=12=13, 14=15=16=17), the Sprints' pairwise (2=4, 3=5, 10=12, 11=13, 14=16, 15=17).
- rtl/rom/sys2_rom_loader.sv:6 The MiSTer MRA emits the six MAME logical regions as one ordered index-0 byte stream (see rtl/rom/sys2_rom_layout.vh); index 1 carries the four-byte game descriptor.
- rtl/rom/sys2_sprite_rom_arb.sv:16 The MO parameter field is 14 bits ((word0&7)<<11 | (word1&0x7ff)) but NO region here can be indexed by 14 -- masking to 11 or 13 is MAME's `tile_data::set()` wrap (rawcode % gfx->elements()), the same rule the playfield already follows.
- rtl/rom/sys2_sprite_rom_arb.sv:159 MAME's code % elements, expressed as the mask it actually is.
- rtl/slapstic/sys2_slapstic.sv:20 Reference cores are weighed rather than trusted, and that is a second copy of MAME rather than independent evidence: the type-105 column is the one with hardware behind it, and simulation proves this module reproduces the proven 105 impleme
- rtl/slapstic/sys2_slapstic.sv:23 The other four columns rest on MAME alone.
- rtl/slapstic/sys2_slapstic.sv:129 On System 2 the slapstic is configured at 0x8000-0x81FF -- MAME gives all five games `set_range(m_maincpu, AS_PROGRAM, 0100000, 0100777, 0)`, octal.
- rtl/slapstic/sys2_slapstic.sv:138 For chips 103-110 -- which is all five of ours -- `active_103_110` builds alt1 with test_any, and MAME says why in its own section header: "Active state, 103-110, has direct, alt and bitwise, and alt can be done ANYWHERE".
- rtl/slapstic/sys2_slapstic.sv:144 Verified exhaustively over all 65536 addresses for all five types: this pairing reproduces MAME's matcher set exactly, matcher for matcher.
- rtl/slapstic/sys2_slapstic.sv:148 Reading MAME's `checker::test_in` and generalising it to every matcher is the natural mistake, but the call sites are four lines of C++ that say `test_any` in plain sight, under a comment that states the rule in English.
- rtl/slapstic/sys2_slapstic.sv:154 MAME's `checker::test_any`: the matcher's own mask and value ONLY, with no window folded in, so it fires anywhere in the 64K space.
- rtl/sys2_video_timing.sv:5 Sources: SP-275 sheet 11A and MAME atarisy2.cpp commit d066f16.
- rtl/t11/t11_core.sv:5 Behavioral sources: DEC DCT11-AA User's Guide and MAME t11 at d066f16.
- rtl/video/sys2_mob_decode.sv:8 The field masks are the MAME `atari_motion_objects_config` s_mob_config for atarisy2 (atarisy2_v.cpp @ d066f16), cross-checked against the schematics.
- rtl/video/sys2_mob_vscan.sv:8 This is the subtle, MAME-derived coordinate math, locked into a tested module so the sprite layer cannot repeat the playfield colour bug's "shapes fine, placement wrong" class of error.
- rtl/video/sys2_mob_vscan.sv:12 From MAME atarimo.cpp render_object (atarisy2: m_xoffset=m_xscroll=m_yscroll=0, no vflip, no width; motion objects are screen-absolute): ypos = -Y_field; ypos -= height << 4; // height in 16px tiles ypos &= 0x1ff; // bi
- rtl/video/sys2_mob_walker.sv:6 Paperboy motion-object linked-list walker (MAME atarimo.cpp build_active_list / render_object @ d066f16).
- rtl/video/sys2_mob_walker.sv:15 MAME does two things the PCB does not: it sets maxperline = 0 (effectively unlimited) and it keeps a visited[] bitmap and stops the moment a link repeats.
- rtl/video/sys2_mob_walker.sv:17 Consequences of the real behaviour: a terminal self-linked object is re-processed until the 40 slots expire (harmless when it re-renders identical pixels), and a short CYCLIC list of overlapping visible objects can end with a different fina
- rtl/video/sys2_mob_walker.sv:24 Objects are composited in walk order with later writes overwriting earlier opaque pixels -- MAME draws the active list front-to-back into one bitmap, so the last list entry covering a pixel wins.
- rtl/video/sys2_mob_walker.sv:28 render_object coordinate order (verbatim from MAME, atarisy2 xoffset/scroll/ nextneighbor all 0): xpos = X_field; (next_xpos hold inert); if neighbor xpos = last_xpos + 16; last_xpos = xpos (pre-fold); then xpos &= 0x3ff and if xpos >= 512
- rtl/video/sys2_mob_walker.sv:32 last_xpos is an 11-bit register here (MAME uses an unbounded int); they differ only for a neighbour chain whose raw xpos exceeds 2047, which does not occur in Paperboy.
- rtl/video/sys2_mob_walker.sv:55 MAME uses maxperline = 0 (unlimited) and we previously followed it at 256, so this is a DELIBERATE divergence from our own oracle.
- rtl/video/sys2_mob_walker.sv:56 Override to 256 to reproduce MAME when comparing against MAME rather than against the board.
- rtl/video/sys2_mob_walker.sv:136 rawx is 11-bit; the neighbor add wraps mod 2048 (the documented finite-width deviation from MAME's unbounded int, immaterial for Paperboy's lists).
- rtl/video/sys2_mob_walker.sv:230 last_xpos updates for every object (MAME: unconditional, pre-fold).
- rtl/video/sys2_mob_walker.sv:244 MAME increments the combined integer code and DOES carry, so this is a deliberate divergence from our own oracle -- and one no MAME-comparison can detect, because MAME shares the error.
- rtl/video/sys2_palette.sv:7 Each channel is (colormap[nibble] * intensity[I]) >> 4, using the resistor/intensity ladders from schematic sheets SP16A-SP17A (integer reference values from MAME's atarisy2_v.cpp).
- rtl/video/sys2_palette.sv:44 Colour steps -- the one palette value still resting on MAME rather than the schematic.
- rtl/video/sys2_palette.sv:46 MAME's `color_table` is a bare hand-written array with no derivation comment, unlike its `intensity_table` which is built from named conductances (round 4 proved those ARE the branch conductances normalised to 256).
- rtl/video/sys2_palette.sv:53 We ship MAME's table anyway, deliberately.
- rtl/video/sys2_palette.sv:53 MAME is the only oracle we can actually validate against -- the frame comparison is pixel-exact against it on three scenes -- so swapping in a table validated by nothing would break that comparison and trade a known-good approximation for a
- rtl/video/sys2_palette.sv:61 Expect the MAME frame comparison to fail when it is defined -- that is correct and expected, because that check measures agreement with MAME, which is exactly what this option changes.
- rtl/video/sys2_palette.sv:63 Default (undefined) = MAME: 0,3,4,5,6,7,8,9,10,11,12,13,14,14,15,15 PALETTE_SPICE_COLORMAP 0,6,7,7,8,9,9,10,10,11,12,12,13,14,14,15
- rtl/video/sys2_pen4.sv:6 Shared 4-pixel 4bpp pen kernel for the Atari System II planar packing (MAME RGN_FRAC(1,2): planeoffset { 0, 4, RGN_FRAC(1,2)+0, RGN_FRAC(1,2)+4 }, MSB-first within each byte).
- rtl/video/sys2_pf_linebuf.sv:251 The real board's tile ROM only decodes as many address lines as it has, so an over-range code wraps; MAME reproduces that as `rawcode % gfx->elements()`.
- rtl/video/sys2_priority.sv:6 Paperboy per-pixel layer priority (SP-275 sheet 15B; confirmed against MAME's atarisy2_v.cpp).
- rtl/video/sys2_priority.sv:17 This is exactly MAME's `!((mopri + pfpri) & 2) || !(pf & 8)`.
- rtl/video/sys2_video_render.sv:15 Tile word: code[9:0], bank-select[10], colour group[13:11], category[15:14] inverted (MAME (~data>>14)&3, fed to the priority mixer).
- rtl/video/sys2_video_render.sv:18 4bpp pen via the MAME pflayout planar packing: the first ROM half (rom_lo) holds pen bits 3,2 and the second half (rom_hi) pen bits 1,0, MSB-first within each nibble.
- rtl/video/sys2_video_render.sv:149 MAME's yscroll_w updates m_playfield_tile_bank[1] OUTSIDE its `if (!(newscroll & 0x10))` conditional (src/mame/atari/atarisy2_v.cpp) -- bit 4 schedules the scroll load, the bank takes effect on the write in both modes, followed by mark_all_
- rtl/video/sys2_video_render.sv:162 bank0/xscroll is NOT the same case and is deliberately left alone: it is applied at the next line_start, and MAME's segment granularity (update_partial on scroll writes) makes that the same scanline boundary.
- rtl/video/sys2_video_render.sv:263 MAME: code = (bank[(data>>10)&1] << 10) | (data & 0x3ff), with a FOUR-bit bank (xscroll&0x0f / yscroll&0x0f) -- 14 bits, up to 16384 tiles for APB.
- rtl/video/sys2_video_render.sv:272 Dropping them is exactly `code % 4096`, and 4096 is Paperboy's decoded tile-element count, so this reproduces MAME's own wrap: tile_data::set() does `rawcode % gfx->elements()` before the fetch.
- rtl/video/sys2_video_render.sv:292 4bpp playfield pen via the shared sys2_pen4 kernel (MAME `pflayout` planar packing: FIRST region half rom_lo = pf_rom_data[7:0] -> pen bits 3,2; SECOND half rom_hi = pf_rom_data[15:8] -> pen bits 1,0).
- rtl/video/sys2_video_render.sv:417 MAME (~data >> 14) & 3
- README.md:24 All 29 remaining MAME clone sets — other revisions and the German, French and Spanish releases — ship under `releases/_alternatives/`.
- README.md:27 `Paperboy (prototype)` is `MACHINE_NOT_WORKING` in MAME with every ROM a `BAD_DUMP`.
- README.md:104 On an analog stick or the D-pad, the joystick points where you point: push the stick in a direction and the skater turns to face it, as in MAME's joystick mode.
- README.md:203 MAME differs on all three, and following MAME instead breaks Championship Sprint and 720.
- README.md:204 720's "MO Height Test" produces a ragged staircase 44 pixels taller than MAME's — that staircase is what the hardware draws.
- README.md:314 **The MAME team** — `atarisy2.cpp` and `atarisy2_v.cpp` were the functional cross-reference for everything the schematics do not settle.
- README.md:315 References in the RTL comments of the form `mame/atarisy2.cpp` point at MAME's own sources.
Says it matches, follows or was checked against MAME — 14
- atarisys2.sv:110 sw7 is the HIGH bit of each pair and sw8 the low one (verified: MAME's ssprint values reproduce TM-292's switch table exactly under that mapping).
- atarisys2.sv:119 Every field below was checked against its operator manual; every encoding MAME had was correct, and what the manuals changed was the NAMES.
- atarisys2.sv:1686 The bus's bit numbers were always right -- sys2_main_bus puts btn2 on IN0 bit1 and btn3 on bit3, matching MAME's 0x02/0x08 -- but the joystick bits feeding them were inverted, so the button the MRA labels "Siren" sounded nothing and fired i
- atarisys2.sv:2119 Two consequences: (1) The TMS `<<2` becomes the *unity* (loudest) speech level; the game runs speech at TMS bits 5-7 = 000 (gain 0.5, verified in MAME: 0x187a only ever = 0x1f/0x1e), so typical speech now plays at <<2 * 0.5 = <<1 -- i.e. 6
- rtl/main/sys2_analog_map.sv:55 All four hops were traced: this module emits `PEDAL_RELEASED - travel` (0xFF idle / 0xC0 floored, matching MAME) -> `adc_in` -> `adc0809` straight capture -> {8'hff, data}.
- rtl/main/sys2_main_bus.sv:119 Playfield scroll/bank registers, the raw 16-bit values latched on the CPU write (matching MAME's shared m_xscroll/m_yscroll).
- rtl/main/sys2_main_bus.sv:164 Verified against MAME bank writes: 0x1000->13, 0xE000->62, 0xF000->63 (bankoffset[] table in atarisy2.cpp agrees).
- rtl/main/sys2_main_bus.sv:586 The command is the low byte, so only a low-byte write strobes the latch and its pending flag (matching MAME's even-byte soundlatch handler).
- rtl/slapstic/sys2_slapstic.sv:127 Two matchers, because MAME has two, and the difference is not an oversight.
- rtl/slapstic/sys2_slapstic.sv:130 But it taps the WHOLE address space and decides per matcher whether the window applies (MAME slapstic.cpp):
- rtl/slapstic/sys2_slapstic.sv:155 Used by exactly one matcher -- alt1 -- and only because MAME uses it there for chips 103-110.
- rtl/video/sys2_pen4.sv:16 The four pens are spelled out with constant bit-selects (the verified form from the MAME reference) -- pure combinational.
- rtl/video/sys2_video_render.sv:409 10 code bits, matching MAME's `code = data & 0x3ff` for every System 2 game.
- README.md:215 The video path is pixel-exact against MAME frame captures on four of the five games, and service-mode video RAM is byte-identical to MAME on every game that kee
Says it was translated, ported or taken from MAME — 2
- rtl/main/sys2_main_bus.sv:406 That is MAME's mapping verbatim, not an omission here -- APB's remaining controls are the LETA wheel and the ADC pedal, which do not pass through this word.
- rtl/slapstic/sys2_slapstic.sv:18 Transcribed from the tables in the Arcade-Atari-system1 core's `SLAPSTIC.vhd`, which carries MAME's `slapstic_data` structs verbatim as comments.
Shares text with the MAME driver without saying so — 4
- rtl/video/sys2_palette.sv:21 Intensity ladder: ZB=115, Z3=78, Z2=37, Z1=17, Z0=9. — shares text with atari/atarisy2_v.cpp:160
- rtl/video/sys2_pen4.sv:7 (MAME RGN_FRAC(1,2): planeoffset { 0, 4, RGN_FRAC(1,2)+0, RGN_FRAC(1,2)+4 }, — shares text with atari/atarisy2.cpp:1144
- rtl/video/sys2_pf_linebuf.sv:89 code = (bank[(data>>10)&1] << 10) | (data & 0x3ff) — shares text with atari/atarisy2_v.cpp:31
- rtl/video/sys2_video_render.sv:263 MAME: code = (bank[(data>>10)&1] << 10) | (data & 0x3ff), with a FOUR-bit bank — shares text with atari/atarisy2_v.cpp:31