-
Notifications
You must be signed in to change notification settings - Fork 2
/
blinky-top.eeprom
78 lines (71 loc) · 2.4 KB
/
blinky-top.eeprom
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo disable
# Two loops at different addresses: put LED on A4 for blinky
@verify clear
program 000 *
# F800 MAIN
58 # F800 CLI
A9 FF # F801 LDA #$FF
A8 # F803 TAY
EA # F804 NOP
EA # F805 NOP
EA # F806 NOP
EA # F807 NOP
EA # F808 NOP
EA # F809 NOP
EA # F80A NOP
EA # F80B NOP
EA # F80C NOP
EA # F80D NOP
EA # F80E NOP
EA # F80F NOP
# F810 SUB1
98 # F810 TYA
AA # F811 TAX
# F812 LOOP1
A9 C0 # F812 LDA #$C0
# F814 LOOP1I
38 # F814 SEC
69 00 # F815 ADC #$00
D0 FB # F817 BNE LOOP1I
CA # F819 DEX
D0 F6 # F81A BNE LOOP1
88 # F81C DEY
4C 20 F8 # F81D JMP SUB2
# F820 SUB2
98 # F820 TYA
AA # F821 TAX
# F822 LOOP2
A9 C0 # F822 LDA #$C0
# F824 LOOP2I
38 # F824 SEC
69 00 # F825 ADC #$00
D0 FB # F827 BNE LOOP2I
CA # F829 DEX
D0 F6 # F82A BNE LOOP2
88 # F82C DEY
4C 10 F8 # F82D JMP SUB1
# F830 SUB3
98 # F830 TYA
AA # F831 TAX
# F832 LOOP3
A9 00 # F832 LDA #$00
# F834 LOOP3I
38 # F834 SEC
69 00 # F835 ADC #$00
D0 FB # F837 BNE LOOP3I
CA # F839 DEX
D0 F6 # F83A BNE LOOP3
EA # F83C NOP
EA # F83D NOP
EA # F83E NOP
40 # F83F RTI
*
echo line
program 7FC 00 F8
program 7FE 30 F8
echo line
read 000 40
read 7F0 10
echo line
verify print
@echo enable