]> git.sur5r.net Git - cc65/commitdiff
Use common include file cbmkernal.inc
authorOlli Savia <ops@iki.fi>
Wed, 27 Jun 2018 18:39:24 +0000 (21:39 +0300)
committerOlli Savia <ops@iki.fi>
Wed, 27 Jun 2018 18:39:24 +0000 (21:39 +0300)
libsrc/c128/kernal.s
libsrc/c16/kernal.s
libsrc/c64/kernal.s
libsrc/cbm510/kernal.s
libsrc/cbm610/kernal.s
libsrc/vic20/kernal.s

index f3b78d00bbc8e73a42c3d6bddc5c2017ea168b7b..d4038e4cd614e410e4c49cdef98dffc6d29f48a2 100644 (file)
@@ -4,6 +4,8 @@
 ; C128 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         C64MODE
         .export         SWAPPER
         .export         SETBNK
 
 ;-----------------------------------------------------------------------------
 ; All functions are available in the kernal jump table
+
 ; Extended jump table
 C64MODE         = $FF4D
 SWAPPER         = $FF5F
 SETBNK          = $FF68
-
-;
-CINT            = $FF81
-IOINIT          = $FF84
-RAMTAS          = $FF87
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-READST          = $FFB7
-SETLFS          = $FFBA
-SETNAM          = $FFBD
-OPEN            = $FFC0
-CLOSE           = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-SETTIM          = $FFDB
-RDTIM           = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-UDTIM           = $FFEA
-SCREEN          = $FFED
-PLOT            = $FFF0
-IOBASE          = $FFF3
-
index 7ba27b62c67200f04e825179d4371e7b733a768f..5fe1cfce869e668f2bf230d2eec3c4626e0932f9 100644 (file)
@@ -4,6 +4,8 @@
 ; C16 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         CINT
         .export         IOINIT
         .export         RAMTAS
         .export         SCREEN
         .export         PLOT
         .export         IOBASE
-
-
-;-----------------------------------------------------------------------------
-; All functions are available in the kernal jump table
-
-CINT            = $FF81
-IOINIT          = $FF84
-RAMTAS          = $FF87
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-READST          = $FFB7
-SETLFS          = $FFBA
-SETNAM          = $FFBD
-OPEN            = $FFC0
-;CLOSE          = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-SETTIM          = $FFDB
-RDTIM           = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-UDTIM           = $FFEA
-SCREEN          = $FFED
-PLOT            = $FFF0
-IOBASE          = $FFF3
-
index a4eaad0d7e3f0ce8e15215d65c2b948ce821e911..eb1e3c37f3057e3292dfa7e124157057d54791e4 100644 (file)
@@ -4,6 +4,8 @@
 ; C64 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         CINT
         .export         IOINIT
         .export         RAMTAS
         .export         UDTIM
         .export         SCREEN
         .export         IOBASE
-
-
-;-----------------------------------------------------------------------------
-; All functions are available in the kernal jump table
-
-CINT            = $FF81
-IOINIT          = $FF84
-RAMTAS          = $FF87
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-READST          = $FFB7
-SETLFS          = $FFBA
-SETNAM          = $FFBD
-OPEN            = $FFC0
-CLOSE           = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-SETTIM          = $FFDB
-RDTIM           = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-UDTIM           = $FFEA
-SCREEN          = $FFED
-IOBASE          = $FFF3
-
index 9ea4f0e96272ea8c85e2f78ef589fb1595cdabf0..b4078b35079ee8bd06c385a3f47b0e6e1e080823 100644 (file)
@@ -4,9 +4,11 @@
 ; CBM610 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         CINT
         .export         IOINIT
-        .export         RAMTAS
+;        .export         RAMTAS ; not available???
         .export         RESTOR
         .export         VECTOR
         .export         SETMSG
         .export         GETIN
         .export         CLALL
         .export         PLOT
-
-
-;-----------------------------------------------------------------------------
-; All functions are available in the kernal jump table. Functions having
-; replacements (usually short ones where the overhead of the cross bank call
-; is not worth the trouble) are commented out.
-
-CINT            = $FF81
-IOINIT          = $FF84
-RAMTAS          = $FF87
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-;READST         = $FFB7
-SETLFS          = $FFBA
-;SETNAM         = $FFBD
-;OPEN           = $FFC0
-;CLOSE          = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-;SETTIM         = $FFDB
-;RDTIM          = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-;UDTIM          = $FFEA
-;SCREEN         = $FFED
-PLOT            = $FFF0
-;IOBASE         = $FFF3
-
index 9ea4f0e96272ea8c85e2f78ef589fb1595cdabf0..b4078b35079ee8bd06c385a3f47b0e6e1e080823 100644 (file)
@@ -4,9 +4,11 @@
 ; CBM610 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         CINT
         .export         IOINIT
-        .export         RAMTAS
+;        .export         RAMTAS ; not available???
         .export         RESTOR
         .export         VECTOR
         .export         SETMSG
         .export         GETIN
         .export         CLALL
         .export         PLOT
-
-
-;-----------------------------------------------------------------------------
-; All functions are available in the kernal jump table. Functions having
-; replacements (usually short ones where the overhead of the cross bank call
-; is not worth the trouble) are commented out.
-
-CINT            = $FF81
-IOINIT          = $FF84
-RAMTAS          = $FF87
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-;READST         = $FFB7
-SETLFS          = $FFBA
-;SETNAM         = $FFBD
-;OPEN           = $FFC0
-;CLOSE          = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-;SETTIM         = $FFDB
-;RDTIM          = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-;UDTIM          = $FFEA
-;SCREEN         = $FFED
-PLOT            = $FFF0
-;IOBASE         = $FFF3
-
index 040dbf5e51df086adf38c805c3f6d4f38e4f9e36..a3134367afcadab35e68626a84fb9901a7d40387 100644 (file)
@@ -4,6 +4,8 @@
 ; VIC20 kernal functions
 ;
 
+       .include "cbmkernal.inc"
+
         .export         CINT
         .export         IOINIT
         .export         RAMTAS
         .export         UDTIM
         .export         SCREEN
         .export         IOBASE
-
-
-;-----------------------------------------------------------------------------
-; All functions are available in the kernal jump table
-
-CINT            = $E518         ; No entries are in the kernal jump table of the Vic20 for these three (3) functions.
-IOINIT          = $FDF9         ; The entries for these functions have been set to point directly to the functions 
-RAMTAS          = $FD8D         ; in the kernal to maintain compatibility with the other Commodore platforms.
-RESTOR          = $FF8A
-VECTOR          = $FF8D
-SETMSG          = $FF90
-SECOND          = $FF93
-TKSA            = $FF96
-MEMTOP          = $FF99
-MEMBOT          = $FF9C
-SCNKEY          = $FF9F
-SETTMO          = $FFA2
-ACPTR           = $FFA5
-CIOUT           = $FFA8
-UNTLK           = $FFAB
-UNLSN           = $FFAE
-LISTEN          = $FFB1
-TALK            = $FFB4
-READST          = $FFB7
-SETLFS          = $FFBA
-SETNAM          = $FFBD
-OPEN            = $FFC0
-CLOSE           = $FFC3
-CHKIN           = $FFC6
-CKOUT           = $FFC9
-CLRCH           = $FFCC
-BASIN           = $FFCF
-BSOUT           = $FFD2
-LOAD            = $FFD5
-SAVE            = $FFD8
-SETTIM          = $FFDB
-RDTIM           = $FFDE
-STOP            = $FFE1
-GETIN           = $FFE4
-CLALL           = $FFE7
-UDTIM           = $FFEA
-SCREEN          = $FFED
-IOBASE          = $FFF3
-