]> git.sur5r.net Git - cc65/blobdiff - testcode/lib/atari/mem.c
Atari: add new function '_is_cmdline_dos()' and some other small changes.
[cc65] / testcode / lib / atari / mem.c
index 36222e08b2e321f1bf35e482510252d906eeb6f2..a8d50cf30923e34db58ddd8003f7c59506e835da 100644 (file)
@@ -11,7 +11,6 @@
 
 extern int getsp(void);                         /* comes from ../getsp.s */
 
-extern char _dos_type;                          /* bss variable */
 unsigned char data = 0x12;                      /* data variable */
 
 unsigned int *APPMHI = (unsigned int *)14;      /* 14,15 */
@@ -42,6 +41,6 @@ int main(void)
   printf("  sp:              $%04X  (stack ptr)\n", getsp());
 
   if (allocmem) free(allocmem);
-  if (_dos_type != 1) cgetc();
+  if (! _is_cmdline_dos()) cgetc();
   return(0);
 }