blob: da4522b1889fcccf0184933af2bbf6f1d3ddfff2 (
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
|
processor 6502
include equates.inc
init_routine = $2E00
org init_routine-6
word $FFFF
word init_routine
word end_init_routine-1
org init_routine
lda #0
sta COLOR2
lda RTCLOK+2
iloop:
cmp RTCLOK+2
beq iloop
rts
end_init_routine:
word INITAD
word INITAD+1
word init_routine
main_routine = $2F00
rorg main_routine-6
word main_routine
word end_main_routine-1
rorg main_routine
lda #$0F
sta COLOR2
lda RTCLOK+2
mloop:
cmp RTCLOK+2
beq mloop
rts
end_main_routine:
word RUNAD
word RUNAD+1
word main_routine
|