Save some bytes by sharing the code doing the actual vector setting. Note: Jumping from segemnt INIT to segment CODE is okay while the other way wouldn't be.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5989 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2013-02-14 16:48:05 +00:00
parent 4a5bd362ac
commit 2e5823d43d
6 changed files with 12 additions and 36 deletions

View File

@@ -18,11 +18,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -31,7 +27,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli

View File

@@ -20,11 +20,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -33,7 +29,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli

View File

@@ -18,11 +18,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -31,7 +27,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli

View File

@@ -18,11 +18,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -31,7 +27,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli

View File

@@ -18,11 +18,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -31,7 +27,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli

View File

@@ -18,11 +18,7 @@ initirq:
stx IRQInd+2 stx IRQInd+2
lda #<IRQStub lda #<IRQStub
ldx #>IRQStub ldx #>IRQStub
sei jmp setvec
sta IRQVec
stx IRQVec+1
cli
rts
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
@@ -31,7 +27,7 @@ initirq:
doneirq: doneirq:
lda IRQInd+1 lda IRQInd+1
ldx IRQInd+2 ldx IRQInd+2
sei setvec: sei
sta IRQVec sta IRQVec
stx IRQVec+1 stx IRQVec+1
cli cli