Hello, I am using Borland C++ 5.02 and I was trying to make ROM BIOS interrupts in a c program. But when I compile the program it says undefined structure REGS.
I tried the program in a cpp program too but with same result.
Here's my code
Please help me with the problem. Thanks .
I tried the program in a cpp program too but with same result.
Here's my code
Code:
#include <dos.h>
#define VIDEO 0x10
void movetoxy(int x, int y)
{
union REGS regs;
regs.h.ah = 2; /* set cursor position */
regs.h.dh = y;
regs.h.dl = x;
regs.h.bh = 0; /* video page 0 */
int86(VIDEO, ®s, ®s);
}
int main(void)
{
clrscr();
movetoxy(35, 10);
printf("Hello\n");
return 0;
}
Comment