From: cuz Date: Thu, 13 Sep 2001 15:29:13 +0000 (+0000) Subject: Fixed an error in the reset_brk() routine of all target machines (all the code X-Git-Tag: V2.12.0~2681 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0856c6debca5751aa1af22b6dfcc1a1bc9e89ebe;p=cc65 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 --- diff --git a/libsrc/apple2/break.s b/libsrc/apple2/break.s index d9d029805..b4f44977a 100644 --- a/libsrc/apple2/break.s +++ b/libsrc/apple2/break.s @@ -44,9 +44,9 @@ uservec: jmp $FFFF ; Patched at runtime sta oldvec+1 ; Save the old vector L1: lda #brk_handler sta BRKVec - lda #>brk_handler - sta BRKVec+1 + stx BRKVec+1 rts .endproc @@ -56,11 +56,13 @@ L1: lda #brk_handler sta BRKVec - lda #>brk_handler - sta BRKVec+1 + stx BRKVec+1 rts .endproc @@ -56,11 +56,13 @@ L1: lda #brk_handler sta BRKVec - lda #>brk_handler - sta BRKVec+1 + stx BRKVec+1 rts .endproc @@ -58,11 +58,13 @@ L1: lda #brk_handler sta BRKVec - lda #>brk_handler - sta BRKVec+1 + stx BRKVec+1 rts .endproc @@ -56,11 +56,13 @@ L1: lda #brk_handler sta BRKVec - lda #>brk_handler - sta BRKVec+1 + stx BRKVec+1 rts .endproc @@ -56,11 +56,13 @@ L1: lda #