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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user