]> git.sur5r.net Git - cc65/blob - libsrc/apple2/apple2.inc
Improvements by Oliver Schmidt
[cc65] / libsrc / apple2 / apple2.inc
1
2 ;-----------------------------------------------------------------------------
3 ; Zero page stuff
4
5 WNDWDTH :=      $21     ; Right edge of text window
6 CH      :=      $24     ; Cursor horizontal position
7 CV      :=      $25     ; Cursor vertical position
8 BASL    :=      $28     ; Text base address
9 INVFLG  :=      $32     ; Normal/inverse(/flash)
10 RNDL    :=      $4E     ; Random counter low
11 RNDH    :=      $4F     ; Random counter high
12 HIMEM   :=      $73     ; Highest available memory address+1
13
14 ;-----------------------------------------------------------------------------
15 ; Vectors
16
17 DOSWARM :=      $03D0   ; DOS warmstart vector
18 BRKVec  :=      $03F0   ; Break vector
19 MLI     :=      $BF00   ; ProDOS Machine Language Interface
20
21 ;-----------------------------------------------------------------------------
22 ; Hardware
23
24 ; Keyboard input
25 KBD     :=      $C000   ; Read keyboard
26 KBDSTRB :=      $C010   ; Clear keyboard strobe
27
28 ; 80 column card switches
29 CLRALTCHAR :=   $C00E   ; Normal Apple II char set
30 SETALTCHAR :=   $C00F   ; Norm/inv LC, no flash
31 ALTCHARSET :=   $C01E   ; >127 if alt charset switched in
32 RD80VID :=      $C01F   ; >127 if 80 column video enabled
33
34 ; Video soft switches
35 MIXCLR  :=      $C052   ; Disable 4 lines of text
36 MIXSET  :=      $C053   ; Enable 4 lines of text
37 LOWSCR  :=      $C054   ; Page 1
38 HISCR   :=      $C055   ; Page 2
39
40 ; Game controller
41 BUTN0   :=      $C061   ; Open-Apple Key
42 BUTN1   :=      $C062   ; Closed-Apple Key