This is a small calculator I have made it to learn how to use the FPU instructions it may be helpful for begineers.
Posted on 2002-09-17 16:27:04 by amr
Very nicely done, it should be of great help to those trying to get used to the FPU. :alright:
Posted on 2002-09-17 17:40:33 by Eóin
According to your program, 1 + 1 = "-?.<00000e+647" running it on an AMD.
Posted on 2002-09-18 06:48:29 by iblis
On my new work machine (HP-E-PC, 1.7Ghz P4) I get this when I enter "1" and click the "+" button:
Posted on 2002-09-18 06:55:32 by bazik
I'm having the same problem as iblis, but only if I type the 1 again (even though it's still there), if I just type 1, and then press "+" and "=" I get the correct answer. Also AMD.
Posted on 2002-09-18 07:05:31 by Qweerdy
Well it seem to work perfectly on my XP, but it is possible that because you leave the initial value on the stack during the first part of an operation that by the time it comes to pressing equals windows will have scrambled the stack.

Try not loading fValue when PLUS is pressed, rather just load it prior to calling FltIn when EQUAL is pressed.

As for Baziks problem :confused: , you could try making Operation a DWORD and WORD. But I really don't know, any chance of a translation of that error Bazik, or is it typically cryptic Windows anyway :) .
Posted on 2002-09-18 12:15:52 by Eóin
Originally posted by bazik

On my new work machine (HP-E-PC, 1.7Ghz P4)...
new 1.7ghz P4 have to do with testing the code bugs??? :grin:
Posted on 2002-09-18 12:39:22 by stryker
Hmm... here at home I get the same error as iblis :confused:
Posted on 2002-09-18 12:39:32 by bazik

and what does a Posted on 2002-09-18 12:41:50 by bazik
I believe you!!! :grin:

seriously,

yeah I got the same problem when pressing 1 then the + sign this is on windows 2000 sp3 on my old 800mhz P3. :grin:

just some nasty little bug that's all...
Posted on 2002-09-18 12:44:46 by stryker

I believe you!!! :grin:

seriously,

yeah I got the same problem with pressing 1 then the + sign this is on windows 2000 sp3 on my old 800mhz P3. :grin:


Yep, I run Win2K on that HP-E-PC, too.

BTW stryker, take your IRC client, connect to irc.openprojects.net, /join #gentoo
and ask the bot ("GenBot") about "bragging":



19:47 < blokkie> BuzzBud: okay , let me check
19:47 < dcstimm> crypt0n1c: figured it out
[b]19:47 < bazik> GenBot: bragging?[/b]
19:47 < Kold> qubit: I am of the humble opinion that is a useless marketing
tactic...
19:47 < dcstimm> crypt0n1c: ctrl +
[b]19:47 < GenBot> bazik: bragging is when bazik says he has 1.5gb ram[/b]
19:47 < crypt0n1c> ah
[b]19:48 < bazik> GenBot: botsnack
19:48 * GenBot gives bazik a kiss
19:48 < bazik> d'oh[/b]
19:48 * paperclip is back (gone 01:02:28)
19:48 < qubit> Kold: ???
19:48 -!- PJ [PJ@adsl-63-199-202-100.dsl.lsan03.pacbell.net] has joined #gentoo


SHOW OFF! :grin:
Posted on 2002-09-18 12:49:24 by bazik
Careful now using that quote out of context Stryker, someone might think I was serious ;) .

I hope Amr doesn't mind, but I recompiled his program with that slight change, it'd be interesting to see if it has any effect.
Posted on 2002-09-18 12:49:48 by Eóin
Eoin,

It still doesn't work. The problem was not windows or a Posted on 2002-09-18 13:18:29 by stryker
stryker, please stop that Steve Gibsoning :grin:
Posted on 2002-09-18 13:21:31 by bazik
Funny auld problem, wonder if uses edi esi ebx would have solved it also.
Posted on 2002-09-18 13:22:56 by Eóin
bazik,

lol :grin: GRC is located on the same city, I live. :grin: what a coincidence. :grin:

btw, that app was tested on my old 800 mhz P3 not on an AMD processor nor on a 1.7ghz P4.



As far as AMD processors are concerned, I can't help fix the problem that was posted by iblis and company.
Posted on 2002-09-18 13:25:15 by stryker

bazik,

lol :grin: GRC is located on the same city, I live. :grin: what a coincidence. :grin:


GRC is on Mars? :eek:

Well, I thought Steve Gibson is an Alien. Thanks for verifying that!
Posted on 2002-09-18 14:01:55 by bazik



GRC is on Mars? :eek:

Well, I thought Steve Gibson is an Alien. Thanks for verifying that!
well, I'm currently here on earth. Steve Gibson isn't an alien. :grin:
Posted on 2002-09-18 18:01:40 by stryker
hi all,
My program worked fine on my computer, I don't know why It had problems on yours. My processor Actually is Amd Athelon 800MHz.
And about StrToFloat, This procedure is in the Masm32lib package,
And about geting the number after equal is pressed it can't be because it when the user press any operation the program gets the number and save it on stack, that is the first oprand of the operation(i.e. + - ) and then it takes the other oprand after pressing "=", but about getting the operand after "=" I can't get the first oprand then.
And thanks for recompiling, but If you have changed the source code please post it to with the program.
I will try to make my on StrtoFloat procedure and FloattoStr procedure.
thanks
amr
Posted on 2002-09-23 00:38:27 by amr
I changed some and added some. Its works fine.
Posted on 2002-09-25 13:56:27 by minor28