]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/c_save.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / cbm / c_save.s
index e17471fa7f84a44debe205d119c315ef3cbe4614..115d892421ba10b1181ea2a7c4a883824925f442 100644 (file)
@@ -8,7 +8,7 @@
         .import         SAVE
         .import         popax
         .importzp       ptr1, tmp1
-                            
+
 
 _cbm_k_save:
         sta     tmp1            ; store end address
@@ -20,6 +20,7 @@ _cbm_k_save:
         ldx     tmp1
         ldy     tmp1+1
         jsr     SAVE
+       ldx     #0              ; Clear high byte
        bcs     @NotOk
-        lda     #0
+        txa
 @NotOk:        rts