Saturday, April 5, 2014

PROGRAM FOR SETTING THE CURSOR POSITION AT DESIRED LOCATION

#include #include #include void main(void) 
{
 clrscr();
 int x,y;
 union REGS regs;
 printf(" Enter the X-position - "); 
scanf("%d",&x);
 printf(" Enter the Y-position - ");
 scanf("%d",&y);



 regs.h.ah = 2; 
regs.h.bh = 0; 
regs.h.dh = y; 
regs.h.dl = x; 
int86(0x10,&regs,&regs);
 getch(); 
}

Related Post:

0 comments:

Post a Comment

 
Powered by Blogger .
Converted To Blogger Template by Anshul .