1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

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
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

View 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

View 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

View 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

View 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

View 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