BASIC Interpreter from MikeOS is functioning
This commit is contained in:
@@ -18,7 +18,7 @@ os_start_cli:
|
||||
os_read_cli:
|
||||
pusha
|
||||
mov si, user_input
|
||||
call os_upper_case ; Make the input uppercase so it's case insensitive
|
||||
call string_upper_case ; Make the input uppercase so it's case insensitive
|
||||
|
||||
.output_the_user_input:
|
||||
call os_print_newline
|
||||
@@ -45,6 +45,13 @@ os_read_cli:
|
||||
cmp cl, 1
|
||||
je power_reboot
|
||||
|
||||
; Basic
|
||||
mov si, user_input
|
||||
mov di, basic_string
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je basic
|
||||
|
||||
; Cat
|
||||
mov si, user_input
|
||||
mov di, cat_string
|
||||
@@ -59,13 +66,6 @@ os_read_cli:
|
||||
cmp cl, 1
|
||||
je ls
|
||||
|
||||
; Pong
|
||||
mov si, user_input
|
||||
mov di, pong_string
|
||||
call os_compare_strings
|
||||
cmp cl, 1
|
||||
je pong
|
||||
|
||||
jmp .unkown
|
||||
|
||||
.unkown:
|
||||
@@ -88,10 +88,9 @@ help:
|
||||
call os_print_string
|
||||
call os_read_cli.finish
|
||||
|
||||
pong:
|
||||
call game_pong
|
||||
basic:
|
||||
call util_basic
|
||||
call os_read_cli.finish
|
||||
|
||||
cat:
|
||||
call util_cat
|
||||
call os_read_cli.finish
|
||||
|
||||
Reference in New Issue
Block a user