Virtual Pascal

Classic Object Pascal for free

Stefan Weber (AH)
  • Male
  • Naila, Bavaria
  • Germany

Stefan Weber (AH)'s Discussions

Constants in ASM statements

Started Oct 9, 2009

Bug in Val() with Floats and fix for it
6 Replies

Started this discussion. Last reply by Stefan Weber (AH) May 27, 2009.

Gifts Received

Gift

Stefan Weber (AH) has not received any gifts yet

Give a Gift

 

Stefan Weber (AH)'s Page

Latest Activity

Stefan Weber (AH) was featured
Jan 14, 2010
Stefan Weber (AH) posted a discussion

Constants in ASM statements

Hi everyone,I have just found out that constant calculations like thismov esi, offset A - offset Bfail with the following error messagef:\ndn\source\extsrc\winoldap.dll\WINOLDIF.PAS(860): Error 31: Constant expectedThe error caret (^) points to "B".Can someone verify this?It puzzles me that the internal assembler of VP cannot handle this and I wonderwhy I have never stumbled across this before.All the best,Stefan / AHSee More
Oct 9, 2009
Stefan Weber (AH) replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"JFYI: TQuad (the VP 64-Bit integer type) is a Comp. VP doesn't know a *real* int64 type."
May 27, 2009
Marco van de Voort replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"I could retest this with COMP logic. Maybe that changes, since comp is FPU, and int64 not, it would stress difference part of VAL maybe. I'll pester some Delphi forums with the difference tomorrow, see if they come up with something, and will…"
May 26, 2009
Stefan Weber (AH) replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"Hi Marco, now you are forcing me to look at my fix again. :P Ok, first of all your comparisons all fail because RSa is different from RSb :P Obviously the result of Str() in VP on numbers without digits after the decimal point is different from…"
May 26, 2009
Stefan Weber (AH) replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"Hi Allan, I have no objections at all and hope that someone may find it useful. All I can say is that most of the code in mathx is actually used in NDNs calculator, so bugs should be rare. Please read my reply to Marco for some mroe information on…"
May 26, 2009
Marco van de Voort replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"Is it a bug? I made the following mods trunc64->trunc and commenting the uses line. I also printed RSA and r. Delphi 2006 Comparing values before and after Trunc64() rsa:-1.00000000000000E+0000 r: 0 -1 -> -1…"
May 25, 2009
Allan Mertner replied to Stefan Weber (AH)'s discussion Bug in Val() with Floats and fix for it
"Hi Stefan, Thanks for that - that is a tricky corner case! I have tested and included the fix in system.pas. I also looked at your mathx unit, and I think it makes sense to include much of that code in VP's int64 unit. Do you have any…"
May 25, 2009

Profile Information

Pascal interest:
User of VP
About Me:
NDN Author
Website:
http://ndn.muxe.com/
Favorite Programming Languages:
Pascal, Asm, C

Comment Wall

  • No comments yet!

You need to be a member of Virtual Pascal to add comments!

Join Virtual Pascal

 
 
 

© 2017   Created by Allan Mertner.   Powered by

Report an Issue  |  Terms of Service