← All cores
Arcade-MajorHavoc (blahm1dplays)
Cites hardware references or measurements that MAME's driver also gives — 2
Cites MAME source — 32
- Arcade-StarWars.sv:422 HW-VERIFY direction (MAME IPT_DIAL PORT_REVERSE) -- negate sp_delta / flip m_inc if inverted.
- rtl/avg/avg_majorhavoc.vhd:10 * AVG fetch path (memory_din, 14-bit pc; MAME avg_mhavoc_device::update_databus): pc $0000-$0FFF vector RAM (4K) -> inferred 4K vecram pc $1000-$1FFF vector ROM (4K) -> vecrom[$0000-$0FFF]
- rtl/avg/avg_majorhavoc.vhd:20 (MAME alpha_map: $5000 vectorrom @0, $6000 vectorrom @$1000 mirror $1000.
- rtl/avg/avg_majorhavoc.vhd:91 AVG X-flip (MAME m_xdac_xor) = STAT bit 10
- rtl/avg/avg_majorhavoc.vhd:93 sparkle LFSR (MAME m_spkl_shift)
- rtl/avg/avg_majorhavoc.vhd:148 MAME mhavoc_data: m_bank_region[(m_map<<13) | (pc & $1FFF)].
- rtl/avg/avg_majorhavoc.vhd:165 X-flip (MAME mhavoc_strobe2: STAT b10 -> m_xdac_xor=0x1FF inverts the X DAC): negate the X delta so symmetric content (e.g. maze halves) draws mirrored.
- rtl/avg/avg_majorhavoc.vhd:184 MAME centres the AVG at m_xcenter/m_ycenter (mid-screen) and the X/Y DACs XOR the position with 0x200 to convert the signed accumulator to unsigned screen coords.
- rtl/avg/avg_majorhavoc.vhd:197 Sparkle LFSR free-runs (MAME mhavoc_strobe3): next = (shift<<1) | (b6 xor b5 xor 1), reset to 0 if the low 7 bits hit all-ones (the lock state).
- rtl/avg/avg_majorhavoc.vhd:211 MAME mhavoc_vgrst clears m_enspkl
- rtl/avg/avg_majorhavoc.vhd:431 SPARKLE (MAME mhavoc_strobe3): when enabled the colour twinkles from the UPPER palette colorram[0xF + bitswap<4>(spkl,0,2,4,6)] driven by the free-running LFSR; else the normal 4-bit index (entries 0-15).
- rtl/avg/avg_majorhavoc.vhd:433 (Behavioural twinkle: this colours the whole vector from the sparkle palette rather than MAME's sparse half-step dots -- a first cut; not visually validated since the attract frame has no sparkle STAT.
- rtl/majorhavoc.vhd:19 VALIDATE IN SIM: the comms handshake-flag bit positions/polarity in IN0/IN1 are best-effort from the handoff; confirm against MAME INPUT_PORTS(mhavoc) + the jessaskey self-test (mhavocpe-ref/Source/mh_alpha.asm) before trusting them.
- rtl/majorhavoc.vhd:141 Entries 0-15 = normal colours (4-bit STAT colour); 16-31 = the sparkle palette (MAME reads colorram[0xf + bitswap(spkl)]).
- rtl/majorhavoc.vhd:147 ---- IRQ: 5 kHz LS161 dividers (MHAVOC_CLOCK_5K = 10 MHz/2048 = 4882.8 Hz), per mhavoc.cpp ----
- rtl/majorhavoc.vhd:210 ROMs (loaded from download; see entity header for the concatenation) alpha 64K : dn 0x00000-0x0FFFF (= MAME alpha region $8000-$17FFF) gamma 16K : dn 0x10000-0x13FFF vectorrom 8K: dn 0x14000-0x15FFF
- rtl/majorhavoc.vhd:236 MAME alpha_map: map(0x0000,0x01ff).ram().
- rtl/majorhavoc.vhd:237 RAM A and RAM B MUST be separate (they are two distinct .ram() shares in MAME); the old single-1K-aram decode aliased $00A5<->$08A5<->$04A5, so a RAM-B write to $08A5 wiped $A5's D3 bit and the IRQ handler's player-mux write ($87C9 STA $160
- rtl/majorhavoc.vhd:246 MAME alpha_map: map(0x0800,0x09ff).ram().
- rtl/majorhavoc.vhd:251 MAME: map(0x0200,0x07ff)+map(0x0a00,0x0fff) both .bankrw(rambank); rambank entry = rampg (0/1).
- rtl/majorhavoc.vhd:277 ALPHA address decode + read mux (MAME alpha_map)
- rtl/majorhavoc.vhd:279 MAME alpha_map RAM regions (exact): $0000-01FF RAM A, $0200-07FF bank, $0800-09FF RAM B, $0A00-0FFF bank.
- rtl/majorhavoc.vhd:298 $1200 IN0 -- CANONICAL mhavoc.cpp INPUT_PORTS(mhavoc), verified vs mamedev master: b0=avg done(=avg_halted), b1=2.4kHz(=clk24), b2=gamma_xmtd, b3=gamma_rcvd, b4=diag-step(SVC2,act-low), b5=service1(act-low), b7:6=coin/service mux.
- rtl/majorhavoc.vhd:337 GAMMA address decode + read mux (MAME gamma_map)
- rtl/majorhavoc.vhd:344 Quad POKEY decode (MAME mhavoc quad_pokeyn): select = g_ad(4:3); register = {g_ad(5), g_ad(2:0)} (the PCB's quirky address-line wiring -> ALLPOT for DSW1 lands at +$20).
- rtl/majorhavoc.vhd:357 $2800 IN1 -- CANONICAL mhavoc.cpp: b0=alpha_xmtd, b1=alpha_rcvd (both active-high, direct); b2=TIRDY (unused on base mhavoc -- no TMS5200); b3=unused; b7:4=fire/shield buttons (P1 b7:6, P2 b5:4).
- rtl/majorhavoc.vhd:369 Inter-CPU comms latches + handshake (MAME gamma_w/alpha_w/alpha_r/gamma_r)
- rtl/majorhavoc.vhd:377 alpha resets gamma ($1600 D3=0) -> clear all 4 handshake flags (MAME out_0_w)
- rtl/majorhavoc.vhd:405 IRQ: faithful port of mhavoc.cpp cpu_irq_clock + the two irq_ack handlers.
- README.md:18 `games/mame/` folder.
- README.md:185 **T65 / POKEY** authors and the broader MiSTer/MAME communities — the Atari vector hardware lineage and reference models.
- README.md:187 **MAME** — the authoritative Major Havoc memory map and hardware behavior.
Says it matches, follows or was checked against MAME — 1
- rtl/avg/avg_majorhavoc.vhd:7 IMPORTANT: the AVG's INTERNAL pc space is NOT the same as the alpha CPU's view (MAME set_memory(alpha, AS_PROGRAM, $4000) + the mhavoc_data() override).
Says it was translated, ported or taken from MAME — 2
- rtl/majorhavoc.vhd:6 Implements, from MAME src/mame/atari/mhavoc.cpp (verbatim maps, 2026-05-29 fetch): * ALPHA 6502 @ 2.5 MHz (10/4) + GAMMA 6502 @ 1.25 MHz (10/8), separate buses.
- README.md:38 **New — the Major Havoc game module** (`rtl/majorhavoc.vhd`, `rtl/avg/avg_majorhavoc.vhd`, `rtl/mhavoc_sw.sv`), transcribed from MAME's `atari/mhavoc.cpp`:
Shares text with the MAME driver without saying so — 2