]> git.sur5r.net Git - cc65/commitdiff
Merge pull request #240 from blackystardust/fix-c128-ram-rts
authorOliver Schmidt <ol.sc@web.de>
Wed, 2 Dec 2015 09:40:06 +0000 (10:40 +0100)
committerOliver Schmidt <ol.sc@web.de>
Wed, 2 Dec 2015 09:40:06 +0000 (10:40 +0100)
Fixed the c128 bank 1 emd.

testcode/lib/conio.c
testcode/lib/em-test.c

index 3a8048632ea4cad5ee43e58399e854a42b906e7d..bdee122625fd2ef12c5f6c7fb8af6bae0241b546 100644 (file)
@@ -13,6 +13,7 @@
 #include <conio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <joystick.h>
 
 static char grid[5][5] = {
     { CH_ULCORNER, CH_HLINE, CH_TTEE, CH_HLINE, CH_URCORNER },
@@ -45,7 +46,7 @@ void main(void)
         }
         textcolor(tcol);
 
-        cprintf("\n\n\r Screensize is: %dx%d", xsize, ysize );
+        cprintf("\n\n\r Screensize is: %dx%d", xsize, ysize);
 
         chlinexy(0,6,xsize);
         cvlinexy(0,6,3);
@@ -86,7 +87,7 @@ void main(void)
         revers(0);
 
         cursor(1);
-        for(;;) {
+        for (;;) {
 
                 gotoxy(8, 2);
                 j = n & 1;
@@ -96,6 +97,14 @@ void main(void)
                 cputs(" revers");
                 revers(0);
 
+#if defined(__NES__) || defined(__PCE__)
+
+                joy_install(joy_static_stddrv);
+                while (!joy_read(JOY_1)) ;
+                joy_uninstall();
+
+#else
+
                 gotoxy(8 + inpos,1);
                 i = cgetc();
                 if ((i >= '0') && (i<='9')) {
@@ -121,8 +130,8 @@ void main(void)
                     inpos = (inpos + 1) & 7;
                 }
 
+#endif
+
                 ++n;
         }
-
-        for(;;);
 }
index 4a08d57c43ea8bb1c44e30ef33bc822caf1fd690..f4a56029a2b13184f28933be4db5a2f9bcaf86e4 100644 (file)
@@ -58,7 +58,7 @@ typedef struct emd_test_s {
 static emd_test_t drivers[] = {
 
 #if defined(__APPLE2__)
-    { '0', "Apple II auxiliary memory", "a2e.auxmem.emd" },
+    { '0', "Apple II auxiliary memory", "a2.auxmem.emd" },
 #endif
 
 #if defined(__APPLE2ENH__)
@@ -70,7 +70,7 @@ static emd_test_t drivers[] = {
 #endif
 
 #if defined(__ATARIXL__)
-    { '0', "Atari 130XE memory", "atr130.emd" },
+    { '0', "Atari 130XE memory", "atrx130.emd" },
 #endif
 
 #if defined(__C16__)