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

Function store_inst

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

Build a store `AsmToken` for the given mnemonic.

(mnemonic: &str, rs1: u8, rs2: u8, imm: i32)

Source from the content-addressed store, hash-verified

320 }) = parse_branch(kind, rest)
321 {
322 out.push(AsmToken::Branch {
323 kind,
324 rs1: rs2,
325 rs2: rs1,
326 target,
327 });
328 } else {
329 asm_warn!(out, "unrecognised {mnemonic}: {line}");
330 }
331 }
332
333 // --- Compare-with-zero branch pseudos ---

Callers 1

parse_instruction_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected