Module board

Module board 

Source
Expand description

The CD-ROM² / Super CD-ROM² machine: the base board plus a System Card and a CD unit (board.py).

Composition through the base board’s sockets (the reference’s docs/start-here.md):

  • socket 1 (HuCard slot): the System Card (SystemCard), which also holds the Super System Card’s RAM at $68-$7F and its id registers;
  • socket 2 (expansion port): CdUnit claims CD RAM ($80-$87), BRAM ($F7) and $1800-$18FF, and pulls the I/O port’s bit 7 low (present);
  • the Arcade Card (arcade_card) is a component of the unit: it adds banks $40-$43 and $1A00-$1AFF to the unit’s claims (arcade.rs);
  • socket 6 (interrupts): the unit’s bit “cd” on the board’s IRQ2 line;
  • socket 9 (audio): the CD-DA player and the ADPCM unit are the port device’s audio sources, mixed after the PSG;
  • socket 5 (clock domains): the board catches the unit up to its clock every advance.

Differences forced by Rust: the reference’s PcEngineCd object keeps card, unit, arcade and board side by side; here the board owns the card and the unit, so PcEngineCd is the description (the reference’s constructor arguments, with its defaults, and every named switch) and build hands back the base board’s System; unit, card and arcade reach the devices inside a board. The reference’s **board_kwargs is board, a BoardOptions whose card and port are replaced.

Structs§

CdSwitches
Every named switch of the add-on, with the reference’s defaults.
PcEngineCd
A CD-ROM² system. system_card is the BIOS image (bring your own).

Functions§

arcade
The Arcade Card, if the board’s unit has one fitted.
card
The System Card in a board’s slot.
unit
The CD unit on a board’s expansion port.