diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-12-25 11:14:16 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-12-25 11:14:16 +0400 |
commit | 5f70182cae14d5f31d2171fe2de5a5920cc552d7 (patch) | |
tree | 5e240e1277f7ebd2427a9aa64d34ac8c8fc9dc76 /src | |
parent | 16213b9bf973807b7b6d9014c5077e1a7b010f2c (diff) |
small style changes
Diffstat (limited to 'src')
-rw-r--r-- | src/main.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.go b/src/main.go index 475e6a7..e9c844c 100644 --- a/src/main.go +++ b/src/main.go @@ -32,8 +32,8 @@ func readfile(path string) []string { func compile(raw[]string) { var iflabels[] int; - print(" section .text") - print(" global _start") + print("section .text") + print("global _start") print("_start:") for i := 0; i < len(raw); i++ { @@ -84,10 +84,9 @@ func compile(raw[]string) { default: panic("invalid word") } - } - print(" ;; RETURN") + print(" ;; EXIT") print(" mov rdi, 0") print(" mov rax, 60") print(" syscall") |