summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-12-30 17:42:50 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-12-30 17:42:50 +0400
commit66c064507edfb368e31e55a4cc280a0b93bbf335 (patch)
treeed62169df36f7931613f836fdc4b7af17b45873f /src
parent82a90e1da1330d9ad6ffaa8676d95704bf9506c7 (diff)
typo fixed
Diffstat (limited to 'src')
-rw-r--r--src/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.go b/src/main.go
index 8275d6e..4e9222f 100644
--- a/src/main.go
+++ b/src/main.go
@@ -205,7 +205,7 @@ func compileX86_64(ops[] Operation) {
print(" push r10")
print(" push r10")
- case "rem":
+ case "remove":
print(" pop r10")
case "swap":
@@ -228,6 +228,7 @@ func compileX86_64(ops[] Operation) {
case "while":
fmt.Printf("%s:\n", ops[i].label)
+
case "do":
print(" pop r10")
print(" cmp r10, 0")