From e7136de2628f0ccfbb08ae5442e3f148cbdfa3fa Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 18 Mar 2003 11:27:49 +0000 Subject: [PATCH] Fix toggle_videomode, move kernal entries to kernal.s git-svn-id: svn://svn.cc65.org/cc65/trunk@2034 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/c128.inc | 5 ----- libsrc/c128/c64mode.s | 3 +-- libsrc/c128/kernal.s | 10 ++++++++++ libsrc/c128/toggle_videomode.s | 5 ++--- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/libsrc/c128/c128.inc b/libsrc/c128/c128.inc index aed393980..49b808c8a 100644 --- a/libsrc/c128/c128.inc +++ b/libsrc/c128/c128.inc @@ -47,11 +47,6 @@ KBDREAD = $C006 NEWLINE = $C363 PRINT = $C322 -; Extended jump table -C64MODE = $FF4D -SWAPPER = $FF5F -SETBNK = $FF68 - ; --------------------------------------------------------------------------- ; Vectors diff --git a/libsrc/c128/c64mode.s b/libsrc/c128/c64mode.s index 88a632d36..bc3f9d36c 100644 --- a/libsrc/c128/c64mode.s +++ b/libsrc/c128/c64mode.s @@ -6,8 +6,7 @@ ; .export _c64mode - - .include "c128.inc" + .import C64MODE _c64mode = C64MODE diff --git a/libsrc/c128/kernal.s b/libsrc/c128/kernal.s index 4f7b20180..7a6ff2822 100644 --- a/libsrc/c128/kernal.s +++ b/libsrc/c128/kernal.s @@ -4,6 +4,10 @@ ; C128 kernal functions ; + .export C64MODE + .export SWAPPER + .export SETBNK + .export CINT .export IOINIT .export RAMTAS @@ -47,7 +51,13 @@ ;----------------------------------------------------------------------------- ; All functions are available in the kernal jump table + +; Extended jump table +C64MODE = $FF4D +SWAPPER = $FF5F +SETBNK = $FF68 +; CINT = $FF81 IOINIT = $FF84 RAMTAS = $FF87 diff --git a/libsrc/c128/toggle_videomode.s b/libsrc/c128/toggle_videomode.s index 873e38eb1..15931d60b 100644 --- a/libsrc/c128/toggle_videomode.s +++ b/libsrc/c128/toggle_videomode.s @@ -6,10 +6,9 @@ ; .export _toggle_videomode + .import SWAPPER, BSOUT - .include "c128.inc" - -.proc _toggle_videomode +.proc _toggle_videomode jsr SWAPPER ; Toggle the mode lda #14 -- 2.39.5