Remove strlen from viewer

This commit is contained in:
shikhin 2023-03-26 20:13:04 +05:30
parent 544fb12af9
commit ef119b1e1b
2 changed files with 1 additions and 29 deletions

View File

@ -877,7 +877,7 @@ print_ls:
; in:
; ds:si = string
; out:
; cx = stlen
; cx = strlen
strlen:
push ax
push di

View File

@ -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
; ------------------------------------------------------------------