Struct rustv::isa::Instruction
[−]
[src]
pub struct Instruction { /* fields omitted */ }
Methods
impl Instruction
[src]
fn new(word: Word) -> Instruction
fn opcode(&self) -> u32
fn rd(&self) -> Register
fn funct3(&self) -> u32
fn funct7(&self) -> u32
fn shamt(&self) -> u32
fn rs1(&self) -> Register
fn rs2(&self) -> Register
fn i_imm(&self) -> SignedWord
fn s_imm(&self) -> SignedWord
fn uj_imm(&self) -> SignedWord
fn sb_imm(&self) -> SignedWord
fn u_imm(&self) -> SignedWord
Trait Implementations
impl Copy for Instruction
[src]
impl Clone for Instruction
[src]
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more