summaryrefslogtreecommitdiffstats
path: root/b32e.asm
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-27 20:09:21 +0100
committerNao Pross <naopross@thearcway.org>2018-11-27 20:09:21 +0100
commitefdc6765ff0c13d174fb67d38bc6ad66e16ebbab (patch)
tree4d99f5ee678a123f99db275d4654af50962c42ac /b32e.asm
parentUpdate makefile with check of b32e (diff)
downloadbase32asm-efdc6765ff0c13d174fb67d38bc6ad66e16ebbab.tar.gz
base32asm-efdc6765ff0c13d174fb67d38bc6ad66e16ebbab.zip
Add ret statements
Diffstat (limited to 'b32e.asm')
-rw-r--r--b32e.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/b32e.asm b/b32e.asm
index b74d7d7..04ce671 100644
--- a/b32e.asm
+++ b/b32e.asm
@@ -19,6 +19,7 @@ read_input:
mov rsi, input_buffer
mov rdx, 5
syscall
+ ret
; write_output
; writes the output buffer to stdout
@@ -29,6 +30,7 @@ write_output:
mov rsi, output_buffer
mov rdx, 5
syscall
+ ret
; b32e
; encodes 40 bits (5 bytes) to 8 RFC4648 base32 characters
@@ -54,13 +56,15 @@ b32e:
inc r11
cmp r11, 8
js .loop
+ ret
_start:
nop
call read_input
call b32e
-
+ call write_output
+.exit:
; linux x64 exit(0)
mov rax, 60
mov rdi, 0