diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-27 20:09:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-27 20:09:21 +0100 |
commit | efdc6765ff0c13d174fb67d38bc6ad66e16ebbab (patch) | |
tree | 4d99f5ee678a123f99db275d4654af50962c42ac | |
parent | Update makefile with check of b32e (diff) | |
download | base32asm-efdc6765ff0c13d174fb67d38bc6ad66e16ebbab.tar.gz base32asm-efdc6765ff0c13d174fb67d38bc6ad66e16ebbab.zip |
Add ret statements
Diffstat (limited to '')
-rw-r--r-- | b32e.asm | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |