From e12fbe35a80a883652a58b7f7d16be787588e536 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Tue, 27 Aug 2013 22:01:19 +0200 Subject: [PATCH] em-test.c: add support for Atari --- testcode/lib/em-test.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; } -- 2.39.5