2022-11-26 02:21:28 +01:00
|
|
|
; clear command
|
|
|
|
|
|
|
|
const FILL_TERM: 0xF0
|
|
|
|
const MOVE_CURSOR: 0xF1
|
|
|
|
|
2023-02-02 00:08:22 +01:00
|
|
|
shell_clear_command_string: data.strz "clear"
|
2022-11-26 02:21:28 +01:00
|
|
|
|
|
|
|
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
|