Skip to main content

Module mref

Module mref 

Source
Expand description

The mref module exists to hide the internals of MemoryWriteRef and MemoryReadRef.

We cannot simply use &mut MemoryWord because the arithmetic element’s registers A-E share a metabit (the metabit of the M register).

Re-exportsΒ§

use super::ExtraBits; πŸ”’
use super::MemoryWord; πŸ”’
use base::prelude::*; πŸ”’

StructsΒ§

MemoryReadRef πŸ”’
MemoryReadRef logically represents a memory location (register) which we can read.
MemoryWriteRef πŸ”’
MemoryWriteRef logically represents a memory location (register) which we can write to or read from.

TraitsΒ§

MemoryRead πŸ”’