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:
@@ -6,13 +6,20 @@
|
||||
|
||||
.export READST
|
||||
|
||||
.import sys_bank, restore_bank
|
||||
.import sysp0: zp, ktmp: zp
|
||||
|
||||
.include "cbm610.inc"
|
||||
|
||||
|
||||
.proc READST
|
||||
|
||||
lda ST ; Load status
|
||||
rts ; Return to caller
|
||||
jsr sys_bank
|
||||
sty ktmp ; Save Y register
|
||||
ldy #ST
|
||||
lda (sysp0),y ; Load ST from system bank
|
||||
ldy ktmp
|
||||
jmp restore_bank ; Will set condition codes on A
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user