MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / expect_csr_word

Function expect_csr_word

crates/asm-to-binary/src/assembler/parser.rs:676–678  ·  view source on GitHub ↗

sscratch is CSR 0x140; SYSTEM opcode is 0x73.

(rd: u32, rs1: u32, funct3: u32)

Source from the content-addressed store, hash-verified

674 "bltz" => (BranchKind::Blt, rs, 0),
675 "bgtz" => (BranchKind::Blt, 0, rs), // rs > 0 == 0 < rs
676 _ => return None,
677 };
678 Some(AsmToken::Branch {
679 kind,
680 rs1,
681 rs2,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected