From: Olli Savia Date: Wed, 27 Jun 2018 18:39:24 +0000 (+0300) Subject: Use common include file cbmkernal.inc X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f7fbac4c6b409182a09b1c1ac493d04d8e1d6fe8;p=cc65 Use common include file cbmkernal.inc --- diff --git a/libsrc/c128/kernal.s b/libsrc/c128/kernal.s index f3b78d00b..d4038e4cd 100644 --- a/libsrc/c128/kernal.s +++ b/libsrc/c128/kernal.s @@ -4,6 +4,8 @@ ; C128 kernal functions ; + .include "cbmkernal.inc" + .export C64MODE .export SWAPPER .export SETBNK @@ -51,50 +53,8 @@ ;----------------------------------------------------------------------------- ; 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 - diff --git a/libsrc/c16/kernal.s b/libsrc/c16/kernal.s index 7ba27b62c..5fe1cfce8 100644 --- a/libsrc/c16/kernal.s +++ b/libsrc/c16/kernal.s @@ -4,6 +4,8 @@ ; C16 kernal functions ; + .include "cbmkernal.inc" + .export CINT .export IOINIT .export RAMTAS @@ -42,48 +44,3 @@ .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 - diff --git a/libsrc/c64/kernal.s b/libsrc/c64/kernal.s index a4eaad0d7..eb1e3c37f 100644 --- a/libsrc/c64/kernal.s +++ b/libsrc/c64/kernal.s @@ -4,6 +4,8 @@ ; C64 kernal functions ; + .include "cbmkernal.inc" + .export CINT .export IOINIT .export RAMTAS @@ -42,47 +44,3 @@ .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 - diff --git a/libsrc/cbm510/kernal.s b/libsrc/cbm510/kernal.s index 9ea4f0e96..b4078b350 100644 --- a/libsrc/cbm510/kernal.s +++ b/libsrc/cbm510/kernal.s @@ -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 @@ -34,50 +36,3 @@ .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 - diff --git a/libsrc/cbm610/kernal.s b/libsrc/cbm610/kernal.s index 9ea4f0e96..b4078b350 100644 --- a/libsrc/cbm610/kernal.s +++ b/libsrc/cbm610/kernal.s @@ -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 @@ -34,50 +36,3 @@ .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 - diff --git a/libsrc/vic20/kernal.s b/libsrc/vic20/kernal.s index 040dbf5e5..a3134367a 100644 --- a/libsrc/vic20/kernal.s +++ b/libsrc/vic20/kernal.s @@ -4,6 +4,8 @@ ; VIC20 kernal functions ; + .include "cbmkernal.inc" + .export CINT .export IOINIT .export RAMTAS @@ -42,47 +44,3 @@ .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 -