-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path25 - Tutorial Twenty Five.asm
More file actions
50 lines (44 loc) · 1.97 KB
/
25 - Tutorial Twenty Five.asm
File metadata and controls
50 lines (44 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;*******************************************************************************
;* Tutorial Twenty-Five Debugging Test Program *
;* *
;* Written By John C. Dale *
;* Tutorial #25 CBM Prg Studio Tutorial 005 *
;* Date : 18th Nov, 2017 *
;* *
;*******************************************************************************
;* *
;*******************************************************************************
;*******************************************************************************
;* *
;* Create DEBUG WatchList *
;* *
;*******************************************************************************
WATCH SCREENLOCATIONLO
WATCH SCREENLOCATIONHI
;*******************************************************************************
;* *
;* Assembler Static Variables *
;* *
;*******************************************************************************
SCREENLOCATIONLO = SCREENLOCATION + 1
SCREENLOCATIONHI = SCREENLOCATION + 2
*=$9000
lda #0
tax
tay
LOOPER
lda #'a'
SCREENLOCATION
sta $0400,x
inx
iny
lda SCREENLOCATION+1
clc
adc #40
sta SCREENLOCATION+1
lda SCREENLOCATION+2
adc #0
sta SCREENLOCATION+2
cpy #20
bne LOOPER
rts