diff options
-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 |