blob: e06ac482c6d6a7dba9853850ab7c1a8142d95301 (
plain)
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
53
54
55
56
57
58
59
60
|
.org 0
scr_ptr:
.res 2
ptr:
.res 8
ptr2:
.res 8
.org $2000
buf:
.res $2000
.org $8000
reset:
cps
ldx.d
txs
@bench:
tay
lda.w
sta.w scr_ptr
lda.d
jsr clr_arr
bra @bench
clr_arr:
phb
ldb
sta.q ptr
adc
sta.q ptr2
tba
@loop:
cpy.w scr_ptr
bcs @end
sta.q (ptr), y
sta.q (ptr2), y
tya
adc
tay
tba
sta.q (ptr), y
sta.q (ptr2), y
tya
adc
tay
tba
bra @loop
@end:
tay
plb
rts
.org $FFC0
.qword reset
a
d
|