mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-08 16:29:39 +00:00
Debugger 2.9.1.23: Show floating-point values in scientific notation.
This commit is contained in:
parent
cec64f074b
commit
3154342c42
|
@ -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
|
||||
|
|
|
@ -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 _________________________________________________________________________________________
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user