From: sparky4 Date: Mon, 22 Jun 2015 19:24:59 +0000 (-0500) Subject: ftest extended... wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=09ec383b47858beedadddf99a462e45f952ccee4;p=16.git ftest extended... wwww Signed-off-by: sparky4 --- diff --git a/FTEST.EXE b/FTEST.EXE index dd77f6a6..2b870a8f 100644 Binary files a/FTEST.EXE and b/FTEST.EXE differ diff --git a/src/FTEST.C b/src/FTEST.C index 3ec8940a..79055500 100644 --- a/src/FTEST.C +++ b/src/FTEST.C @@ -40,31 +40,34 @@ void main(int argc, char *argv[]) printf("%d: %x:%x\n", i, romFonts[i].seg, romFonts[i].off); } + printf("*argv[1]=%d\n", *argv[1]); + printf("Character: "); scanf("%c", &c); - if(*argv[1]!=NULL) + if(*argv[1]!=1) switch(*argv[1]) { - case 0: + case 48: t=0; w=14; break; - case 1: + case 49: t=1; w=8; break; - case 2: + case 50: t=2; w=8; break; - case 3: + case 51: t=3; w=16; break; default: t=3; w=16; + break; } else {