Skip to content

Commit 05f28f6

Browse files
committed
FastLED6502 for Apple ][, Apple ][+. Apple //e, and Apple //gs. Initial commit; committer should probably be committed. Build with 'xa65' assembler.
1 parent 95817e8 commit 05f28f6

File tree

4 files changed

+762
-0
lines changed

4 files changed

+762
-0
lines changed

extras/AppleII.s65

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
KBD = $C000 ;Read keydown
2+
KBDSTRB = $C010 ;Reset keybd
3+
4+
SPKR = $C030 ;Toggle speaker
5+
6+
; TTL digital output pins on
7+
; 16-pin DIP game connector
8+
SETAN0 = $C058
9+
CLRAN0 = $C059
10+
SETAN1 = $C05A
11+
CLRAN1 = $C05B
12+
SETAN2 = $C05C
13+
CLRAN2 = $C05D
14+
SETAN3 = $C05E
15+
CLRAN3 = $C05F
16+
17+
PIN12ON = CLRAN3
18+
PIN12OFF= SETAN3
19+
PIN13ON = CLRAN2
20+
PIN13OFF= SETAN2
21+
PIN14ON = CLRAN1
22+
PIN14OFF= SETAN1
23+
PIN15ON = CLRAN0
24+
PIN15OFF= SETAN0
25+
26+
;Special for pin 5, except on //gs
27+
C040STROBE = $C040
28+
PIN5STROBE = C040STROBE
29+
30+
SolidApple = $C062 ; read SW1 or SA
31+
OpenApple = $C061 ; read SW0 or OA
32+
33+
VBL = $C019 ; vertical blanking
34+
35+
WAIT = $FCA8 ; wait a little while
36+
37+
CROUT = $FD8E ; print a CR
38+
PRBYTE = $FDDA ; print a hex byte
39+
40+

0 commit comments

Comments
 (0)