Page 1 of 1

FnEval() by Tejon

Posted: Mon Feb 16, 2004 4:33 pm
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

Posted: Mon Feb 16, 2004 4:56 pm
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

Posted: Mon Feb 16, 2004 5:57 pm
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)

Posted: Wed Feb 18, 2004 4:15 pm
by MikeB
Thanks Tejon, I have downloaded the updated version and eveything is working again.

MikeB