mirror of https://github.com/falsovsky/z80.git
Clear the screen
This commit is contained in:
parent
e0cea27c98
commit
3b3f95c56f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue