error C4226: nonstandard extension used : 'far' is an obsolete keyword
d:\program files\microsoft visual studio\myprojects\testarea\main.cpp(31) : error C2079: 'r' uses undefined union 'REGS'
When ever i try to use union REGS in my code it flags an error. is there a certain file i have to include or bad code??
void VGAScreen ()
{
union REGS r;
r.h.ah = 0;
r.h.al = 0x13;
int86(0x10, &r, &r);
}
//This resets the display to text mode
void TextScreen ()
{
union REGS r;
r.h.ah = 0;
r.h.al = 0x3;
int86(0x10, &r, &r);
}
Thanks.