]> 4ch.mooo.com Git - 16.git/commitdiff
ok it works~
authorsparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:41:14 +0000 (11:41 -0500)
committersparky4 <sparky4@cock.li>
Mon, 13 Jul 2015 16:41:14 +0000 (11:41 -0500)
modified:   fonttes0.exe
modified:   fonttest.exe
modified:   src/fonttes0.c
modified:   src/fonttest.c

fonttes0.exe
fonttest.exe
src/fonttes0.c
src/fonttest.c

index 63752af3104fa9ce64d5af36c2d93b6ffd5df254..3c83acb2d3eb1cdeb5d3e243e286c5f73e24b754 100644 (file)
Binary files a/fonttes0.exe and b/fonttes0.exe differ
index 4f3558b0a70391967cfe89296b314f097ec8be27..2cc9c1d75c120bf84c842769edbe8ab4f869bcd0 100644 (file)
Binary files a/fonttest.exe and b/fonttest.exe differ
index 3c57bb188e66a5f1cdbbab486069a299f243c3fb..740aa7d1b287a04692426a7b551a5e3837f5080f 100644 (file)
@@ -30,7 +30,7 @@ void main(int argc, char near *argv[])
     int i, xp;\r
     int j;\r
        char l[16];\r
-    char c;\r
+    char c,ct;\r
     word s, o, t, w;\r
     word addr = (word) l;
     //byte *pal, *pal2, fond;
@@ -44,37 +44,46 @@ void main(int argc, char near *argv[])
        printf("%d: %x:%x\n", i, romFonts[i].seg, romFonts[i].off);\r
     }\r
 \r
-       printf("*argv[1]=%d\n", *argv[1]);\r
+//     printf("*argv[1]=%d\n", *argv[1]);\r
+
+       printf("Font type: ");\r
+       gets(&ct);
 \r
-    printf("Character: ");\r
-    scanf("%c", &c);\r
+       printf("Character: ");\r
+       gets(&c);\r
 \r
-       if(*argv[1]!=1)\r
-       switch(*argv[1])\r
+       if(ct!=1)\r
+       switch(ct)\r
        {\r
-               case 48:\r
+               case 48:
+                       printf("type 0\n");\r
                        t=0;\r
                        w=14;\r
                break;\r
-               case 49:\r
+               case 49:
+                       printf("type 1\n");\r
                        t=1;\r
                        w=8;\r
                break;\r
-               case 50:\r
+               case 50:
+                       printf("type 2\n");\r
                        t=2;\r
                        w=8;\r
                break;\r
-               case 51:\r
+               case 51:
+                       printf("type 3\n");\r
                        t=3;\r
                        w=16;\r
                break;\r
-               default:\r
+               default:
+                       printf("type 3\n");\r
                        t=3;\r
                        w=16;\r
                break;\r
        }\r
        else\r
-       {\r
+       {
+               printf("type 3\n");\r
                t=3;\r
                w=16;   \r
        }\r
index 2370806c24456fd4038b559b041c76e5e0dfc2fc..58dbce85f6262aeec1ec9f74cf0737fde3f573a5 100644 (file)
@@ -29,7 +29,7 @@ void main(int argc, char near *argv[])
     int i;\r
     int j;\r
        char l[16];\r
-    char c;\r
+    char c,ct;\r
     word s, o, t, w;\r
     word addr = (word) l;\r
     textInit();\r
@@ -40,37 +40,46 @@ void main(int argc, char near *argv[])
        printf("%d: %x:%x\n", i, romFonts[i].seg, romFonts[i].off);\r
     }\r
 \r
-       printf("*argv[1]=%d\n", *argv[1]);\r
+//     printf("*argv[1]=%d\n", *argv[1]);\r
+
+       printf("Font type: ");\r
+       gets(&ct);
 \r
-    printf("Character: ");\r
-    scanf("%c", &c);\r
+       printf("Character: ");\r
+       gets(&c);\r
 \r
-       if(*argv[1]!=1)\r
-       switch(*argv[1])\r
+       if(ct!=1)\r
+       switch(ct)\r
        {\r
-               case 48:\r
+               case 48:
+                       printf("type 0\n");\r
                        t=0;\r
                        w=14;\r
                break;\r
-               case 49:\r
+               case 49:
+                       printf("type 1\n");\r
                        t=1;\r
                        w=8;\r
                break;\r
-               case 50:\r
+               case 50:
+                       printf("type 2\n");\r
                        t=2;\r
                        w=8;\r
                break;\r
-               case 51:\r
+               case 51:
+                       printf("type 3\n");\r
                        t=3;\r
                        w=16;\r
                break;\r
-               default:\r
+               default:
+                       printf("type 3\n");\r
                        t=3;\r
                        w=16;\r
                break;\r
        }\r
        else\r
-       {\r
+       {
+               printf("type 3\n");\r
                t=3;\r
                w=16;   \r
        }\r