From 66c064507edfb368e31e55a4cc280a0b93bbf335 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 30 Dec 2024 17:42:50 +0400 Subject: typo fixed --- src/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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") -- cgit v1.2.3