[−][src]Struct emulator::bus::IoRegisters
IoRegisters of the 2i.
Represents the input and output registers of the 2i. Reading from an address lower than FC or writing to an address lower than FE will result in an error.
Methods
impl IoRegisters
[src]
pub fn new() -> IoRegisters
[src]
Create a new IoRegisters with all registers initialised to zero.
pub fn inspect_input(&self) -> &RefCell<[u8; 4]>
[src]
Direct access to the input registers wrapped in a RefCell.
pub fn inspect_output(&self) -> &RefCell<[u8; 2]>
[src]
Direct access to the output registers wrapped in a RefCell.
Trait Implementations
impl Bus for IoRegisters
[src]
fn read(&self, address: u8) -> Result<u8>
[src]
fn write(&self, address: u8, value: u8) -> Result<()>
[src]
impl Default for IoRegisters
[src]
fn default() -> IoRegisters
[src]
Auto Trait Implementations
impl Send for IoRegisters
impl !Sync for IoRegisters
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,