push and pop
This commit is contained in:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user