From 85e7e44e4599cb8446ea0ba31a43aeda99b58670 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 29 Dec 2024 15:03:30 +0400 Subject: `rem` word added --- src/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 0f74d18..40593db 100644 --- a/src/main.go +++ b/src/main.go @@ -166,6 +166,10 @@ func compile(raw[]string) { tmp := [2]string{str, fmt.Sprintf("string_%d", i)} strings = append(strings, tmp) i = lastIndex; + case "rem": + print(" ;; REMOVE") + print(" pop r10") + /* Functions */ case "exit": print(" ;; EXIT") @@ -272,7 +276,6 @@ func compile(raw[]string) { fmt.Printf("%s: db %s, 10\n", strings[i][1], strings[i][0]) } print("") - } func main() { -- cgit v1.2.3