Fix toggle_videomode, move kernal entries to kernal.s

git-svn-id: svn://svn.cc65.org/cc65/trunk@2034 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-03-18 11:27:49 +00:00
parent 6ee425e6bb
commit e7136de262
4 changed files with 13 additions and 10 deletions

View File

@@ -47,11 +47,6 @@ KBDREAD = $C006
NEWLINE = $C363 NEWLINE = $C363
PRINT = $C322 PRINT = $C322
; Extended jump table
C64MODE = $FF4D
SWAPPER = $FF5F
SETBNK = $FF68
; --------------------------------------------------------------------------- ; ---------------------------------------------------------------------------
; Vectors ; Vectors

View File

@@ -6,8 +6,7 @@
; ;
.export _c64mode .export _c64mode
.import C64MODE
.include "c128.inc"
_c64mode = C64MODE _c64mode = C64MODE

View File

@@ -4,6 +4,10 @@
; C128 kernal functions ; C128 kernal functions
; ;
.export C64MODE
.export SWAPPER
.export SETBNK
.export CINT .export CINT
.export IOINIT .export IOINIT
.export RAMTAS .export RAMTAS
@@ -47,7 +51,13 @@
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; All functions are available in the kernal jump table ; All functions are available in the kernal jump table
; Extended jump table
C64MODE = $FF4D
SWAPPER = $FF5F
SETBNK = $FF68
;
CINT = $FF81 CINT = $FF81
IOINIT = $FF84 IOINIT = $FF84
RAMTAS = $FF87 RAMTAS = $FF87

View File

@@ -6,10 +6,9 @@
; ;
.export _toggle_videomode .export _toggle_videomode
.import SWAPPER, BSOUT
.include "c128.inc" .proc _toggle_videomode
.proc _toggle_videomode
jsr SWAPPER ; Toggle the mode jsr SWAPPER ; Toggle the mode
lda #14 lda #14