This commit is contained in:
julianb0 2019-05-30 19:09:32 +02:00
parent c6bfe9fa34
commit 439aa159ea
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
1 changed files with 2 additions and 3 deletions

View File

@ -11,8 +11,7 @@ strrev:
; save str's location
; xxx why is dec'ing needed?
;lea rdx, b[ax1 + -1]
mov rdx, ax1
lea rdx, b[ax1 + -1]
; go to str's end, just before
; the null terminator
@ -36,7 +35,7 @@ strrev:
jmp .2
.3:
mov b[ax0+2], 0
mov b[ax0+1], 0
.4:
ret