pub trait AyIoPort {
    type Timestamp: Sized;

    fn ay_io_reset(&mut self, _timestamp: Self::Timestamp) { ... }
    fn ay_io_write(&mut self, _addr: u16, _data: u8, _timestamp: Self::Timestamp) { ... }
    fn ay_io_read(&mut self, _addr: u16, _timestamp: Self::Timestamp) -> u8 { ... }
    fn end_frame(&mut self, _timestamp: Self::Timestamp) { ... }
}
Expand description

This trait should be implemented by emulators of devices attached to one of two Ay3_891xIo I/O ports.

Required Associated Types§

Provided Methods§

Resets the device at the given timestamp.

Writes data to the device at the given timestamp.

Reads data from the device at the given timestamp.

Signals the device when the current frame ends, providing the value of the cycle clock after the frame execution stopped.

Implementors§