mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
dos
This commit is contained in:
parent
c6bfe9fa34
commit
439aa159ea
@ -11,8 +11,7 @@ strrev:
|
|||||||
|
|
||||||
; save str's location
|
; save str's location
|
||||||
; xxx why is dec'ing needed?
|
; 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
|
; go to str's end, just before
|
||||||
; the null terminator
|
; the null terminator
|
||||||
@ -36,7 +35,7 @@ strrev:
|
|||||||
jmp .2
|
jmp .2
|
||||||
|
|
||||||
.3:
|
.3:
|
||||||
mov b[ax0+2], 0
|
mov b[ax0+1], 0
|
||||||
|
|
||||||
.4:
|
.4:
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user