]> git.sur5r.net Git - cc65/blob - asminc/cbmkernal.inc
Added asminc/cbmkernal.inc
[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   VECTOR       := $FF84
19   RESTOR       := $FF87
20 .endif
21
22 .if .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
23  RESTOR        := $FF8A
24  VECTOR        := $FF8D
25 .endif
26
27 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
28   SETMSG       := $FF90
29   SECOND       := $FF93
30   TKSA         := $FF96
31   MEMTOP       := $FF99
32   MEMBOT       := $FF9C
33   SCNKEY       := $FF9F
34   SETTMO       := $FFA2
35   ACPTR        := $FFA5
36   CIOUT        := $FFA8
37   UNTLK        := $FFAB
38   UNLSN        := $FFAE
39   LISTEN       := $FFB1
40   TALK         := $FFB4
41   READST       := $FFB7
42   SETLFS       := $FFBA
43   SETNAM       := $FFBD
44   OPEN         := $FFC0
45   CLOSE        := $FFC3
46 .endif
47
48 ; Available on all platforms including PET
49 CHKIN          := $FFC6
50 CKOUT          := $FFC9
51 CLRCH          := $FFCC
52 BASIN          := $FFCF
53 CHRIN          := $FFCF
54 BSOUT          := $FFD2
55 CHROUT         := $FFD2
56
57 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
58   LOAD         := $FFD5
59   SAVE         := $FFD8
60   SETTIM       := $FFDB
61   RDTIM        := $FFDE
62 .endif
63
64 ; Available on all platforms including PET
65 STOP           := $FFE1
66 GETIN          := $FFE4
67 CLALL          := $FFE7
68 UDTIM          := $FFEA
69
70 .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__)
71   SCREEN       := $FFED
72   PLOT         := $FFF0
73   IOBASE       := $FFF3
74 .endif