Remove strlen from viewer
This commit is contained in:
parent
544fb12af9
commit
ef119b1e1b
|
@ -877,7 +877,7 @@ print_ls:
|
||||||
; in:
|
; in:
|
||||||
; ds:si = string
|
; ds:si = string
|
||||||
; out:
|
; out:
|
||||||
; cx = stlen
|
; cx = strlen
|
||||||
strlen:
|
strlen:
|
||||||
push ax
|
push ax
|
||||||
push di
|
push di
|
||||||
|
|
28
viewer.asm
28
viewer.asm
|
@ -1072,34 +1072,6 @@ request_redraw:
|
||||||
pop ax
|
pop ax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ------------------------------------------------------------------
|
|
||||||
; String functions
|
|
||||||
; ------------------------------------------------------------------
|
|
||||||
|
|
||||||
; in:
|
|
||||||
; ds:si = string
|
|
||||||
; out:
|
|
||||||
; cx = stlen
|
|
||||||
strlen:
|
|
||||||
push ax
|
|
||||||
push di
|
|
||||||
push es
|
|
||||||
|
|
||||||
mov cx, ds
|
|
||||||
mov es, cx
|
|
||||||
mov di, si
|
|
||||||
|
|
||||||
mov cx, -1
|
|
||||||
xor ax, ax
|
|
||||||
repne scasb
|
|
||||||
not cx
|
|
||||||
dec cx
|
|
||||||
|
|
||||||
pop es
|
|
||||||
pop di
|
|
||||||
pop ax
|
|
||||||
ret
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------
|
; ------------------------------------------------------------------
|
||||||
; Variables
|
; Variables
|
||||||
; ------------------------------------------------------------------
|
; ------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue