int plane;\r
int px, py, i;\r
// byte near *buff;\r
-\r
px=x;\r
py=y;\r
// buff = _nmalloc(p->pwidth+1);\r
word addr = (word) l;\r
word chw=0;\r
byte c;\r
+ //byte near *bakapee;\r
\r
switch(t)\r
{\r
DEC CX\r
JNZ L1\r
}\r
+ //bakapee = _nmalloc(sizeof(byte)*8);\r
//TODO: OPTIMIZE THIS!!!!\r
for(i=0; i<w; i++)\r
{\r
+ /*modexSelectPlane(PLANE(x));\r
+ j=1<<8;\r
+ *bakapee=(l[i] & j ? col:bgcol);\r
+ _fmemcpy(page->data + (((page->width/4) * (y+page->dy+i)) + ((x+page->dx+chw) / 4)), bakapee, 8);*/\r
j=1<<8;\r
xp=0;\r
while(j)\r
}\r
chw += xp;\r
}\r
+ //_nfree(bakapee);\r
}\r
\r
void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, const byte *str)\r
sword baka;\r
char *bakapeee;\r
\r
+ byte l[1024];\r
+ word j,chw,xp,col,bgcol;\r
+\r
+\r
bakapeee = malloc(64);\r
\r
if(argv[1]) bakapeee = argv[1];\r
else bakapeee = "data/koishi~.pcx";\r
\r
- if(argv[2]) baka = atoi(argv[2]);\r
- else\r
+// if(argv[2]) baka = atoi(argv[2]);\r
+// else\r
baka = 1;\r
\r
bmp = bitmapLoadPcx(bakapeee);\r
fprintf(stderr, "DrawPBuf: %f\n", t2);\r
fprintf(stderr, "gvar.video.page[0].width: %u\n", gvar.video.page[0].width);\r
fprintf(stderr, "gvar.video.page[0].height: %u\n", gvar.video.page[0].height);\r
+ col=0x0d, bgcol=0;\r
+ for(i=0; i<8; i++)\r
+ {\r
+ /*modexSelectPlane(PLANE(x));\r
+ j=1<<8;\r
+ *bakapee=(l[i] & j ? col:bgcol);\r
+ _fmemcpy(page->data + (((page->width/4) * (y+page->dy+i)) + ((x+page->dx+chw) / 4)), bakapee, 8);*/\r
+ j=4<<8;\r
+ fprintf(stderr, "j<<=%u\n", j);\r
+ xp=0;\r
+ while(j)\r
+ {\r
+ //modexputPixel(page, x+xp+chw, y+i, l[i] & j ? col:bgcol);\r
+ //fprintf(stderr, "%u", l[i] & j ? col:bgcol);\r
+ xp++;\r
+ j>>=4;\r
+ fprintf(stderr, " j>>=%u\n", j);\r
+ }\r
+ //fprintf(stderr, "\n");\r
+ }\r
+ chw += xp;\r
return;\r
}\r