简体   繁体   中英

How using ROM BIOS interrupts in borland c++ 5.02?

I am using Borland C++ 5.02 and I was trying to make ROM BIOS interrupts in a c++ program. (i use REGS & regs). But when I compile the program it says undefined structure REGS(for all interrupts).

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

This is a problem in Borland 5.2. is Better for use interrupts ,working with Borland 4.5. I used Borland 4.5 & answered.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM