From: cuz Date: Sun, 4 Apr 2004 14:29:10 +0000 (+0000) Subject: Small fix X-Git-Tag: V2.12.0~854 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61238a6c4ccd27445ad12034001a114e9a999940;p=cc65 Small fix git-svn-id: svn://svn.cc65.org/cc65/trunk@2971 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/runtime/callirq.s b/libsrc/runtime/callirq.s index 9254d71b8..e824b62df 100644 --- a/libsrc/runtime/callirq.s +++ b/libsrc/runtime/callirq.s @@ -16,11 +16,12 @@ ; code avoids this by using locking mechanisms, but it's complex and ; has a size and performance penalty. ; -; As the normal condes routine, this one has the limitation of 127 table +; As the normal condes routine, this one has the limitation of 127 table ; entries. ; .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