Expand description
The Arcade Card: 2 MiB of RAM behind four address ports, and a 32-bit shift/rotate unit
(arcade.py).
An Arcade Card (Hudson, 1994) sits on the same EXT BUS as the CD unit; here it is a component
of CdUnit, which claims its pages (one add-on: CD-ROM² + Arcade Card). It has no clock:
every access is immediate, so it takes no part in catch_up.
Sources, and what is tier what. No hardware documentation of the card is in the
reference’s reference/: the card is not in MacDonald’s pcetech.txt, and the only text
the sources cite for it is Mednafen’s header (“based on information provided by Ki and David
Shadoff”). So every behaviour below is [emu: Mednafen arcade_card.cpp, Geargrafx
arcade_card_mapper*, Mesen2 PceArcadeCard.cpp] (tier 5, detectors) and holds where all
three agree; where they differ the choice is a field of ArcadeSwitches and a U/C entry in
the reference’s docs/m9-record.md.
Address map [emu, all three]:
| where | what |
|---|---|
banks $40-$43 | the data of port bank & 3 at any offset, as $1A00 + 16 * port |
$1A00-$1A7F | four port groups, port = (addr >> 4) & 3: $1A40-$1A7F mirrors $1A00 |
$1AE0-$1AE3 | the 32-bit value register, low byte first |
$1AE4 | shift: write n (4 bits) shifts the value, read returns n |
$1AE5 | rotate: write n (4 bits) rotates the value, read returns n |
$1AFE, $1AFF | version $10 and ID $51 |
Port registers (low nibble of the address):
| reg | meaning |
|---|---|
$0, $1 | data: read or write RAM at the effective address, then auto-increment |
$2-$4 | base address, 24 bits, low byte first |
$5, $6 | offset, 16 bits, low byte then high byte |
$7, $8 | increment, 16 bits |
$9 | control (below) |
$A | trigger write (reads 0) |
Control bits: D0 auto-increment; D1 add the offset to the base for the access; D2 signed
increment (no emulator uses it); D3 signed offset; D4 the increment goes to the base (else to
the offset); D6-D5 when the offset is written it is added into the base: 0 never, 1 on the
low-byte write, 2 on the high-byte write, 3 on a write to $A.
The effective address is (base [+ offset [+ $FF0000 if signed]]) & $1FFFFF (2 MiB).
Differences forced by Rust: the reference’s class attributes are ArcadeSwitches (a
subclass there, a value handed to ArcadeCard::with here).
Structs§
- Arcade
Card - The card’s RAM, four ports and the shift unit.
- Arcade
Switches - The emulator-only choices (the reference’s
ArcadeCardclass attributes, its defaults).
Constants§
- ARCADE_
RAM_ BYTES - CTL_
ADD_ OFFSET - CTL_
AUTO_ INCREMENT - CTL_
INCREMENT_ BASE - CTL_
SIGNED_ OFFSET - CTL_
TRIGGER_ SHIFT - FIRST_
PORT_ BANK - PORT_
BANKS - PORT_
BANK_ PAGES - banks $40-$43 at physical $080000-$087FFF (8 KiB banks)
- REGISTER_
PAGE - $1A00-$1AFF
- TRIGGER_
HIGH - TRIGGER_
LOW - TRIGGER_
NONE - TRIGGER_
REG_ A