]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/c_readst.s
don't use constructor to setup runtime stack
[cc65] / libsrc / cbm / c_readst.s
index bb1b42a3df67226120ec9d95ebd468dade78d5e6..4aeab41b3fdba08e17822132d351a8d83f1c21c8 100644 (file)
@@ -1,15 +1,14 @@
 ;
 ; Ullrich von Bassewitz, 03.06.1999
 ;
-; unsigned __fastcall__ cbm_readst (void);
+; unsigned char __fastcall__ cbm_k_readst (void);
 ;
 
-       .include        "cbm.inc"
+       .export         _cbm_k_readst
+       .import         READST
 
-               .export         _cbm_readst
 
-_cbm_readst:
+_cbm_k_readst:
        jsr     READST
-       ldx     #0
+       ldx     #0              ; Clear high byte
        rts
-