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

Function csrrw_swap_same_register

crates/asm-to-binary/src/assembler/parser.rs:690–696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

688fn parse_branch_zero(kind: BranchKind, operands: &str) -> Option<AsmToken> {
689 let comma = operands.find(',')?;
690 let rs1 = parse_int_reg(operands[..comma].trim())?;
691 let target = operands[comma + 1..].trim().to_owned();
692 if target.is_empty() {
693 return None;
694 }
695 Some(AsmToken::Branch {
696 kind,
697 rs1,
698 rs2: 0,
699 target,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected