fox32os/applications/sh/commands/clear.asm
2023-01-21 00:17:10 -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