ffdda5eaca
The filesystem image is the same before and after this commit: $ sha256sum fox32os-orig.img fox32os.img abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27 fox32os-orig.img abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27 fox32os.img The conversion was performed with a few sed commands: find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0$/data.strz \1/g' find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0 /data.strz \1 /g' find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0x00 /data.strz \1 /g'
23 lines
467 B
NASM
23 lines
467 B
NASM
; clear command
|
|
|
|
const FILL_TERM: 0xF0
|
|
const MOVE_CURSOR: 0xF1
|
|
|
|
shell_clear_command_string: data.strz "clear"
|
|
|
|
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
|