pub struct OperandAddress(Address);
Expand description
OperandAddress
represents the least-significant 18 bits of an
instruction word. If the top bit is set, this indicates the use
of deferred addressing (i.e. this bit has the same significance as
it does in TX-2 instructions).
Tuple Fields§
§0: Address
Implementations§
Source§impl OperandAddress
impl OperandAddress
pub fn is_deferred(&self) -> bool
pub fn split(&self) -> (bool, Address)
pub fn bits(&self) -> Unsigned18Bit
pub fn direct(address: Address) -> OperandAddress
pub fn deferred(address: Address) -> OperandAddress
fn from_raw_bits(bits: Unsigned18Bit) -> OperandAddress
Trait Implementations§
Source§impl Clone for OperandAddress
impl Clone for OperandAddress
Source§fn clone(&self) -> OperandAddress
fn clone(&self) -> OperandAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OperandAddress
impl Debug for OperandAddress
Source§impl Default for OperandAddress
impl Default for OperandAddress
Source§fn default() -> OperandAddress
fn default() -> OperandAddress
Returns the “default value” for a type. Read more
Source§impl Octal for OperandAddress
Format an operand address in octal.
impl Octal for OperandAddress
Format an operand address in octal.
Deferred addresses are formatted in square brackets. TX-2
documentation seems variously to represent deferred addressing
with [...]
or *
. We use [...]
.
Source§impl PartialEq for OperandAddress
impl PartialEq for OperandAddress
impl Copy for OperandAddress
impl Eq for OperandAddress
impl StructuralPartialEq for OperandAddress
Auto Trait Implementations§
impl Freeze for OperandAddress
impl RefUnwindSafe for OperandAddress
impl Send for OperandAddress
impl Sync for OperandAddress
impl Unpin for OperandAddress
impl UnwindSafe for OperandAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.