#include #include #include void main(void)
{
clrscr();
union REGS regs;
struct SREGS sregs;
char buff[1000];
int i;
regs.h.ah = 2;
regs.h.al = 1;
regs.h.ch = 1;
regs.h.dh = 0;
regs.h.cl = 1;
regs.h.dl = 0x80;
regs.x.bx = FP_OFF(buff);
sregs.es = FP_SEG(buff);
int86x(0x13,&regs,&regs,&sregs);
printf(" regs.x.cflag - %d",regs.x.cflag);
printf(" regs.h.ah - %d",regs.h.ah);
printf(" regs.h.al - %d",regs.h.al);
printf(" Buff - %c",buff);
getch();
}
{
clrscr();
union REGS regs;
struct SREGS sregs;
char buff[1000];
int i;
regs.h.ah = 2;
regs.h.al = 1;
regs.h.ch = 1;
regs.h.dh = 0;
regs.h.cl = 1;
regs.h.dl = 0x80;
regs.x.bx = FP_OFF(buff);
sregs.es = FP_SEG(buff);
int86x(0x13,&regs,&regs,&sregs);
printf(" regs.x.cflag - %d",regs.x.cflag);
printf(" regs.h.ah - %d",regs.h.ah);
printf(" regs.h.al - %d",regs.h.al);
printf(" Buff - %c",buff);
getch();
}
No comments:
Post a Comment