X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fc64%2Firq.s;h=10d03aa2c12b8f0460dd40b7ff163e2fe2727931;hb=85885001b133e2dc320b6f6459259afa69784ca8;hp=64e80c18e6b6621b1c9a9897b21485baab41b996;hpb=44fd1082ae807a0b6b4046c65914e20a7e27101c;p=cc65 diff --git a/libsrc/c64/irq.s b/libsrc/c64/irq.s index 64e80c18e..10d03aa2c 100644 --- a/libsrc/c64/irq.s +++ b/libsrc/c64/irq.s @@ -2,48 +2,48 @@ ; IRQ handling (C64 version) ; - .export initirq, doneirq - .import callirq + .export initirq, doneirq + .import callirq - .include "c64.inc" + .include "c64.inc" ; ------------------------------------------------------------------------ -.segment "INIT" +.segment "INIT" initirq: - lda IRQVec - ldx IRQVec+1 - sta IRQInd+1 - stx IRQInd+2 - lda #IRQStub - jmp setvec + lda IRQVec + ldx IRQVec+1 + sta IRQInd+1 + stx IRQInd+2 + lda #IRQStub + jmp setvec ; ------------------------------------------------------------------------ .code doneirq: - lda IRQInd+1 - ldx IRQInd+2 -setvec: sei - sta IRQVec - stx IRQVec+1 - cli - rts + lda IRQInd+1 + ldx IRQInd+2 +setvec: sei + sta IRQVec + stx IRQVec+1 + cli + rts ; ------------------------------------------------------------------------ -.segment "LOWCODE" +.segment "LOWCODE" IRQStub: - cld ; Just to be sure - jsr callirq ; Call the functions - jmp IRQInd ; Jump to the saved IRQ vector + cld ; Just to be sure + jsr callirq ; Call the functions + jmp IRQInd ; Jump to the saved IRQ vector ; ------------------------------------------------------------------------ .data -IRQInd: jmp $0000 +IRQInd: jmp $0000