ED: Gotten l (list) working, need to work more on d (delete) as there's a bug with deleting lines that are not line 1.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
os_start_cli:
|
||||
pusha
|
||||
|
||||
|
||||
call os_print_newline
|
||||
|
||||
@@ -67,14 +68,14 @@ os_read_cli:
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je .ls
|
||||
|
||||
; ED
|
||||
|
||||
;ED
|
||||
mov si, user_input
|
||||
mov di, ed_string
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je .ed
|
||||
|
||||
|
||||
jmp .unkown
|
||||
|
||||
.unkown:
|
||||
@@ -85,6 +86,11 @@ os_read_cli:
|
||||
jmp .finish
|
||||
|
||||
.finish:
|
||||
; Clear the user input
|
||||
mov al, 0
|
||||
mov cx, 20
|
||||
mov di,user_input
|
||||
repe stosb
|
||||
popa
|
||||
call os_start_cli
|
||||
|
||||
|
||||
Reference in New Issue
Block a user