]> git.sur5r.net Git - cc65/blob - asminc/cbmkernal.inc
TAB to space conversion
[cc65] / asminc / cbmkernal.inc
1 ;
2 ; Olli Savia <ops@iki.fi>
3 ;
4 ; Commodore kernal functions
5 ;
6
7 .if .def(__C64__) || .def(__C128__) || .def(__C16__)
8   CINT         := $FF81
9   IOINIT       := $FF84
10   RAMTAS       := $FF87
11 .elseif .def(__VIC20__)
12   CINT         := $E518         ; No entries are in the kernal jump table of the Vic20 for these three (3) functions.
13   IOINIT       := $FDF9         ; The entries for these functions have been set to point directly to the functions
14   RAMTAS       := $FD8D         ; in the kernal to maintain compatibility with the other Commodore platforms.
15 .elseif .def(__CBM510__) || .def(__CBM610__)
16   IOINIT       := $FF7B
17   CINT         := $FF7E
18 .endif
19
20 .if .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
21   RESTOR       := $FF8A
22   VECTOR       := $FF8D
23 .elseif .def(__CBM510__) || .def(__CBM610__)
24   VECTOR       := $FF84
25   RESTOR       := $FF87
26 .endif
27
28 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
29   SETMSG       := $FF90
30   SECOND       := $FF93
31   TKSA         := $FF96
32   MEMTOP       := $FF99
33   MEMBOT       := $FF9C
34   SCNKEY       := $FF9F
35   SETTMO       := $FFA2
36   ACPTR        := $FFA5
37   CIOUT        := $FFA8
38   UNTLK        := $FFAB
39   UNLSN        := $FFAE
40   LISTEN       := $FFB1
41   TALK         := $FFB4
42   READST       := $FFB7
43   SETLFS       := $FFBA
44   SETNAM       := $FFBD
45   OPEN         := $FFC0
46   CLOSE        := $FFC3
47 .endif
48
49 ; Available on all platforms including PET
50 CHKIN          := $FFC6
51 CKOUT          := $FFC9
52 CLRCH          := $FFCC
53 BASIN          := $FFCF
54 CHRIN          := $FFCF
55 BSOUT          := $FFD2
56 CHROUT         := $FFD2
57
58 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
59   LOAD         := $FFD5
60   SAVE         := $FFD8
61   SETTIM       := $FFDB
62   RDTIM        := $FFDE
63 .endif
64
65 ; Available on all platforms including PET
66 STOP           := $FFE1
67 GETIN          := $FFE4
68 CLALL          := $FFE7
69 UDTIM          := $FFEA
70
71 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
72   SCREEN       := $FFED
73   PLOT         := $FFF0
74   IOBASE       := $FFF3
75 .endif