dos
This commit is contained in:
parent
58ca78f1f1
commit
c6bfe9fa34
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue