mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fix wrong offset of irq vector byte used as on/off flag.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5410 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3f8ceff73f
commit
75b83260c6
@ -1,4 +1,4 @@
|
|||||||
;
|
;
|
||||||
; Oliver Schmidt, 2012-01-18
|
; Oliver Schmidt, 2012-01-18
|
||||||
;
|
;
|
||||||
; void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size);
|
; void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size);
|
||||||
@ -44,7 +44,7 @@
|
|||||||
.proc _reset_irq
|
.proc _reset_irq
|
||||||
|
|
||||||
lda #$00
|
lda #$00
|
||||||
sta irqvec+3 ; High byte is enough
|
sta irqvec+2 ; High byte is enough
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
@ -53,7 +53,7 @@
|
|||||||
.proc clevel_irq
|
.proc clevel_irq
|
||||||
|
|
||||||
; Is C level interrupt request vector set?
|
; Is C level interrupt request vector set?
|
||||||
lda irqvec+3 ; High byte is enough
|
lda irqvec+2 ; High byte is enough
|
||||||
bne @L1
|
bne @L1
|
||||||
clc ; Interrupt not handled
|
clc ; Interrupt not handled
|
||||||
rts
|
rts
|
||||||
@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
; Call C level interrupt request handler
|
; Call C level interrupt request handler
|
||||||
jsr irqvec
|
jsr irqvec
|
||||||
|
|
||||||
; Copy back our zero page content
|
; Copy back our zero page content
|
||||||
ldx #zpspace-1
|
ldx #zpspace-1
|
||||||
@L3: ldy zpsave,x
|
@L3: ldy zpsave,x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user