]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/tosint.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / tosint.s
index 7bbab986e57334861229fce05eb0421900724197..d29fa2e8b71752222a4dc3487db545f3dd77ed92 100644 (file)
@@ -8,12 +8,14 @@
        .import         incsp2
        .importzp       sp
 
+        .macpack        cpu
+
 ; Convert TOS from long to int by cutting of the high 16bit
 
 .proc  tosint
 
        pha
-.ifpc02
+.if (.cpu .bitand ::CPU_ISET_65SC02)
        lda     (sp)
 .else
        ldy     #0