Debugger 2.9.1.23: Show floating-point values in scientific notation.

This commit is contained in:
michaelangel007 2023-05-29 19:41:51 -07:00
parent cec64f074b
commit 3154342c42
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
/*
2.9.1.23 Fixed: Show floating-point values in scientific notation.
2.9.1.22 Fixed: `df FAC` was incorrectly getting marked up as `db`
2.9.1.21 Fixed: `df` showing zero was displaying 0 instead 0.0
2.9.1.20 Fixed: Changed DISK INFO to have 1 line abbreviation for disk state

View File

@ -53,7 +53,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define MAKE_VERSION(a,b,c,d) ((a<<24) | (b<<16) | (c<<8) | (d))
// See /docs/Debugger_Changelog.txt for full details
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,22);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,23);
// Public _________________________________________________________________________________________

View File

@ -567,7 +567,8 @@ void FormatNopcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
{
const double f = fac.mantissa * pow( 2.0, fac.exponent - 32 );
//std::string sFac = StrFormat( "s%1X m%04X e%08X", fac.negative, fac.mantissa, fac.exponent );
std::string sFac = StrFormat( "%c%f", aSign[ fac.negative ], f );
// 2.9.1.23: Show floating-point values in scientific notation.
std::string sFac = StrFormat( "%c%e", aSign[ fac.negative ], f );
if ((pDst + sFac.length()) < pEnd)
{
memcpy(pDst, sFac.c_str(), sFac.length());