]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/c_open.s
Move the initialization code from conio.s as constructor/destructor code
[cc65] / libsrc / cbm / c_open.s
index c6c9d9270932f1e3039b7d2048a84718604f0933..300aa54ad5a0e1010dd49ccc92ccfaadef5abbf3 100644 (file)
@@ -4,12 +4,13 @@
 ; unsigned char __fastcall__ cbm_k_open (void);
 ;
 
-       .include        "cbm.inc"
-
                .export         _cbm_k_open
+        .import         OPEN
+
 
 _cbm_k_open:
        jsr     OPEN
        bcs     @NotOk
         lda     #0
-@NotOk:        rts
+@NotOk:        ldx     #0              ; Clear high byte
+        rts