Instruction

Struct Instruction 

Source
pub struct Instruction(Unsigned36Bit);
Expand description

A TX-2 Instruction.

Tuple Fields§

§0: Unsigned36Bit

Implementations§

Source§

impl Instruction

Source

pub fn invalid() -> Instruction

Returns an unspecified invalid instruction.

Source

pub fn bits(&self) -> Unsigned36Bit

Trait Implementations§

Source§

impl Clone for Instruction

Source§

fn clone(&self) -> Instruction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Instruction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<&SymbolicInstruction> for Instruction

Source§

fn from(s: &SymbolicInstruction) -> Instruction

Converts to this type from the input type.
Source§

impl From<Instruction> for Unsigned36Bit

Source§

fn from(inst: Instruction) -> Unsigned36Bit

Converts to this type from the input type.
Source§

impl From<Unsigned36Bit> for Instruction

Source§

fn from(w: Unsigned36Bit) -> Instruction

Converts to this type from the input type.
Source§

impl Inst for Instruction

Source§

fn is_held(&self) -> bool

Obtain the value of the “hold” bit.
Source§

fn configuration(&self) -> Unsigned5Bit

Fetch the configuration field of the instruction. This is used as an index to fetch a system configuration from the F-memory. Table 7-2 in the TX-2 User Handbook explains what data exists in the F-memory in the standard configuration. Read more
Source§

fn opcode_number(&self) -> u8

The opcode of the instruction.
Source§

fn index_address(&self) -> Unsigned6Bit

indexation is actually a signed operation (see the IndexBy trait) but index addresses are shown as positive numbers (e.g. 77) in assembler source code.
Source§

fn is_deferred_addressing(&self) -> bool

The value of the defer bit from the operand address field.
Source§

fn operand_address(&self) -> OperandAddress

Source§

fn operand_address_and_defer_bit(&self) -> Unsigned18Bit

Fetches the operand address with the defer bit (if set) in bit position 17.
Source§

impl TryFrom<&Instruction> for SymbolicInstruction

Source§

type Error = DisassemblyFailure

The type returned in the event of a conversion error.
Source§

fn try_from( inst: &Instruction, ) -> Result<SymbolicInstruction, DisassemblyFailure>

Performs the conversion.
Source§

impl Copy for Instruction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.