Starting writing an ed implementation

This commit is contained in:
deadvey
2026-03-07 20:48:34 +00:00
parent 43d0a020f7
commit 7a9b82d57c
12 changed files with 126 additions and 83 deletions

View File

@@ -30,14 +30,14 @@ os_read_cli:
mov di, help_string
call os_compare_strings
cmp cl, 1
je help
je .help
; Clear screen
mov si, user_input
mov di, clear_string
call os_compare_strings
cmp cl, 1
je clear
je .clear
; Reboot
mov si, user_input
@@ -51,21 +51,28 @@ os_read_cli:
mov di, basic_string
call os_compare_strings
cmp cl, 1
je basic
je .basic
; Cat
mov si, user_input
mov di, cat_string
call os_compare_strings
cmp cl, 1
je cat
je .cat
; LS
mov si, user_input
mov di, ls_string
call os_compare_strings
cmp cl, 1
je ls
je .ls
; ED
mov si, user_input
mov di, ed_string
call os_compare_strings
cmp cl, 1
je .ed
jmp .unkown
@@ -80,21 +87,25 @@ os_read_cli:
popa
call os_start_cli
clear:
.clear:
call os_set_text_mode
call os_read_cli.finish
help:
.help:
mov si, help_text
call os_print_string
call os_read_cli.finish
basic:
.basic:
call util_basic
call os_read_cli.finish
cat:
.cat:
call util_cat
call os_read_cli.finish
ls:
.ls:
call util_ls
call os_read_cli.finish
.ed:
call util_ed
call os_read_cli.finish