]> 4ch.mooo.com Git - 16.git/commitdiff
ftest extended... wwww
authorsparky4 <sparky4@cock.li>
Mon, 22 Jun 2015 19:24:59 +0000 (14:24 -0500)
committersparky4 <sparky4@cock.li>
Mon, 22 Jun 2015 19:24:59 +0000 (14:24 -0500)
Signed-off-by: sparky4 <sparky4@cock.li>
FTEST.EXE
src/FTEST.C

index dd77f6a634f83d1445519c82a66d02a863e82cdc..2b870a8f33ae9db70d0e2ded9e0aa0ebe68034db 100644 (file)
Binary files a/FTEST.EXE and b/FTEST.EXE differ
index 3ec8940a1162a4be87ca3f1a78f2096e2978bff3..79055500cb6526dc5cf5f8f57f13a2e5bd536a27 100644 (file)
@@ -40,31 +40,34 @@ void main(int argc, char *argv[])
        printf("%d: %x:%x\n", i, romFonts[i].seg, romFonts[i].off);\r
     }\r
 \r
+       printf("*argv[1]=%d\n", *argv[1]);\r
+\r
     printf("Character: ");\r
     scanf("%c", &c);\r
 \r
-       if(*argv[1]!=NULL)\r
+       if(*argv[1]!=1)\r
        switch(*argv[1])\r
        {\r
-               case 0:\r
+               case 48:\r
                        t=0;\r
                        w=14;\r
                break;\r
-               case 1:\r
+               case 49:\r
                        t=1;\r
                        w=8;\r
                break;\r
-               case 2:\r
+               case 50:\r
                        t=2;\r
                        w=8;\r
                break;\r
-               case 3:\r
+               case 51:\r
                        t=3;\r
                        w=16;\r
                break;\r
                default:\r
                        t=3;\r
                        w=16;\r
+               break;\r
        }\r
        else\r
        {\r