diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-28 21:24:44 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-28 21:24:44 +0100 |
commit | b92ae73df00266f668abc10f6a492aad30692a31 (patch) | |
tree | 72360aedad2bb30dec6a8bab43f50ca2dc961707 | |
parent | Use 4 spaces for indent, update comments, change input buffer shift direction (diff) | |
download | base32asm-b92ae73df00266f668abc10f6a492aad30692a31.tar.gz base32asm-b92ae73df00266f668abc10f6a492aad30692a31.zip |
Add main loop to read more than 5 bytes
Diffstat (limited to '')
-rw-r--r-- | b32e.asm | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |