pub struct Memory {
pub cells: [u16; 65535],
}
Expand description
Memory
: LC-3 has 65,536 memory locations (the maximum that is addressable by a 16-bit unsigned integer 2^16),
each of which stores a 16-bit value. This means it can store a total of only 128kb.
Fields§
§cells: [u16; 65535]
Memory is an array of u16
cells, with length = 65,536.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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