pub struct CpuState {
pub current: Address,
pub operation: OperationState,
pub stack: WordStack,
pub bank: Bank,
pub vector: Vector,
pub flag_debug: bool,
pub flag_skip: bool,
pub flag_halt: bool,
}
Expand description
A proposed implementation of a processor state.
Fields§
§current: Address
The current operation pointer,
operation: OperationState
Last operation result,
stack: WordStack
The stack (for procedure-calling and operations),
bank: Bank
The integral register bank,
vector: Vector
The floating-point register bank,
flag_debug: bool
On if a trace shall be printed out,
flag_skip: bool
On if the processor must skip the next instruction,
flag_halt: bool
On if the processor must halt,
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuState
impl RefUnwindSafe for CpuState
impl Send for CpuState
impl Sync for CpuState
impl Unpin for CpuState
impl UnwindSafe for CpuState
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