Zeroing variables in RAM (zero page) added.
This commit is contained in:
+8
-1
@@ -26,7 +26,8 @@
|
|||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
icl 'definitions.asm'
|
icl 'definitions.asm'
|
||||||
;---------------------------------------------------
|
;---------------------------------------------------
|
||||||
.zpvar DliColorBack .byte = $62
|
FirstZpageVariable = $62
|
||||||
|
.zpvar DliColorBack .byte = FirstZpageVariable
|
||||||
.zpvar xdraw .word ;= $64 ;variable X for plot
|
.zpvar xdraw .word ;= $64 ;variable X for plot
|
||||||
.zpvar ydraw .word ;variable Y for plot (like in Atari Basic - Y=0 in upper right corner of the screen)
|
.zpvar ydraw .word ;variable Y for plot (like in Atari Basic - Y=0 in upper right corner of the screen)
|
||||||
.zpvar xbyte .word
|
.zpvar xbyte .word
|
||||||
@@ -230,6 +231,12 @@ FirstSTART
|
|||||||
dey
|
dey
|
||||||
bpl @-
|
bpl @-
|
||||||
|
|
||||||
|
; one time zero variables in RAM (zero page)
|
||||||
|
ldy #FirstZpageVariable
|
||||||
|
@ sta $0000,y
|
||||||
|
iny
|
||||||
|
bne @-
|
||||||
|
|
||||||
; initialize variables in RAM (non zero page)
|
; initialize variables in RAM (non zero page)
|
||||||
ldy #initialvaluesCount-1
|
ldy #initialvaluesCount-1
|
||||||
@ lda initialvaluesStart,y
|
@ lda initialvaluesStart,y
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user