Hardware Interaction C

#include
#include
#include
void main(void)
{
clrscr();
int choice;
union REGS regs;
printf("
For CGA Mode(0-6).");
printf("
For Mono MOde(1).");
printf("
Select the Mode - ");
scanf("%d",&choice);
clrscr();
regs.h.ah = 0; /*Set cursor position*/
regs.h.al = choice;
int86(0x10,®s,®s);
gotoxy(40,12);
printf("WWW");
getch();
}