1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Fixed an error in the reset_brk() routine of all target machines (all the code

was derived from my old C64 code which had an error).


git-svn-id: svn://svn.cc65.org/cc65/trunk@900 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-09-13 15:29:13 +00:00
parent 6d4953870a
commit 0856c6debc
6 changed files with 42 additions and 30 deletions

View File

@ -44,9 +44,9 @@ uservec: jmp $FFFF ; Patched at runtime
sta oldvec+1 ; Save the old vector
L1: lda #<brk_handler ; Set the break vector to our routine
ldx #>brk_handler
sta BRKVec
lda #>brk_handler
sta BRKVec+1
stx BRKVec+1
rts
.endproc
@ -56,11 +56,13 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta BRKVec
sta BRKVec
stx BRKVec+1
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc

View File

@ -36,7 +36,7 @@ uservec: jmp $FFFF ; Patched at runtime
lda oldvec
ora oldvec+1 ; Did we save the vector already?
bne L1 ; Jump if we installed the handler already
bne L1 ; Jump if we installed the handler already
lda VBREAK
sta oldvec
@ -56,12 +56,14 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta VBREAK
sta VBREAK
stx VBREAK+1
@L9: rts
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc

View File

@ -44,9 +44,9 @@ uservec: jmp $FFFF ; Patched at runtime
sta oldvec+1 ; Save the old vector
L1: lda #<brk_handler ; Set the break vector to our routine
ldx #>brk_handler
sta BRKVec
lda #>brk_handler
sta BRKVec+1
stx BRKVec+1
rts
.endproc
@ -56,11 +56,13 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta BRKVec
sta BRKVec
stx BRKVec+1
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc

View File

@ -46,9 +46,9 @@ uservec: jmp $FFFF ; Patched at runtime
sta oldvec+1 ; Save the old vector
L1: lda #<brk_handler ; Set the break vector to our routine
ldx #>brk_handler
sta BRKVec
lda #>brk_handler
sta BRKVec+1
stx BRKVec+1
rts
.endproc
@ -58,11 +58,13 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta BRKVec
sta BRKVec
stx BRKVec+1
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc

View File

@ -44,9 +44,9 @@ uservec: jmp $FFFF ; Patched at runtime
sta oldvec+1 ; Save the old vector
L1: lda #<brk_handler ; Set the break vector to our routine
ldx #>brk_handler
sta BRKVec
lda #>brk_handler
sta BRKVec+1
stx BRKVec+1
rts
.endproc
@ -56,11 +56,13 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta BRKVec
sta BRKVec
stx BRKVec+1
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc

View File

@ -44,9 +44,9 @@ uservec: jmp $FFFF ; Patched at runtime
sta oldvec+1 ; Save the old vector
L1: lda #<brk_handler ; Set the break vector to our routine
ldx #>brk_handler
sta BRKVec
lda #>brk_handler
sta BRKVec+1
stx BRKVec+1
rts
.endproc
@ -56,11 +56,13 @@ L1: lda #<brk_handler ; Set the break vector to our routine
.proc _reset_brk
lda oldvec
bne @L1
ldx oldvec
ldx oldvec+1
beq @L9 ; Jump if vector not installed
@L1: sta BRKVec
sta BRKVec
stx BRKVec+1
lda #$00
sta oldvec ; Clear the old vector
stx oldvec+1
@L9: rts
.endproc