Skip to main content

CSwspEmitter

Trait CSwspEmitter 

Source
pub trait CSwspEmitter<T0, T1> {
    // Required method
    fn c_swsp(&mut self, rs2: T0, imm: T1);
}
Expand description

Store word to stack

Stores a 32-bit value in register rs2 to memory. It computes an effective address by adding the zero-extended offset, scaled by 4, to the stack pointer, x2. It expands to sw rs2, offset(x2).

§Forms

Assembly: c.swsp xs2, imm(sp) Rust: c_swsp(rs2, imm)

§Arguments

  • rs2 — Instruction operand.
  • imm — Immediate encoding value.

Required Methods§

Source

fn c_swsp(&mut self, rs2: T0, imm: 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>> CSwspEmitter<Gp, U1> for Assembler<'_>