Hi
Spotted an error if anybody was looking closely.
Quote:
...yes it was a 10ms timer interrupt
JMP ($04F0) ; jump to vector1 interrupt
_vector1_return:
INC SYSTEM_TIMER
CLC
LDA SYSTEM_TIMER
CMP #$64 ; HAS TIMER REACHED 100 (0x64)
BCC _exit_irq
LDA #$00
STA SYSTEM_TIMER
INC SYSTEM_SECONDS
JMP ($04F2) ; jump to vector2 interrupt
_vector2_return:
_not_via:
JMP ($04F4) ; jump to vector3 interrupt
_vector3_return:
_exit_irq:
PLA
PLX
PLY
_irq_last_byte_address:
RTI ; Return from IRQ interrupt
the line BCC _exit_irq should be a BCC to _not_via
otherwise the JMP(indirect) for vector3 will be missed.
This is still all work in progress so testing is limited.
Regards
Andre