summaryrefslogtreecommitdiff
path: root/src/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.go')
-rw-r--r--src/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.go b/src/main.go
index 47240be..a742c77 100644
--- a/src/main.go
+++ b/src/main.go
@@ -95,6 +95,12 @@ func compile(raw[]string) {
print(" pop rdi")
print(" call .dump")
+ case "dup":
+ print(" ;; DUPLICATE")
+ print(" pop r10")
+ print(" push r10")
+ print(" push r10")
+
case "if":
print(" ;; IF")
print(" pop r10")