Clear the screen

This commit is contained in:
Pedro de Oliveira 2014-08-14 19:11:05 +01:00
parent e0cea27c98
commit 3b3f95c56f
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ org $7530
; System variables
tv_flag equ $5c3c ; TV flags variable
last_k equ $5c08 ; Last pressed key
clear_screen equ $0daf ; Rom routine to clear the screen
; Brainfuck opcodes
OP_INC_DP equ ">" ; $3e - 62
@ -57,6 +58,8 @@ start
ld (tv_flag), a ; Enables rst $10 output to the TV
push bc ; Save BC on the stack
call clear_screen
call clear_memory ; Set all memory cells to 0
ld hl, memory_start