diff --git a/src/backend.rs b/src/backend.rs index 08d3163..b8150a9 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -67,6 +67,13 @@ impl<'a> Vm { self.stack.push(0); } }, + "<>" => { + if unwrap!() != unwrap!() { + self.stack.push(1); + } else { + self.stack.push(0) + } + } "MOD"|"mod" => { let stack_top = unwrap!(); let stack_second = unwrap!(); @@ -106,6 +113,9 @@ impl<'a> Vm { self.stack.push(stack_top); self.stack.push(stack_second); }, + "DROP"|"drop" => { + let _ = self.stack.pop(); + }, "HERE"|"here" => { self.stack.push(self.dictionary.dp); },