1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2026-04-21 17:16:28 +00:00

Changed placeholder from asterisk to question mark

This commit is contained in:
Curtis F Kaylor
2019-05-04 21:56:00 -04:00
parent e30d98b9a6
commit e87b4e9b44
14 changed files with 82 additions and 37 deletions
+3 -3
View File
@@ -10,10 +10,10 @@
enum {SOLO};
enum {ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN};
enum {*, FIRST, SECOND, THIRD};
enum {?, FIRST, SECOND, THIRD};
bitmask {BLUE, GREEN, RED, BRIGHT, INVERT, BLINK, FLIP, BKGRND};
bitmask {RD, RTS, DTR, RI, CD, *, CTS, DSR};
bitmask {HNDSHK, *, *, *, DUPLEX};
bitmask {RD, RTS, DTR, RI, CD, ?, CTS, DSR};
bitmask {HNDSHK, ?, ?, ?, DUPLEX};
const char b = {#TRUE, #FALSE};
char c, i;
+4 -4
View File
@@ -53,10 +53,10 @@ testfn(prchr(b));
testfn(b,c,d);
testfn(b+c+d,r[i],f);
testfn(&s); //Print a String
dofn(*,yy);
dofn(*,yy,xx);
dofn(aa,*,xx);
dofn(*,*,XX);
dofn(?,yy);
dofn(?,yy,xx);
dofn(aa,?,xx);
dofn(?,?,XX);
funcyx:
+4 -4
View File
@@ -31,13 +31,13 @@ d = fnd(b,c);
i = fni(c);
j = fnj(b,c);
int fnb(*,yy,xx) {
return *,xx,yy;
int fnb(?,yy,xx) {
return ?,xx,yy;
}
int fnd(aa,yy,xx) {
if (aa) return *,xx,yy;
else return *,yy,xx;
if (aa) return ?,xx,yy;
else return ?,yy,xx;
}
int fni(yx) {
+16 -5
View File
@@ -28,6 +28,15 @@ const char m = {"mixed", 1, "const", 2, "array", 3};
char aa,xx,yy ; //Function parameter variables
char STROBE; //Strobe Register
/* Aliased Variables */
alias char zp = $80; //aliased to zero page
alias char via = $D000; //aliased to i/o mapped device
alias char cc = c; //aliased to variable
alias char rr = r; //aliased to array
/* Aliased Function */
//alias void chrout() = $F000; //aliased to ROM routine
/* Function Declaration */
char myfunc();
return b-c-d;
@@ -94,10 +103,10 @@ testfn(prchr(b));
testfn(b,c,d);
testfn(b+c+d,r[i],f);
testfn(&s); //Print a String
dofn(*,yy);
dofn(*,yy,xx);
dofn(aa,*,xx);
dofn(*,*,XX);
dofn(?,yy);
dofn(?,yy,xx);
dofn(aa,?,xx);
dofn(?,?,XX);
/*
defs:
@@ -118,6 +127,8 @@ here: if (getkey() & $7F == $1B) goto exit;
there: goto flwctl;
goto &$C000;
if (#TRUE) putln("TRUE");
else if (#FALSE) putln("FALSE");
@@ -170,7 +181,7 @@ void vdfnc3(aa, yy, xx) {
push &s, b+c+d, r[i];
stkfnc(); //Push/Pop Parameters
pop d, *, z[f];
pop d, ?, z[f];
iprint(); inline "Hello World";