pub struct StackProcessor {
pub text_memory: Memory<u6>,
pub data_memory: Memory<u8>,
pub registers: StackProcessorRegisters,
}
Fields§
§text_memory: Memory<u6>
§data_memory: Memory<u8>
§registers: StackProcessorRegisters
Implementations§
Source§impl StackProcessor
impl StackProcessor
pub fn new() -> StackProcessor
pub fn load_from_bytes(&mut self, bytes: &[u8])
pub fn load_text_binary_file(&mut self, binary: &str)
pub fn register_stack(&mut self) -> TwoByteStack<'_, Memory<u8>, u16, usize>
pub fn memory_stack(&mut self) -> TwoByteStack<'_, Memory<u8>, u16, usize>
pub fn two_byte_data_memory( &mut self, ) -> TwoByteMemory<'_, Memory<u8>, u16, usize>
Trait Implementations§
Source§impl Processor<u6, u16, u16, u16> for StackProcessor
impl Processor<u6, u16, u16, u16> for StackProcessor
fn next(&mut self) -> u6
fn at_pc_plus(&self, offset: u16) -> u6
fn pc(&self) -> u16
fn run_command<T, U>(&mut self, output: T, input: U) -> ProcessorContinue
fn load_executable(&mut self, executable: &Executable) -> Result<(), String>
Auto Trait Implementations§
impl Freeze for StackProcessor
impl RefUnwindSafe for StackProcessor
impl Send for StackProcessor
impl Sync for StackProcessor
impl Unpin for StackProcessor
impl UnwindSafe for StackProcessor
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