pub struct Instruction(Unsigned36Bit);
Expand description
A TX-2 Instruction.
Tuple Fields§
§0: Unsigned36Bit
Implementations§
Source§impl Instruction
impl Instruction
Sourcepub fn invalid() -> Instruction
pub fn invalid() -> Instruction
Returns an unspecified invalid instruction.
pub fn bits(&self) -> Unsigned36Bit
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
Source§impl From<&SymbolicInstruction> for Instruction
impl From<&SymbolicInstruction> for Instruction
Source§fn from(s: &SymbolicInstruction) -> Instruction
fn from(s: &SymbolicInstruction) -> Instruction
Converts to this type from the input type.
Source§impl From<Instruction> for Unsigned36Bit
impl From<Instruction> for Unsigned36Bit
Source§fn from(inst: Instruction) -> Unsigned36Bit
fn from(inst: Instruction) -> Unsigned36Bit
Converts to this type from the input type.
Source§impl From<Unsigned36Bit> for Instruction
impl From<Unsigned36Bit> for Instruction
Source§fn from(w: Unsigned36Bit) -> Instruction
fn from(w: Unsigned36Bit) -> Instruction
Converts to this type from the input type.
Source§impl Inst for Instruction
impl Inst for Instruction
Source§fn configuration(&self) -> Unsigned5Bit
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
fn opcode_number(&self) -> u8
The opcode of the instruction.
Source§fn index_address(&self) -> Unsigned6Bit
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
fn is_deferred_addressing(&self) -> bool
The value of the defer bit from the operand address field.
fn operand_address(&self) -> OperandAddress
Source§fn operand_address_and_defer_bit(&self) -> Unsigned18Bit
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
impl TryFrom<&Instruction> for SymbolicInstruction
Source§type Error = DisassemblyFailure
type Error = DisassemblyFailure
The type returned in the event of a conversion error.
Source§fn try_from(
inst: &Instruction,
) -> Result<SymbolicInstruction, DisassemblyFailure>
fn try_from( inst: &Instruction, ) -> Result<SymbolicInstruction, DisassemblyFailure>
Performs the conversion.
impl Copy for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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