]> git.sur5r.net Git - cc65/blob - libsrc/plus4/plus4.inc
New randomize() function for nearly all platforms
[cc65] / libsrc / plus4 / plus4.inc
1 ;
2 ; Plus/4 generic definitions.
3 ;
4
5
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
8
9 ST              = $90           ; IEC status byte
10
11 TIME            = $A3           ; 60HZ clock
12 FNAM_LEN        = $AB           ; Length of filename
13 SECADR          = $AD           ; Secondary address
14 DEVNUM          = $AE           ; Device number
15 KEY_COUNT       = $EF           ; Number of keys in input buffer
16 CURS_X          = $CA           ; Cursor column
17 CURS_Y          = $CD           ; Cursor row
18 SCREEN_PTR      = $C8           ; Pointer to current char in text screen
19 CRAM_PTR        = $EA           ; Pointer to current char in color RAM
20
21 CHARCOLOR       = $53B
22 FKEY_COUNT      = $55D          ; Characters for function key
23 FKEY_SPACE      = $55F          ; Function key definitions
24 FKEY_ORIG       = $F3D2         ; Original definitions
25
26 ; ---------------------------------------------------------------------------
27 ; Kernal routines
28
29 ; Direct entries
30 CLRSCR          = $D88B
31 KBDREAD         = $D8C1
32
33 ; ---------------------------------------------------------------------------
34 ; Vector and other locations
35
36 IRQVec          = $0314
37 BRKVec          = $0316
38 NMIVec          = $0318
39
40 ; ---------------------------------------------------------------------------
41 ; I/O
42
43 TED_T1LO        = $FF00
44 TED_T1HI        = $FF01
45 TED_T2LO        = $FF02
46 TED_T2HI        = $FF03
47 TED_T3LO        = $FF04
48 TED_T4HI        = $FF05
49 TED_KBD         = $FF08
50 TED_CURSHI      = $FF0C
51 TED_CURSLO      = $FF0D
52 TED_V1FRQLO     = $FF0E
53 TED_V2FRQLO     = $FF0F
54 TED_V2FRQHI     = $FF10
55 TED_BGCOLOR     = $FF15
56 TED_COLOR1      = $FF16
57 TED_COLOR2      = $FF17
58 TED_COLOR3      = $FF18
59 TED_BORDERCOLOR = $FF19
60 TED_VLINEHI     = $FF1C
61 TED_VLINELO     = $FF1D
62 TED_HPOS        = $FF1E
63 TED_ROMSEL      = $FF3E
64 TED_RAMSEL      = $FF3F
65
66
67