-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.s
52 lines (51 loc) · 899 Bytes
/
test.s
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
51
52
;
; TEST OF 40 COLUMN MODE
;
.segment "CODE"
; clear the screen
ldx #0
: lda #32
sta $0400,x
sta $0500,x
sta $0600,x
sta $0700,x
dex
bne :-
; set text color to white
ldx #0
: lda #1
sta $D800,x
sta $D900,x
sta $DA00,x
sta $DB00,x
dex
bne :-
; set characters to a-z
ldx #1
ldy #0
lda #1
sta $0400
: lda $0400, y
sta $0400, x
inc $0400, x
inx
iny
lda $0400, y
cmp #26
bne :-
; set characters to a-z
lda #1
iny
inx
sta $0400, y
: lda $0400, y
sta $0400, x
inc $0400, x
inx
iny
lda $0400, y
cmp #26
bne :-
; set character at end of screen RAM
lda #0
sta $07e7