From: Christian Groessler Date: Tue, 27 Aug 2013 20:01:19 +0000 (+0200) Subject: em-test.c: add support for Atari X-Git-Tag: V2.15~223^2~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e12fbe35a80a883652a58b7f7d16be787588e536;p=cc65 em-test.c: add support for Atari --- diff --git a/testcode/lib/em-test.c b/testcode/lib/em-test.c index c7fee6a59..41a7eb2c8 100644 --- a/testcode/lib/em-test.c +++ b/testcode/lib/em-test.c @@ -20,6 +20,10 @@ #define DRIVERNAME "a2e.auxmem.emd" #elif defined(__APPLE2__) #define DRIVERNAME "a2.auxmem.emd" +#elif defined(__ATARIXL__) +#define DRIVERNAME "atrx130.emd" +#elif defined(__ATARI__) +#define DRIVERNAME "atr130.emd" #else #define DRIVERNAME "unknown" #error "Unknown target system" @@ -63,6 +67,9 @@ static void cmp (unsigned page, register const unsigned* buf, cprintf ("\r\nData mismatch in page $%04X at $%04X\r\n" "Data is $%04X (should be $%04X)\r\n", page, buf, *buf, num); +#ifdef __ATARI__ + cgetc (); +#endif exit (EXIT_FAILURE); } } @@ -84,6 +91,9 @@ int main (void) if (Res != EM_ERR_OK) { cprintf ("Error in em_load_driver: %u\r\n", Res); cprintf ("os: %u, %s\r\n", _oserror, _stroserror (_oserror)); +#ifdef __ATARI__ + cgetc (); +#endif exit (EXIT_FAILURE); } atexit (cleanup); @@ -195,6 +205,10 @@ int main (void) /* Success */ cprintf ("\r\nPassed!\r\n"); +#ifdef __ATARI__ + cgetc (); +#endif + return 0; }