Enum mlem::Address [] [src]

pub enum Address {
    RegAbs(Register),
    MemAbs(Word),
    MemReg(Register),
    Literal(Word),
}

Represents a place a value can come from: a register, a memory address, a pointer to memory stored in a register, or a literal value.

Variants

A literal register, like R1.

A literal memory address, like 0x10.

A memory address stored in a register. This serves as one level of indirection; for multiple indirection, multiple instructions must be used.

A literal value. Writing to a literal value is a fault.

Trait Implementations

impl PartialEq for Address
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Address
[src]

Formats the value using the given formatter.

impl Copy for Address
[src]

impl Clone for Address
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more