Skip to main content

CsrsEmitter

Trait CsrsEmitter 

Source
pub trait CsrsEmitter<T0, T1> {
    // Required method
    fn csrs(&mut self, rs1: T0, csr: T1);
}
Expand description

RISC-V csrs instruction.

§Forms

Assembly: csrs rs1 csr Rust: csrs(rs1, csr)

§Arguments

  • rs1 — Source register.
  • csr — Control and status register number.

Required Methods§

Source

fn csrs(&mut self, rs1: T0, csr: T1)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<U1: Into<Imm>> CsrsEmitter<Gp, U1> for Assembler<'_>