From fb6722a47ef3472a99f1325d830fa55c9e81f411 Mon Sep 17 00:00:00 2001 From: Mwa Date: Mon, 16 Mar 2026 16:21:07 +0100 Subject: [PATCH] add not pseudo-instruction --- asm/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asm/src/main.rs b/asm/src/main.rs index 3847f25..3b74036 100644 --- a/asm/src/main.rs +++ b/asm/src/main.rs @@ -575,6 +575,10 @@ fn process_line(prgm: &mut Program, (linenum, line): (usize, String), rgx: &Rege chk(0); Instruction::Add(Reg(0), Reg(0), Labeli17::Value(0)) } + "not" => { + chk(2); + Instruction::Xor(reg(0), reg(1), Op2::Direct(-1)) + } "let" => { chk(2); let r = reg(0);