fox32os/applications/sh/commands/clear.asm

23 lines
475 B
NASM
Raw Normal View History

2022-11-26 02:21:28 +01:00
; 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