Skip to main content

CSdspEmitter

Trait CSdspEmitter 

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

Store doubleword to stack

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

§Forms

Assembly: c.sdsp xs2, imm(sp) Rust: c_sdsp(rs2, imm)

§Arguments

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

Required Methods§

Source

fn c_sdsp(&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>> CSdspEmitter<Gp, U1> for Assembler<'_>