Struct avr::core::Core
[−]
[src]
pub struct Core { /* fields omitted */ }
The AVR CPU.
Methods
impl Core
[src]
fn new<M>() -> Self where
M: Chip,
M: Chip,
fn load_program_space<I>(&mut self, bytes: I) where
I: Iterator<Item = u8>,
I: Iterator<Item = u8>,
fn tick(&mut self) -> Result<(), Error>
fn register_file(&self) -> &RegisterFile
fn register_file_mut(&mut self) -> &mut RegisterFile
fn program_space(&self) -> &Space
fn program_space_mut(&mut self) -> &mut Space
fn memory(&self) -> &Space
fn memory_mut(&mut self) -> &mut Space
fn add(&mut self, lhs: u8, rhs: u8) -> Result<(), Error>
lhs = lhs + rhs
fn adc(&mut self, lhs: u8, rhs: u8) -> Result<(), Error>
fn sub(&mut self, lhs: u8, rhs: u8) -> Result<(), Error>
lhs = lhs - rhs
fn sbc(&mut self, lhs: u8, rhs: u8) -> Result<(), Error>
fn subi(&mut self, rd: u8, imm: u8) -> Result<(), Error>
fn sbci(&mut self, rd: u8, imm: u8) -> Result<(), Error>
fn mul(&mut self, rd: u8, rr: u8) -> Result<(), Error>
R1:R0 = Rd * Rr