Fixed an error in cbm_k_save (on which cbm_save is based): The X register was
not cleared on return. git-svn-id: svn://svn.cc65.org/cc65/trunk@4048 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
.import SAVE
|
.import SAVE
|
||||||
.import popax
|
.import popax
|
||||||
.importzp ptr1, tmp1
|
.importzp ptr1, tmp1
|
||||||
|
|
||||||
|
|
||||||
_cbm_k_save:
|
_cbm_k_save:
|
||||||
sta tmp1 ; store end address
|
sta tmp1 ; store end address
|
||||||
@@ -20,6 +20,7 @@ _cbm_k_save:
|
|||||||
ldx tmp1
|
ldx tmp1
|
||||||
ldy tmp1+1
|
ldy tmp1+1
|
||||||
jsr SAVE
|
jsr SAVE
|
||||||
|
ldx #0 ; Clear high byte
|
||||||
bcs @NotOk
|
bcs @NotOk
|
||||||
lda #0
|
txa
|
||||||
@NotOk: rts
|
@NotOk: rts
|
||||||
|
|||||||
Reference in New Issue
Block a user