Toronto.2600, the Official Website of the Toronto chapter of 2600.
 
To2600 Web Board
Powered by AvBoard version 1.5 alpha
Not logged in
HomeSearchLoginRegister
To2600 Web Board > Private Boards Index > Tech Talk > Borland C++ Compiler 5.5 - trouble with asm (Viewed 1128 times)
HillbillyHorus 


Location: Charlottesville Virginia
Gender: Male
Total Likes: 1 like


Im in ur government, killin ur d00dz

 |  |  | AIM Message
Borland C++ Compiler 5.5 - trouble with asm
< on 1/1/2006 4:24 PM >
Reply with Quote
Posted on Forum: UER Forum
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,&regs,&regs);


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?




You can't fall off a mountain.
To2600 Web Board > Private Boards Index > Tech Talk > Borland C++ Compiler 5.5 - trouble with asm (Viewed 1128 times)


Add a poll to this thread



This thread is in a public category, and can't be made private.
  copyright © 2004 toronto 2600. all rights reserved