#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main(void)
{
int x,y;
union REGS regs;
clrscr();
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,®s,®s);
getch();
}
#include<conio.h>
#include<dos.h>
void main(void)
{
int x,y;
union REGS regs;
clrscr();
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,®s,®s);
getch();
}
0 comments:
Post a Comment