void main() { int i,j; union REGS regset; Set320x240Mode(); for (j = 0; j < 4; j++) { for (i = 0; i < 4; i++) { FillPatternX(i*80,j*60,i*80+80,j*60+60,0,PattTable[j*4+i]); } } getch(); regset.x.ax = 0x0003; /* switch back to text mode and done */ int86(0x10, ®set, ®set); }
void main() { int i,j; union REGS regset; Set320x240Mode(); FillRectangleX(0,0,320,240,0,0); /* clear the screen to black */ for (j = 1; j < 220; j += 21) { for (i = 1; i < 300; i += 21) { FillRectangleX(i, j, i+20, j+20, 0, ((j/21*15)+i/21) & 0xFF); } } getch(); regset.x.ax = 0x0003; /* switch back to text mode and done */ int86(0x10, ®set, ®set); }