Skip to main content
GameDev.net gamedev.net
🔒 Locked

inline assembly

Started by Crispy Mar 21, 2003 at 7:16 AM 1 replies 200+ views
Original Post
Crispy
Crispy
Hi, I have a few lines of assembly that I''d like to sqeeze in between the high level code. However, my BC5.02 either doesn''t overwrite the .obj file or messes up during linking if I do so. This results in the exe not being updated. If I remove the assembly, everything goes fine. The alternative is to manually delete the exe and relevant .obj files. Why''s that? Yet another question: is it also the case for VC to now allow assmebly in template functions? If so, I''m not 100% sure why. Thanks, Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Jan Wassenberg
Jan Wassenberg
It''s been ages since I''ve last used Borland C++, but I think the compiler had to reset itself when it encountered asm. Try #pragma asm (IIRC) at the top of the file.
E8 17 00 42 CE DC D2 DC E4 EA C4 40 CA DA C2 D8 CC 40 CA D0 E8 40E0 CA CA 96 5B B0 16 50 D7 D4 02 B2 02 86 E2 CD 21 58 48 79 F2 C3
Extrarius
Extrarius
BC5.02 was always buggy for me, it was the reason I stopped using borland compilers. It crashed constantly and had weird bugs like you describe. Try getting an older version if you can. 4.5 was awesome.
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.