Remove strlen from viewer
This commit is contained in:
parent
544fb12af9
commit
ef119b1e1b
|
@ -877,7 +877,7 @@ print_ls:
|
|||
; in:
|
||||
; ds:si = string
|
||||
; out:
|
||||
; cx = stlen
|
||||
; cx = strlen
|
||||
strlen:
|
||||
push ax
|
||||
push di
|
||||
|
|
28
viewer.asm
28
viewer.asm
|
@ -1072,34 +1072,6 @@ request_redraw:
|
|||
pop ax
|
||||
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
|
||||
; ------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue