]> git.sur5r.net Git - cc65/commitdiff
Save some bytes by sharing the code doing the actual vector setting. Note: Jumping...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Feb 2013 16:48:05 +0000 (16:48 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Feb 2013 16:48:05 +0000 (16:48 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5989 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atmos/irq.s
libsrc/c128/irq.s
libsrc/c16/irq.s
libsrc/c64/irq.s
libsrc/pet/irq.s
libsrc/vic20/irq.s

index 4f022736153fab92dda00af51aecff2139a468c2..c022eccd4127710bba9d7b848e40772318630271 100644 (file)
@@ -18,11 +18,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -31,7 +27,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli
index aad4679688b478a5a436748cdad525f0a5c26e49..d468eeaaab741e2d0c43ca69ee7560be74ea5275 100644 (file)
@@ -20,11 +20,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -33,7 +29,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli
index 81549cb6ece5b71f102ff43749d62af4e9e56afb..224f5745d6e71b4e87a0cfcc6ffbd9bb72cd3cbe 100644 (file)
@@ -18,11 +18,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -31,7 +27,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli
index bab462458ca22ad23ebfc207081a81902b06003c..64e80c18e6b6621b1c9a9897b21485baab41b996 100644 (file)
@@ -18,11 +18,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -31,7 +27,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli
index 5effd709780d70456e8a09aeea5d10156307c671..64a29ea35da313a721a32017bbd4b0618ab736ce 100644 (file)
@@ -18,11 +18,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -31,7 +27,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli
index c6bc137faf5e5ddaa46b3076866f916bfdd15007..6e5099e4a928ba6b771271aee5e27796a3658646 100644 (file)
@@ -18,11 +18,7 @@ initirq:
        stx     IRQInd+2
        lda     #<IRQStub
        ldx     #>IRQStub
-       sei
-       sta     IRQVec
-       stx     IRQVec+1
-       cli
-       rts
+       jmp     setvec
 
 ; ------------------------------------------------------------------------
 
@@ -31,7 +27,7 @@ initirq:
 doneirq:
        lda     IRQInd+1
        ldx     IRQInd+2
-       sei
+setvec:        sei
        sta     IRQVec
        stx     IRQVec+1
        cli