\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
{
- c = *(str);
+ if(chw>=SCREEN_WIDTH-1) y+=w;
+ c = (*str);
//load the letter 'A'\r
__asm {\r
MOV DI, addr\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