]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/toslong.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / toslong.s
index a65a2cff2127634263543be50341a289babcf3f3..9bf66a321c8d733fae859cff3a725083bb7c0b6e 100644 (file)
@@ -8,6 +8,8 @@
        .import         decsp2
        .importzp       sp
 
+        .macpack        cpu
+
 ; Convert TOS from int to long
 
 tosulong:
@@ -15,7 +17,7 @@ tosulong:
        jsr     decsp2          ; Make room
        ldy     #2
        lda     (sp),y
-.ifpc02
+.if (.cpu .bitand CPU_ISET_65SC02)
        sta     (sp)            ; 65C02 version
        iny                     ; Y = 3
 .else
@@ -41,7 +43,7 @@ toslong:
        jsr     decsp2          ; Make room
        ldy     #2
        lda     (sp),y
-.ifpc02
+.if (.cpu .bitand CPU_ISET_65SC02)
        sta     (sp)            ; 65C02 version
        iny                     ; Y = 3
 .else