{\r
//JMOJI\r
byte e;\r
- word chx, chy;\r
+ word chx, chy, colpee;\r
textInit();\r
modexEnter();\r
//modexprint(16, 16, 1, 15, "wwww");\r
//getch();\r
chx=0;\r
- chy=0;\r
- for(e='\ 1'; e<='\7f'; e++)\r
- {\r
- modexprint(chx, chy, 1, 15, &e);\r
- chx+=8;\r
- if(chx+8>=SCREEN_WIDTH)\r
- {\r
- chx=0;\r
- chy+=8;\r
- }\r
- }\r
+ chy=0;
+ colpee=0;\r
+ for(e=' '; e<='~'; e++)\r
+ {
+ if(chx+8>(SCREEN_WIDTH/2)-1)
+ {
+ chx=0;
+ chy+=8;
+ modexprint(200, 200, 1, 47, 0, &e);
+ }
+ modexprint(chx, chy, 1, 0, colpee, &e);\r
+ chx+=9;
+ colpee++;\r
+ }
+ modexprint(100, 100, 1, 47, 0, "wwww");\r
getch();\r
modexLeave();
printf("\n\n%u %c", '\7f');
- //printf("\n%c", '\80 ');\r
+ printf("\n%c\n", e);
}\r
\r
}\r
\r
-void modexprint(word x, word y, word t, word col, const byte *str)\r
+void modexprint(word x, word y, word t, word col, word bgcol, const byte *str)\r
{
word i, s, o, w, j, xp;
- byte l[16];\r
+ byte l[1024];\r
word addr = (word) l;
word chw=0;
byte c;
\r
for(; *str != '\0'; str++)\r
{
+ if(chw>=SCREEN_WIDTH-1) y+=w;
c = *(str);
//load the letter 'A'\r
__asm {\r
xp=0;\r
while(j)
{
- modexputPixel(x+xp+chw, y+i, l[i] & j ? col:0);
+ modexputPixel(x+xp+chw, y+i, l[i] & j ? col:bgcol);
xp++;
j>>=1;
}
}\r
- chw += 8;\r
+ chw += xp;\r
}\r
}\r
\r
void modexPalUpdate0(byte *p);
void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/);
void modexputPixel(int x, int y, byte color);
-void modexprint(word x, word y, word t, word col, const byte *str);
+void modexprint(word x, word y, word t, word col, word bgcol, const byte *str);
void modexWaitBorder();
/* -======================= Constants & Vars ==========================- */