push and pop

This commit is contained in:
2026-06-06 23:47:38 -04:00
parent 66710370bf
commit a086fa6590
6 changed files with 67 additions and 20 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ impl Node for Asm {
let code = parse_imm(&num, ctx.span)?
.try_into()
.map_err(|_| CompilerMsg::from("Immediate must be a u8"))?;
instrs.push(Instr::Int { code });
instrs.push(Instr::Int(code));
}
_ => {
let msg = format!("Unknown instruction {next}");