Complete redesign of the CBM610 support.

Use wrappers to call the kernal in bank 15 instead of implementing kernal
functionality within the cc65 libs (eats performance but is much smaller and
simpler).
Improved startup/shutdown code allows a return to the system bank without
calling the BASIC cold start vector.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2793 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-12-20 23:13:26 +00:00
parent 018a68a2fe
commit a7042ddbe4
28 changed files with 1086 additions and 1033 deletions

View File

@@ -5,16 +5,16 @@
;
.export set_bank, sys_bank, restore_bank
.importzp ptr1
.importzp ptr1, segsave
.include "cbm610.inc"
.include "cbm610.inc"
.code
.proc sys_bank
pha
lda IndReg
sta IndSegSave
sta segsave
lda #$0F
sta IndReg
pla
@@ -24,7 +24,7 @@
.proc set_bank
pha
lda IndReg
sta IndSegSave
sta segsave
pla
sta IndReg
rts
@@ -32,7 +32,7 @@
.proc restore_bank
pha
lda IndSegSave
lda segsave
sta IndReg
pla
rts