NEWLINE = $C363
PRINT = $C322
-; Extended jump table
-C64MODE = $FF4D
-SWAPPER = $FF5F
-SETBNK = $FF68
-
; ---------------------------------------------------------------------------
; Vectors
;
.export _c64mode
-
- .include "c128.inc"
+ .import C64MODE
_c64mode = C64MODE
; C128 kernal functions
;
+ .export C64MODE
+ .export SWAPPER
+ .export SETBNK
+
.export CINT
.export IOINIT
.export RAMTAS
;-----------------------------------------------------------------------------
; All functions are available in the kernal jump table
+
+; Extended jump table
+C64MODE = $FF4D
+SWAPPER = $FF5F
+SETBNK = $FF68
+;
CINT = $FF81
IOINIT = $FF84
RAMTAS = $FF87
;
.export _toggle_videomode
+ .import SWAPPER, BSOUT
- .include "c128.inc"
-
-.proc _toggle_videomode
+.proc _toggle_videomode
jsr SWAPPER ; Toggle the mode
lda #14