mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-02 20:41:38 +00:00
Add debug FAC
This commit is contained in:
parent
aa4af5e9d5
commit
71a7e21dda
|
@ -547,9 +547,15 @@ void FormatNopcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
|
|||
sprintf( pDst, "0" );
|
||||
else
|
||||
{
|
||||
double f = fac.mantissa * pow( 2.0, fac.exponent - 32 );
|
||||
//sprintf( "s%1X m%04X e%02X", fac.negative, fac.mantissa, fac.exponent );
|
||||
sprintf( pDst, "%c%f", aSign[ fac.negative ], f );
|
||||
double f = fac.mantissa * pow( 2.0, fac.exponent - 32.0 );
|
||||
#if DEBUG_FAC
|
||||
sprintf( "s%1X m%04X e%02X", fac.negative, fac.mantissa, fac.exponent );
|
||||
#else
|
||||
//sprintf( pDst, "%c%12.11e", aSign[ fac.negative ], f ); // HACK: Magic Number 12, should be DISASM_DISPLAY_MAX_IMMEDIATE_LEN ??
|
||||
// = 32-bit mantissa * log(2)
|
||||
// = 9.6 digits of precision
|
||||
sprintf( pDst, "%c%9.8e" , aSign[ fac.negative ], f );
|
||||
#endif
|
||||
}
|
||||
iByte += 5;
|
||||
break;
|
||||
|
|
|
@ -495,9 +495,10 @@ Update_t CmdDisasmDataDefAddress8L (int nArgs)
|
|||
//===========================================================================
|
||||
Update_t CmdDisasmDataDefAddress16 (int nArgs)
|
||||
{
|
||||
int iCmd = NOP_WORD_1 - g_aArgs[0].nValue;
|
||||
int iCmd = g_aArgs[0].nValue; // delta command: NOP_WORD_1 == 0
|
||||
|
||||
if (! ((nArgs <= 2) || (nArgs == 4)))
|
||||
//if (! ((nArgs <= 2) || (nArgs == 4)))
|
||||
if (nArgs > 4) // 2.9.1.14 DA D000:D007
|
||||
{
|
||||
return Help_Arg_1( CMD_DEFINE_DATA_WORD1 + iCmd );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user