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

View File

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