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

Function parse_two_regs

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

Parse `"rd, rs"` -> `(rd_reg, rs_reg)`. Used by `mv`.

(operands: &str)

Source from the content-addressed store, hash-verified

446 };
447
448 if (-2048..=2047).contains(&imm) {
449 out.push(AsmToken::Real(RealInstruction::Addi(Addi::new(
450 rd, 0, imm as i32,
451 ))));
452 return out;
453 }
454

Callers 1

parse_instruction_lineFunction · 0.85

Calls 2

parse_two_fieldsFunction · 0.85
parse_int_regFunction · 0.85

Tested by

no test coverage detected