mirror of https://github.com/falsovsky/z80.git
Doc
This commit is contained in:
parent
fd4a4ccf49
commit
b180fcc7e3
|
@ -4,7 +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
|
||||
clr_screen equ $0daf ; Rom routine to clear the screen
|
||||
|
||||
; Brainfuck opcodes
|
||||
OP_INC_DP equ ">" ; $3e - 62
|
||||
|
@ -58,7 +58,7 @@ start
|
|||
ld (tv_flag), a ; Enables rst $10 output to the TV
|
||||
push bc ; Save BC on the stack
|
||||
|
||||
call clear_screen
|
||||
call clr_screen ; Clear the screen with a ROM routine
|
||||
|
||||
call clear_memory ; Set all memory cells to 0
|
||||
|
||||
|
@ -89,6 +89,8 @@ end_main
|
|||
|
||||
; -------------------------------------
|
||||
|
||||
; Sets all BF memory cells to 0
|
||||
; Starts clearing at the end
|
||||
clear_memory
|
||||
ld bc, memory_size
|
||||
clear_memory_loop
|
||||
|
|
Loading…
Reference in New Issue