pub struct BoardPins<'a> {
pub irq2: &'a mut IrqLine,
pub vdcs: &'a mut [Vdc],
pub opcode: u8,
pub card: Option<&'a mut (dyn Card + 'static)>,
/* private fields */
}Expand description
What the board hands a card, a port device or the pixel path with every call.
Fields§
§irq2: &'a mut IrqLineThe shared IRQ2 level (HuCard, expansion port, CD ADPCM): the device sets its own bit.
vdcs: &'a mut [Vdc]The board’s VDC instances (machine.vdc_count of them): the SuperGrafx’s VPC claims
their pages and steers each access to one. A device makes its accesses of a VDC’s port
with vdc_read and vdc_write, not by calling Vdc::read and write here, so that the
board’s wait reaches them (issue 0004, VdcAccess).
opcode: u8The opcode of the instruction the CPU is running (Pins::opcode; 0 with no CPU): the
VPC steers only ST0-ST2, which the bus cannot tell from stores to $FF:0000/2/3.
card: Option<&'a mut (dyn Card + 'static)>The card in the slot, for the port device and the pixel path (None for the card’s own
calls and for an empty slot).
Implementations§
Source§impl BoardPins<'_>
impl BoardPins<'_>
Sourcepub fn hold(&mut self, clocks: i64)
pub fn hold(&mut self, clocks: i64)
Stretch the current CPU cycle by this many master clocks (RDY held low), applied by the board once the access returns.