pub struct Registers {
pub accumulator: Value,
pub program_counter: CodeAddress,
pub stack_pointer: StackIndex,
pub base_pointer: FramePointer,
}Fields§
§accumulator: Value§program_counter: CodeAddress§stack_pointer: StackIndex§base_pointer: FramePointerImplementations§
Source§impl Registers
impl Registers
pub fn new() -> Self
pub fn reset(&mut self)
pub fn set_accumulator(&mut self, value: Value)
pub fn get_accumulator(&self) -> &Value
pub fn increment_pc(&mut self)
pub fn set_pc(&mut self, address: CodeAddress)
pub fn get_pc(&self) -> CodeAddress
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registers
impl RefUnwindSafe for Registers
impl Send for Registers
impl Sync for Registers
impl Unpin for Registers
impl UnwindSafe for Registers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more