forums
new posts
donate
UER Store
events
location db
db map
search
members
faq
terms of service
privacy policy
register
login




UER Forum > Private Boards Index > Tech Talk > Borland C++ Compiler 5.5 - trouble with asm (Viewed 1125 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.
UER Forum > Private Boards Index > Tech Talk > Borland C++ Compiler 5.5 - trouble with asm (Viewed 1125 times)


Add a poll to this thread



This thread is in a public category, and can't be made private.



All content and images copyright © 2002-2024 UER.CA and respective creators. Graphical Design by Crossfire.
To contact webmaster, or click to email with problems or other questions about this site: UER CONTACT
View Terms of Service | View Privacy Policy | Server colocation provided by Beanfield
This page was generated for you in 156 milliseconds. Since June 23, 2002, a total of 740377059 pages have been generated.