]> git.sur5r.net Git - cc65/blob - libsrc/apple2/apple2.inc
b6c5e400af2006003576f8f925fd51c4f046a578
[cc65] / libsrc / apple2 / apple2.inc
1
2 ;-----------------------------------------------------------------------------
3 ; Zero page stuff
4
5 WNDLFT  :=      $20     ; Text window left
6 WNDWDTH :=      $21     ; Text window width
7 WNDTOP  :=      $22     ; Text window top
8 WNDBTM  :=      $23     ; Text window bottom+1
9 CH      :=      $24     ; Cursor horizontal position
10 CV      :=      $25     ; Cursor vertical position
11 BASL    :=      $28     ; Text base address low
12 BASH    :=      $29     ; Text base address high
13 INVFLG  :=      $32     ; Normal/inverse(/flash)
14 PROMPT  :=      $33     ; Used by GETLN
15 RNDL    :=      $4E     ; Random counter low
16 RNDH    :=      $4F     ; Random counter high
17 HIMEM   :=      $73     ; Highest available memory address+1
18
19 ;-----------------------------------------------------------------------------
20 ; Vectors
21
22 DOSWARM :=      $03D0   ; DOS warmstart vector
23 BRKVec  :=      $03F0   ; Break vector
24 SOFTEV  :=      $03F2   ; Vector for warm start
25 PWREDUP :=      $03F4   ; This must be = EOR #$A5 of SOFTEV+1
26
27 ;-----------------------------------------------------------------------------
28 ; Hardware
29
30 ; Keyboard input
31 KBD     :=      $C000   ; Read keyboard
32 KBDSTRB :=      $C010   ; Clear keyboard strobe
33
34 ; 80 column card switches
35 CLR80COL:=      $C000   ; Disable 80 column store
36 SET80COL:=      $C001   ; Enable 80 column store
37 CLRALTCHAR :=   $C00E   ; Normal Apple II char set
38 SETALTCHAR :=   $C00F   ; Norm/inv LC, no flash
39 ALTCHARSET :=   $C01E   ; >127 if alt charset switched in
40 RD80VID :=      $C01F   ; >127 if 80 column video enabled
41
42 ; Video soft switches
43 MIXCLR  :=      $C052   ; Disable 4 lines of text
44 MIXSET  :=      $C053   ; Enable 4 lines of text
45 LOWSCR  :=      $C054   ; Page 1
46 HISCR   :=      $C055   ; Page 2
47 LORES   :=      $C056   ; Lores graphics
48 HIRES   :=      $C057   ; Hires graphics
49
50 ; Game controller
51 BUTN0   :=      $C061   ; Open-Apple Key
52 BUTN1   :=      $C062   ; Closed-Apple Key