From efdc6765ff0c13d174fb67d38bc6ad66e16ebbab Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 27 Nov 2018 20:09:21 +0100 Subject: Add ret statements --- b32e.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1