Updated kernel to process all input as upper case

This commit is contained in:
Xnoe 2021-08-31 14:31:35 +01:00
parent d9cc9a2fb6
commit 79fa2e4e60
Signed by: xnoe
GPG Key ID: 45AC398F44F0DAFE

View File

@ -160,8 +160,8 @@ data:
cmd_prompt db ">>> ", 0
cmd_err db "Bad Command or filename!", 13, 10, 13, 10, 0
cmd_help_text db "help"
cmd_clear_text db "clear"
cmd_help_text db "HELP"
cmd_clear_text db "CLEAR"
newline db 13, 10, 0
@ -215,6 +215,13 @@ readline_loop:
cmp ah, 0eh
je readline_backspace
; Process all user input as upper case
cmp al, 0x61
jl not_lower
cmp al, 0x79
jg not_lower
and al, 223
not_lower:
mov byte [di], al
inc di
inc bx