summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--b32e.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/b32e.asm b/b32e.asm
index 9c136dd..af02dc3 100644
--- a/b32e.asm
+++ b/b32e.asm
@@ -77,9 +77,20 @@ b32e:
_start:
nop
+
+.loop:
+ ; try to read 5 bytes
call read_input
+ ; read nothing
+ cmp rax, 0
+ je .exit
+
+ ; convert to base 32
call b32e
+ ; print
call write_output
+ jmp .loop
+
.exit:
; linux x64 exit(0)
mov rax, 60