[hatari-devel] debugger evaluate command

Eero Tamminen eerot at users.berlios.de
Tue Sep 22 20:26:53 CEST 2009


Hi,

On Tuesday 22 September 2009, Laurent Sallafranque wrote:
> It doesn't compile anymore.
>
> Perhaps you forgot to upload calculate.h

Sorry about that, it's fixed now.


Btw. Although the new debugger "evaluate" command should do most
calculations just fine, it has still some bugs / restrictions:

* Parenthesis (to change precedence) don't work yet.

* For now binary prefix is "'".  I'll probably remove the '%' modulo
  operation support so that binary numbers can use same prefix as rest
  of the debugger.

* It doesn't support debugger number-base setting.  When I fix that, I'll
  probably remove support for octal and "ASCII" numbers as DebugUI doesn't
  support those.  Octal numbers can be useful only for BCD / nibble number
  calculations, but I couldn't come up with reasonable prefix for them. ;-)

* Calculations are done as doubles and signed longs.  Former means that
  divisions can have funny results when printed (due to conversion accuracy)
  and that shift and logical OR & AND operations support values only up to
  0x7fffffff.  If floating point calculations aren't needed, I could change
  everything to use (signed) long longs?

Comments?


	- Eero
  
(The code is based on a very old program of mine.)



More information about the hatari-devel mailing list