diff --git a/shell.asm b/shell.asm index f3f9799..63f0fe1 100644 --- a/shell.asm +++ b/shell.asm @@ -877,7 +877,7 @@ print_ls: ; in: ; ds:si = string ; out: -; cx = stlen +; cx = strlen strlen: push ax push di diff --git a/viewer.asm b/viewer.asm index 1cb58ab..a0d3df5 100644 --- a/viewer.asm +++ b/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 ; ------------------------------------------------------------------