Struct watchmaker_vm::Memory
source · [−]pub struct Memory {
pub iinput: Vec<i64>,
pub istate: Vec<i64>,
pub ioutput: Vec<i64>,
pub dinput: Vec<f64>,
pub dstate: Vec<f64>,
pub doutput: Vec<f64>,
}
Expand description
The memory banks of an instance of a virtual machine.
All registers are initialized to zero at start up, except any constant registers to which values have been assigned. The mechanism for setting and changing the input registers is application specific.
Operand addresses are evaluated modulo the size of the register array they refer to, to keep them within the allocated memory for that array.
Fields
iinput: Vec<i64>
II: linear array of integer input registers
istate: Vec<i64>
IS: linear array of integer state registers
ioutput: Vec<i64>
IO: linear array of integer output registers
dinput: Vec<f64>
DI: linear array of double precision floating point input registers
dstate: Vec<f64>
DS: linear array of double precision floating point state registers
doutput: Vec<f64>
DO: linear array of double precision floating point output registers
Implementations
Trait Implementations
impl StructuralPartialEq for Memory
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more