idk what i added
This commit is contained in:
@@ -44,6 +44,20 @@ os_read_cli:
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je power_reboot
|
||||
|
||||
; Cat
|
||||
mov si, user_input
|
||||
mov di, cat_string
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je cat
|
||||
|
||||
; LS
|
||||
mov si, user_input
|
||||
mov di, ls_string
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je ls
|
||||
|
||||
; Pong
|
||||
mov si, user_input
|
||||
@@ -78,16 +92,9 @@ pong:
|
||||
call game_pong
|
||||
call os_read_cli.finish
|
||||
|
||||
section .data
|
||||
welcome_text db 'Welcome to CrawOS, the Cwick, Real and AWsome Operating System\n', 0
|
||||
user_input times 20 db 0
|
||||
prompt_length db 20
|
||||
prompt db 'CrawOS sh> ', 0
|
||||
help_string db 'HELP', 0
|
||||
clear_string db 'CLEAR', 0
|
||||
reboot_string db 'REBOOT', 0
|
||||
cat_string db 'CAT', 0
|
||||
pong_string db 'PONG', 0
|
||||
help_text db 'This is for Cowards:\n"HELP" for this helpful text,\n"CLEAR" to clear the screen,\n"REBOOT" or esc to reboot\n', 0
|
||||
command_result_text db 'You typed: ', 0
|
||||
unknown_command db 'Error: Unkown Command.. \n', 0
|
||||
cat:
|
||||
call util_cat
|
||||
call os_read_cli.finish
|
||||
ls:
|
||||
call util_ls
|
||||
call os_read_cli.finish
|
||||
|
||||
Reference in New Issue
Block a user