From b180fcc7e37a4be155757f9c40fd70a55ff8141c Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Date: Thu, 14 Aug 2014 19:24:10 +0100 Subject: [PATCH] Doc --- zxbrainfuck/main.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zxbrainfuck/main.asm b/zxbrainfuck/main.asm index bf0fbda..510cff6 100644 --- a/zxbrainfuck/main.asm +++ b/zxbrainfuck/main.asm @@ -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