summary refs log tree commit diff
path: root/instructions/not.ts
diff options
context:
space:
mode:
Diffstat (limited to 'instructions/not.ts')
-rw-r--r--instructions/not.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/instructions/not.ts b/instructions/not.ts
new file mode 100644
index 0000000..6416a5c
--- /dev/null
+++ b/instructions/not.ts
@@ -0,0 +1,8 @@
+import { PC } from "../pc.ts";
+
+export default {
+    function(this: PC) {
+        this.registers[2] = ~this.registers[0]
+    },
+    args: 0
+}
\ No newline at end of file