Small fix

git-svn-id: svn://svn.cc65.org/cc65/trunk@2971 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-04-04 14:29:10 +00:00
parent 0d7cf8ebce
commit 61238a6c4c

View file

@ -21,6 +21,7 @@
;
.export callirq
.export callirq_y ; Same but with Y preloaded
.import __IRQFUNC_TABLE__, __IRQFUNC_COUNT__
@ -33,10 +34,10 @@
.data
.proc callirq
ldy #.lobyte(__IRQFUNC_COUNT__)
loop: dey
callirq:
ldy #.lobyte(__IRQFUNC_COUNT__*2)
callirq_y:
dey
lda __IRQFUNC_TABLE__+1,y
sta jmpvec+2 ; Modify code below
dey
@ -45,9 +46,8 @@ loop: dey
sty index+1 ; Modify code below
jmpvec: jsr $FFFF ; Patched at runtime
index: ldy #$FF ; Patched at runtime
bne loop
bne callirq_y
rts
.endproc