I'm teaching myself C, and for it downloaded the Borland C++ Compiler v. 5.5 (thank god they released it for free). It's a great compiler, except for how it handles asm. In my book they tell me to do it like this:
union REGS regs; regs.h.ah=0x06; regs.h.al=0x00; regs.h.bh=0x07; regs.h.ch=0x00; regs.h.cl=0x00; regs.h. dh=ROWS-1; regs.h.dl=COLS-1; int86(VIDEO,®s,®s);
|
But when I try to compile code like that it gives me an error, something about REGS undefined, and int86 undefined. It works fine with v. 3.1 (which I've started using as it's the one the book is tested for), but not with the newer versions. I know v. 4.00 and up are way different from the earlier compilers, but how do you handle microprocessor registers in 5.5?