summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-28 22:59:20 +0100
committerNao Pross <naopross@thearcway.org>2018-11-29 00:16:27 +0100
commit448d48de2715455ef47111d14b661a03efaec11a (patch)
tree2c5a25adad305508a8d3881c4aca406f1986bd07
parentCorrect write syscall argument (diff)
downloadbase32asm-448d48de2715455ef47111d14b661a03efaec11a.tar.gz
base32asm-448d48de2715455ef47111d14b661a03efaec11a.zip
Update b32e to not use rdx
Diffstat (limited to '')
-rw-r--r--b32e.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/b32e.asm b/b32e.asm
index 20d7c4b..c7ef93b 100644
--- a/b32e.asm
+++ b/b32e.asm
@@ -38,7 +38,7 @@ write_output:
; b32e
; encodes 40 bits (5 bytes) to 8 RFC4648 base32 characters
-; uses reg: rbx, rdx, r11
+; uses reg: rbx, r11
; uses mem: input_buffer, output_buffer
b32e:
; set up output counter
@@ -60,8 +60,8 @@ b32e:
; convert to base32
add rbx, rfc4648
- mov dl, byte [rbx]
- mov byte [output_buffer + r11], dl
+ mov bl, byte [rbx]
+ mov byte [output_buffer + r11], bl
; increase counter
inc r11