FnEval() by Tejon

Just starting out? Need help? Post your questions and find answers here.
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

FnEval() by Tejon

Post by MikeB »

I am not sure where to post this, as I don't know if it is a problem with the code, or a bug in PB that came in with the last version.

I have written a program (Dec. 2003) using Tejon's routine which works perfectly, but I wanted to add an extra little bit and found that when I try to compile it I now get an error with "MOV eax,i1" saying "EAX is not a valid operator". This happens when I try to compile just the "FnEval 02.pb" so it is not my program producing the error.

Basically it is the routine which was perfect before updating PB, no longer works! Any ideas what has happened, have I lost a file in the update or is it possibly a bug in PB has crept in?

MikeB
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Uhh, this may sound stupid, but are you sure, "Enable InlineASM" is turned
on in the compiler options?
Sounds exactly like that kind of error.

Timo
quidquid Latine dictum sit altum videtur
tejon
User
User
Posts: 29
Joined: Sat May 17, 2003 12:38 am

Post by tejon »

updated: now there's no need to have inline asm enabled,
also, the factorial function would return 0 for 0!, it's now fixed. 8)
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

Post by MikeB »

Thanks Tejon, I have downloaded the updated version and eveything is working again.

MikeB
Post Reply