]> git.sur5r.net Git - cc65/blob - asminc/apple2.inc
Fixed _textcolor definition.
[cc65] / asminc / 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 video switches
35 CLR80COL:=      $C000   ; Disable 80 column store
36 SET80COL:=      $C001   ; Enable 80 column store
37 RD80COL :=      $C018   ; >127 if 80 column store enabled
38 RD80VID :=      $C01F   ; >127 if 80 column video enabled
39
40 ; Character set switches
41 CLRALTCHAR :=   $C00E   ; Normal Apple II char set
42 SETALTCHAR :=   $C00F   ; Norm/inv LC, no flash
43 ALTCHARSET :=   $C01E   ; >127 if alt charset switched in
44
45 ; Language card switches
46 RDLCBNK2:=      $C011   ; >127 if LC bank 2 in use
47 RDLCRAM :=      $C012   ; >127 if LC is read enabled
48 ROMIN   :=      $C081   ; Swap in D000-FFFF ROM
49 LCBANK2 :=      $C083   ; Swap in LC bank 2
50 LCBANK1 :=      $C08B   ; Swap in LC bank 1
51
52 ; Video mode switches
53 TXTCLR  :=      $C050   ; Display graphics
54 TXTSET  :=      $C051   ; Display text
55 MIXCLR  :=      $C052   ; Disable 4 lines of text
56 MIXSET  :=      $C053   ; Enable 4 lines of text
57 LOWSCR  :=      $C054   ; Page 1
58 HISCR   :=      $C055   ; Page 2
59 LORES   :=      $C056   ; Lores graphics
60 HIRES   :=      $C057   ; Hires graphics
61
62 ; Game controller
63 BUTN0   :=      $C061   ; Open-Apple Key
64 BUTN1   :=      $C062   ; Closed-Apple Key