fox32os/kernel/shell/commands/clear.asm
2022-11-25 17:21:28 -08:00

23 lines
475 B
NASM

; clear command
const FILL_TERM: 0xF0
const MOVE_CURSOR: 0xF1
shell_clear_command_string: data.str "clear" data.8 0
shell_clear_command:
movz.8 r0, FILL_TERM
call print_character_to_terminal
movz.8 r0, 0
call print_character_to_terminal
call print_character_to_terminal
movz.8 r0, MOVE_CURSOR
call print_character_to_terminal
movz.8 r0, 0
call print_character_to_terminal
movz.8 r0, 0
call print_character_to_terminal
ret