词条 | int86x |
释义 | 函数名: int86x 功 能: 通用8086软中断接口 用 法: int int86x(int intr_num, union REGS *insegs, union REGS *outregs, struct SREGS *segregs); 程序例: #include #include #include int main(void) { char filename[80]; union REGS inregs, outregs; struct SREGS segregs; printf("Enter filename: "); gets(filename); inregs.h.ah = 0x43; inregs.h.al = 0x21; inregs.x.dx = FP_OFF(filename); segregs.ds = FP_SEG(filename); int86x(0x21, &inregs, &outregs, &segregs); printf("File attribute: %X\", outregs.x.cx); return 0; } |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。