Use new callirq function

git-svn-id: svn://svn.cc65.org/cc65/trunk@2970 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-04-04 14:28:57 +00:00
parent 5e50355f2a
commit 0d7cf8ebce
7 changed files with 413 additions and 36 deletions

View File

@@ -5,11 +5,11 @@
;
.export _exit
.import condes, initlib, donelib
.import callirq, initlib, donelib
.import zerobss
.import push0, callmain
.import RESTOR, BSOUT, CLRCH
.import __IRQFUNC_TABLE__, __IRQFUNC_COUNT__
.import __IRQFUNC_COUNT__
.import __RAM_START__, __RAM_SIZE__
.include "zeropage.inc"
@@ -171,10 +171,7 @@ IRQStub:
pha ; And save on stack
lda #MMU_CFG_CC65 ; Bank 0 with kernal ROM
sta MMU_CR
ldy #<(__IRQFUNC_COUNT__*2)
lda #<__IRQFUNC_TABLE__
ldx #>__IRQFUNC_TABLE__
jsr condes ; Call the functions
jsr callirq ; Call the functions
pla ; Get old register value
sta MMU_CR
jmp IRQInd ; Jump to the saved IRQ vector