void showchar(int n,int color,...);
main()
{
int a1,a2,a3;
a1 =0xA1;
a2 =0xA2;
a3 =0xA3;
showchar(8,2,'a','b','c','d','e','f','g','h');
}
void showchar(int n,int color,...)
{
int a;
for(a=0;a!=n;a++)
{
*(char far*)(0xb8000000 +160*10 +80 +a+a) = *(int* )(_bp + 8+ a+ a);
*(char far*)(0xb8000000 +160*10 +81+ a + a ) =color;
}
} |