如何在borland c ++ 5.02中使用ROM BIOS中断?

时间:2012-11-15 09:43:27

标签: c++

我正在使用Borland C ++ 5.02,我试图在c ++程序中制作ROM BIOS中断。 (我使用REGS& regs)。但是当我编译程序时,它表示未定义的结构REGS(对于所有中断)。

int numlock() {
    union REGS in,out;
    in.h.ah=2;
    int86(0x16,&in,&out);
    return out.h.al;
}
union REGS in,out;  //**error line**   

1 个答案:

答案 0 :(得分:1)

这是Borland 5.2中的一个问题。与Borland 4.5合作更好地使用中断。我使用了Borland 4.5&回答。

相关问题