mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-17 00:30:04 +00:00
Debugger: Format changes only (PR #1076)
This commit is contained in:
parent
b6404e7d96
commit
1bcf371309
@ -786,7 +786,6 @@ Update_t CmdProfile (int nArgs)
|
|||||||
// Dump to console
|
// Dump to console
|
||||||
if (iParam == PARAM_LIST)
|
if (iParam == PARAM_LIST)
|
||||||
{
|
{
|
||||||
|
|
||||||
char *pText;
|
char *pText;
|
||||||
char sText[ CONSOLE_WIDTH ];
|
char sText[ CONSOLE_WIDTH ];
|
||||||
|
|
||||||
@ -5061,11 +5060,11 @@ Update_t CmdNTSC (int nArgs)
|
|||||||
uint32_t* pChromaTable = NTSC_VideoGetChromaTable( false, bColorTV );
|
uint32_t* pChromaTable = NTSC_VideoGetChromaTable( false, bColorTV );
|
||||||
char aStatusText[ CONSOLE_WIDTH*2 ] = "Loaded";
|
char aStatusText[ CONSOLE_WIDTH*2 ] = "Loaded";
|
||||||
|
|
||||||
//uint8_t* pTmp = (uint8_t*) pChromaTable;
|
//uint8_t* pTmp = (uint8_t*) pChromaTable;
|
||||||
//*pTmp++ = 0xFF; // b
|
//*pTmp++ = 0xFF; // b
|
||||||
//*pTmp++ = 0x00; // g
|
//*pTmp++ = 0x00; // g
|
||||||
//*pTmp++ = 0x00; // r
|
//*pTmp++ = 0x00; // r
|
||||||
//*pTmp++ = 0xFF; // a
|
//*pTmp++ = 0xFF; // a
|
||||||
|
|
||||||
if (nFound)
|
if (nFound)
|
||||||
{
|
{
|
||||||
@ -5168,8 +5167,8 @@ Update_t CmdNTSC (int nArgs)
|
|||||||
if ( pBmp->nCompression == 3 ) // BI_BITFIELDS
|
if ( pBmp->nCompression == 3 ) // BI_BITFIELDS
|
||||||
{
|
{
|
||||||
if ((pBmp->nRedMask == 0xFF000000 ) // Gimp writes in ABGR order
|
if ((pBmp->nRedMask == 0xFF000000 ) // Gimp writes in ABGR order
|
||||||
&& (pBmp->nGreenMask == 0x00FF0000 )
|
&& (pBmp->nGreenMask == 0x00FF0000 )
|
||||||
&& (pBmp->nBlueMask == 0x0000FF00 ))
|
&& (pBmp->nBlueMask == 0x0000FF00 ))
|
||||||
bSwizzle = true;
|
bSwizzle = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5192,7 +5191,7 @@ Update_t CmdNTSC (int nArgs)
|
|||||||
uint8_t *pTemp64x256 = new uint8_t[ 64 * 256 * 4 ];
|
uint8_t *pTemp64x256 = new uint8_t[ 64 * 256 * 4 ];
|
||||||
memset( pTemp64x256, 0, g_nChromaSize );
|
memset( pTemp64x256, 0, g_nChromaSize );
|
||||||
|
|
||||||
//Transpose16x1::transposeFrom16x1( pSwizzled, (uint8_t*) pChromaTable );
|
//Transpose16x1::transposeFrom16x1( pSwizzled, (uint8_t*) pChromaTable );
|
||||||
|
|
||||||
if (pBmp->nWidthPixels == 16)
|
if (pBmp->nWidthPixels == 16)
|
||||||
{
|
{
|
||||||
@ -5317,7 +5316,7 @@ int _SearchMemoryFind(
|
|||||||
WORD nAddress2 = nAddress;
|
WORD nAddress2 = nAddress;
|
||||||
|
|
||||||
int nMemBlocks = vMemorySearchValues.size();
|
int nMemBlocks = vMemorySearchValues.size();
|
||||||
for (int iBlock = 0; iBlock < nMemBlocks; iBlock++, nAddress2++ )
|
for ( int iBlock = 0; iBlock < nMemBlocks; iBlock++, nAddress2++ )
|
||||||
{
|
{
|
||||||
MemorySearch_t ms = vMemorySearchValues.at( iBlock );
|
MemorySearch_t ms = vMemorySearchValues.at( iBlock );
|
||||||
ms.m_bFound = false;
|
ms.m_bFound = false;
|
||||||
@ -7940,9 +7939,9 @@ void ProfileFormat( bool bExport, ProfileFormat_e eFormatMode )
|
|||||||
pColorMnemonic = CHC_COMMAND; // green
|
pColorMnemonic = CHC_COMMAND; // green
|
||||||
pColorOpmode = CHC_USAGE ; // yellow
|
pColorOpmode = CHC_USAGE ; // yellow
|
||||||
pColorTotal = CHC_DEFAULT; // white
|
pColorTotal = CHC_DEFAULT; // white
|
||||||
}
|
}
|
||||||
|
|
||||||
// Opcode
|
// Opcode
|
||||||
if (bExport) // Export = SeperateColumns
|
if (bExport) // Export = SeperateColumns
|
||||||
sprintf( pText
|
sprintf( pText
|
||||||
, "\"Percent\"" DELIM "\"Count\"" DELIM "\"Opcode\"" DELIM "\"Mnemonic\"" DELIM "\"Addressing Mode\"\n"
|
, "\"Percent\"" DELIM "\"Count\"" DELIM "\"Opcode\"" DELIM "\"Mnemonic\"" DELIM "\"Addressing Mode\"\n"
|
||||||
@ -8659,7 +8658,7 @@ void DebugInitialize ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if _DEBUG
|
#if _DEBUG
|
||||||
//g_bConsoleBufferPaused = true;
|
//g_bConsoleBufferPaused = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_Bookmark_Reset();
|
_Bookmark_Reset();
|
||||||
|
@ -326,7 +326,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
pTarget = &strAddressBuf;
|
pTarget = &strAddressBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
// sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, pTarget );
|
//sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, pTarget );
|
||||||
if (bDisasmFormatFlags & DISASM_FORMAT_OFFSET)
|
if (bDisasmFormatFlags & DISASM_FORMAT_OFFSET)
|
||||||
{
|
{
|
||||||
int nAbsTargetOffset = (line_.nTargetOffset > 0) ? line_.nTargetOffset : -line_.nTargetOffset;
|
int nAbsTargetOffset = (line_.nTargetOffset > 0) ? line_.nTargetOffset : -line_.nTargetOffset;
|
||||||
@ -348,8 +348,8 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
|
|
||||||
nTargetValue = *(mem + nTargetPointer) | (*(mem + ((nTargetPointer + 1) & 0xffff)) << 8);
|
nTargetValue = *(mem + nTargetPointer) | (*(mem + ((nTargetPointer + 1) & 0xffff)) << 8);
|
||||||
|
|
||||||
// if (((iOpmode >= AM_A) && (iOpmode <= AM_NZ)) && (iOpmode != AM_R))
|
//if (((iOpmode >= AM_A) && (iOpmode <= AM_NZ)) && (iOpmode != AM_R))
|
||||||
// sprintf( sTargetValue_, "%04X", nTargetValue ); // & 0xFFFF
|
// sprintf( sTargetValue_, "%04X", nTargetValue ); // & 0xFFFF
|
||||||
|
|
||||||
if (g_iConfigDisasmTargets & DISASM_TARGET_ADDR)
|
if (g_iConfigDisasmTargets & DISASM_TARGET_ADDR)
|
||||||
sprintf(line_.sTargetPointer, "%04X", nTargetPointer & 0xFFFF);
|
sprintf(line_.sTargetPointer, "%04X", nTargetPointer & 0xFFFF);
|
||||||
@ -366,7 +366,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
unsigned _char = FormatCharTxtCtrl(FormatCharTxtHigh(line_.nImmediate, NULL), NULL);
|
unsigned _char = FormatCharTxtCtrl(FormatCharTxtHigh(line_.nImmediate, NULL), NULL);
|
||||||
sprintf(line_.sImmediate, "%c", _char);
|
sprintf(line_.sImmediate, "%c", _char);
|
||||||
|
|
||||||
// if (ConsoleColorIsEscapeMeta( nImmediate_ ))
|
//if (ConsoleColorIsEscapeMeta( nImmediate_ ))
|
||||||
#if OLD_CONSOLE_COLOR
|
#if OLD_CONSOLE_COLOR
|
||||||
if (ConsoleColorIsEscapeMeta(_char))
|
if (ConsoleColorIsEscapeMeta(_char))
|
||||||
sprintf(line_.sImmediate, "%c%c", _char, _char);
|
sprintf(line_.sImmediate, "%c%c", _char, _char);
|
||||||
@ -375,17 +375,18 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (iOpmode == AM_NA ) // Indirect Absolute
|
//if (iOpmode == AM_NA ) // Indirect Absolute
|
||||||
// sprintf( sTargetValue_, "%04X", nTargetPointer & 0xFFFF );
|
// sprintf( sTargetValue_, "%04X", nTargetPointer & 0xFFFF );
|
||||||
// else
|
//else
|
||||||
// // sprintf( sTargetValue_, "%02X", nTargetValue & 0xFF );
|
// //sprintf( sTargetValue_, "%02X", nTargetValue & 0xFF );
|
||||||
// sprintf( sTargetValue_, "%04X:%02X", nTargetPointer & 0xFFFF, nTargetValue & 0xFF );
|
// sprintf( sTargetValue_, "%04X:%02X", nTargetPointer & 0xFFFF, nTargetValue & 0xFF );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
if (iOpmode == AM_M)
|
if (iOpmode == AM_M)
|
||||||
{
|
{
|
||||||
// sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, (unsigned)nTarget );
|
//sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, (unsigned)nTarget );
|
||||||
sprintf(line_.sTarget , "%02X", (unsigned)nTarget);
|
sprintf(line_.sTarget , "%02X", (unsigned)nTarget);
|
||||||
|
|
||||||
if (nTarget == 0)
|
if (nTarget == 0)
|
||||||
@ -399,8 +400,8 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
|
|
||||||
bDisasmFormatFlags |= DISASM_FORMAT_CHAR;
|
bDisasmFormatFlags |= DISASM_FORMAT_CHAR;
|
||||||
line_.nImmediate = (BYTE)nTarget;
|
line_.nImmediate = (BYTE)nTarget;
|
||||||
unsigned _char = FormatCharTxtCtrl(FormatCharTxtHigh(line_.nImmediate, NULL), NULL);
|
|
||||||
|
|
||||||
|
unsigned _char = FormatCharTxtCtrl(FormatCharTxtHigh(line_.nImmediate, NULL), NULL);
|
||||||
sprintf(line_.sImmediate, "%c", _char);
|
sprintf(line_.sImmediate, "%c", _char);
|
||||||
#if OLD_CONSOLE_COLOR
|
#if OLD_CONSOLE_COLOR
|
||||||
if (ConsoleColorIsEscapeMeta(_char))
|
if (ConsoleColorIsEscapeMeta(_char))
|
||||||
@ -409,6 +410,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
sprintf(line_.sImmediate, "%c", _char);
|
sprintf(line_.sImmediate, "%c", _char);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(line_.sAddress, "%04X", nBaseAddress);
|
sprintf(line_.sAddress, "%04X", nBaseAddress);
|
||||||
@ -466,8 +468,8 @@ void FormatOpcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
|
|
||||||
struct FAC_t
|
struct FAC_t
|
||||||
{
|
{
|
||||||
uint8_t negative;
|
uint8_t negative;
|
||||||
int8_t exponent;
|
int8_t exponent;
|
||||||
uint32_t mantissa;
|
uint32_t mantissa;
|
||||||
|
|
||||||
bool isZero;
|
bool isZero;
|
||||||
@ -575,6 +577,8 @@ void FormatNopcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
strncpy(pDst, (const char*)(mem + nBaseAddress), iByte);
|
strncpy(pDst, (const char*)(mem + nBaseAddress), iByte);
|
||||||
pDst += iByte;
|
pDst += iByte;
|
||||||
*pDst = 0;
|
*pDst = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case NOP_STRING_APPLE:
|
case NOP_STRING_APPLE:
|
||||||
iByte = line_.nOpbyte; // handle all bytes of text
|
iByte = line_.nOpbyte; // handle all bytes of text
|
||||||
pSrc = (const char*)mem + nStartAddress;
|
pSrc = (const char*)mem + nStartAddress;
|
||||||
@ -604,10 +608,10 @@ void FormatNopcodeBytes(WORD nBaseAddress, DisasmLine_t& line_)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
#if _DEBUG // Unhandled data disassembly!
|
#if _DEBUG // Unhandled data disassembly!
|
||||||
int* FATAL = 0;
|
int* FATAL = 0;
|
||||||
*FATAL = 0xDEADC0DE;
|
*FATAL = 0xDEADC0DE;
|
||||||
#endif
|
#endif
|
||||||
iByte++;
|
iByte++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -630,43 +634,47 @@ void FormatDisassemblyLine(const DisasmLine_t& line, char* sDisassembly, const i
|
|||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (line.bTargetIndexed || line.bTargetIndirect)
|
if (line.bTargetIndexed || line.bTargetIndirect)
|
||||||
{
|
{
|
||||||
strcat( sDisassembly, "(" );
|
strcat( sDisassembly, "(" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.bTargetImmediate)
|
if (line.bTargetImmediate)
|
||||||
strcat( sDisassembly, "#$" );
|
strcat( sDisassembly, "#$" );
|
||||||
|
|
||||||
if (line.bTargetValue)
|
if (line.bTargetValue)
|
||||||
strcat( sDisassembly, line.sTarget );
|
strcat( sDisassembly, line.sTarget );
|
||||||
|
|
||||||
if (line.bTargetIndirect)
|
if (line.bTargetIndirect)
|
||||||
{
|
{
|
||||||
if (line.bTargetX)
|
if (line.bTargetX)
|
||||||
strcat( sDisassembly, ", X" );
|
strcat( sDisassembly, ", X" );
|
||||||
if (line.bTargetY)
|
if (line.bTargetY)
|
||||||
strcat( sDisassembly, ", Y" );
|
strcat( sDisassembly, ", Y" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.bTargetIndexed || line.bTargetIndirect)
|
if (line.bTargetIndexed || line.bTargetIndirect)
|
||||||
{
|
{
|
||||||
strcat( sDisassembly, ")" );
|
strcat( sDisassembly, ")" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.bTargetIndirect)
|
if (line.bTargetIndirect)
|
||||||
{
|
{
|
||||||
if (line.bTargetY)
|
if (line.bTargetY)
|
||||||
strcat( sDisassembly, ", Y" );
|
strcat( sDisassembly, ", Y" );
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char sTarget[32];
|
char sTarget[32];
|
||||||
|
|
||||||
if (line.bTargetValue || line.bTargetRelative || line.bTargetImmediate)
|
if (line.bTargetValue || line.bTargetRelative || line.bTargetImmediate)
|
||||||
{
|
{
|
||||||
if (line.bTargetRelative)
|
if (line.bTargetRelative)
|
||||||
|
{
|
||||||
strcpy(sTarget, line.sTargetValue);
|
strcpy(sTarget, line.sTargetValue);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
if (line.bTargetImmediate)
|
if (line.bTargetImmediate)
|
||||||
{
|
{
|
||||||
strcat(sDisassembly, "#");
|
strcat(sDisassembly, "#");
|
||||||
@ -675,6 +683,7 @@ void FormatDisassemblyLine(const DisasmLine_t& line, char* sDisassembly, const i
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(sTarget, g_aOpmodes[line.iOpmode].m_sFormat, line.nTarget);
|
sprintf(sTarget, g_aOpmodes[line.iOpmode].m_sFormat, line.nTarget);
|
||||||
|
}
|
||||||
|
|
||||||
strcat(sDisassembly, "$");
|
strcat(sDisassembly, "$");
|
||||||
strcat(sDisassembly, sTarget);
|
strcat(sDisassembly, sTarget);
|
||||||
|
@ -162,23 +162,23 @@ WORD _CmdDefineByteRange(int nArgs,int iArg,DisasmData_t & tData_)
|
|||||||
// Old name: auto define D_# DB $XX
|
// Old name: auto define D_# DB $XX
|
||||||
// Example 'DB' or 'DW' with 1 arg
|
// Example 'DB' or 'DW' with 1 arg
|
||||||
// DB 801
|
// DB 801
|
||||||
Nopcode_e nopcode = NOP_BYTE_1;
|
Nopcode_e nopcode = NOP_BYTE_1;
|
||||||
|
|
||||||
bool isFloat = (g_iCommand == CMD_DEFINE_DATA_FLOAT);
|
bool isFloat = (g_iCommand == CMD_DEFINE_DATA_FLOAT);
|
||||||
if ( isFloat )
|
if ( isFloat )
|
||||||
nopcode = NOP_FAC;
|
nopcode = NOP_FAC;
|
||||||
|
|
||||||
bool isString = (g_iCommand == CMD_DEFINE_DATA_STR);
|
bool isString = (g_iCommand == CMD_DEFINE_DATA_STR);
|
||||||
if ( isString )
|
if ( isString )
|
||||||
nopcode = NOP_STRING_ASCII;
|
nopcode = NOP_STRING_ASCII;
|
||||||
|
|
||||||
bool isWord1 = (g_iCommand == CMD_DEFINE_DATA_WORD1);
|
bool isWord1 = (g_iCommand == CMD_DEFINE_DATA_WORD1);
|
||||||
if ( isWord1 )
|
if ( isWord1 )
|
||||||
nopcode = NOP_WORD_1;
|
nopcode = NOP_WORD_1;
|
||||||
|
|
||||||
bool isAddr = (g_iCommand == CMD_DEFINE_ADDR_WORD);
|
bool isAddr = (g_iCommand == CMD_DEFINE_ADDR_WORD);
|
||||||
if ( isAddr )
|
if ( isAddr )
|
||||||
nopcode = NOP_ADDRESS;
|
nopcode = NOP_ADDRESS;
|
||||||
|
|
||||||
if ( bAutoDefineName )
|
if ( bAutoDefineName )
|
||||||
{
|
{
|
||||||
|
@ -2523,125 +2523,125 @@ void DrawSoftSwitches( int iSoftSwitch )
|
|||||||
RECT temp;
|
RECT temp;
|
||||||
int nFontWidth = g_aFontConfig[ FONT_INFO ]._nFontWidthAvg;
|
int nFontWidth = g_aFontConfig[ FONT_INFO ]._nFontWidthAvg;
|
||||||
|
|
||||||
rect.left = DISPLAY_SOFTSWITCH_COLUMN;
|
rect.left = DISPLAY_SOFTSWITCH_COLUMN;
|
||||||
rect.top = iSoftSwitch * g_nFontHeight;
|
rect.top = iSoftSwitch * g_nFontHeight;
|
||||||
rect.right = rect.left + (10 * nFontWidth) + 1;
|
rect.right = rect.left + (10 * nFontWidth) + 1;
|
||||||
rect.bottom = rect.top + g_nFontHeight;
|
rect.bottom = rect.top + g_nFontHeight;
|
||||||
temp = rect;
|
temp = rect;
|
||||||
|
|
||||||
DebuggerSetColorBG( DebuggerGetColor( BG_INFO ));
|
DebuggerSetColorBG( DebuggerGetColor( BG_INFO ));
|
||||||
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
|
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
|
||||||
|
|
||||||
#if SOFTSWITCH_OLD
|
#if SOFTSWITCH_OLD
|
||||||
char sText[16] = "";
|
char sText[16] = "";
|
||||||
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
||||||
// GR / TEXT
|
// GR / TEXT
|
||||||
// GRAPH/TEXT
|
// GRAPH/TEXT
|
||||||
// TEXT ON/OFF
|
// TEXT ON/OFF
|
||||||
sprintf( sText, !VideoGetSWTEXT() ? "GR / ----" : "-- / TEXT" );
|
sprintf( sText, !VideoGetSWTEXT() ? "GR / ----" : "-- / TEXT" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
// $C052 / $C053 = MIXEDOFF/MIXEDON = SW.MIXCLR/SW.MIXSET
|
// $C052 / $C053 = MIXEDOFF/MIXEDON = SW.MIXCLR/SW.MIXSET
|
||||||
// FULL/MIXED
|
// FULL/MIXED
|
||||||
// MIX OFF/ON
|
// MIX OFF/ON
|
||||||
sprintf( sText, !VideoGetSWMIXED() ? "FULL/-----" : "----/MIXED" );
|
sprintf( sText, !VideoGetSWMIXED() ? "FULL/-----" : "----/MIXED" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
// $C054 / $C055 = PAGE1/PAGE2 = PAGE2OFF/PAGE2ON = SW.LOWSCR/SW.HISCR
|
// $C054 / $C055 = PAGE1/PAGE2 = PAGE2OFF/PAGE2ON = SW.LOWSCR/SW.HISCR
|
||||||
// PAGE 1 / 2
|
// PAGE 1 / 2
|
||||||
sprintf( sText, !VideoGetSWPAGE2() ? "PAGE 1 / -" : "PAGE - / 2" );
|
sprintf( sText, !VideoGetSWPAGE2() ? "PAGE 1 / -" : "PAGE - / 2" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
// $C056 / $C057 LORES/HIRES = HIRESOFF/HIRESON = SW.LORES/SW.HIRES
|
// $C056 / $C057 LORES/HIRES = HIRESOFF/HIRESON = SW.LORES/SW.HIRES
|
||||||
// LO / HIRES
|
// LO / HIRES
|
||||||
// LO / -----
|
// LO / -----
|
||||||
// -- / HIRES
|
// -- / HIRES
|
||||||
sprintf( sText, !VideoGetSWHIRES() ? "LO /-- RES" : "---/HI RES" );
|
sprintf( sText, !VideoGetSWHIRES() ? "LO /-- RES" : "---/HI RES" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
PrintTextCursorY( "", rect );
|
PrintTextCursorY( "", rect );
|
||||||
|
|
||||||
// Extended soft switches
|
// Extended soft switches
|
||||||
sprintf( sText, !VideoGetSW80COL() ? "40 / -- COL" : "-- / 80 COL" );
|
sprintf( sText, !VideoGetSW80COL() ? "40 / -- COL" : "-- / 80 COL" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
sprintf(sText, VideoGetSWAltCharSet() ? "ASCII/-----" : "-----/MOUSE" );
|
sprintf(sText, VideoGetSWAltCharSet() ? "ASCII/-----" : "-----/MOUSE" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
|
|
||||||
// 280/560 HGR
|
// 280/560 HGR
|
||||||
sprintf(sText, !VideoGetSWDHIRES() ? "HGR / ----" : "--- / DHGR" );
|
sprintf(sText, !VideoGetSWDHIRES() ? "HGR / ----" : "--- / DHGR" );
|
||||||
PrintTextCursorY( sText, rect );
|
PrintTextCursorY( sText, rect );
|
||||||
#else //SOFTSWITCH_OLD
|
#else //SOFTSWITCH_OLD
|
||||||
// See: VideoSetMode()
|
// See: VideoSetMode()
|
||||||
|
|
||||||
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
||||||
// GR / TEXT
|
// GR / TEXT
|
||||||
// GRAPH/TEXT
|
// GRAPH/TEXT
|
||||||
// TEXT ON/OFF
|
// TEXT ON/OFF
|
||||||
bool bSet;
|
bool bSet;
|
||||||
|
|
||||||
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
// $C050 / $C051 = TEXTOFF/TEXTON = SW.TXTCLR/SW.TXTSET
|
||||||
bSet = !GetVideo().VideoGetSWTEXT();
|
bSet = !GetVideo().VideoGetSWTEXT();
|
||||||
_DrawSoftSwitch( rect, 0xC050, bSet, NULL, "GR.", "TEXT" );
|
_DrawSoftSwitch( rect, 0xC050, bSet, NULL, "GR.", "TEXT" );
|
||||||
|
|
||||||
// $C052 / $C053 = MIXEDOFF/MIXEDON = SW.MIXCLR/SW.MIXSET
|
// $C052 / $C053 = MIXEDOFF/MIXEDON = SW.MIXCLR/SW.MIXSET
|
||||||
// FULL/MIXED
|
// FULL/MIXED
|
||||||
// MIX OFF/ON
|
// MIX OFF/ON
|
||||||
bSet = !GetVideo().VideoGetSWMIXED();
|
bSet = !GetVideo().VideoGetSWMIXED();
|
||||||
_DrawSoftSwitch( rect, 0xC052, bSet, NULL, "FULL", "MIX" );
|
_DrawSoftSwitch( rect, 0xC052, bSet, NULL, "FULL", "MIX" );
|
||||||
|
|
||||||
// $C054 / $C055 = PAGE1/PAGE2 = PAGE2OFF/PAGE2ON = SW.LOWSCR/SW.HISCR
|
// $C054 / $C055 = PAGE1/PAGE2 = PAGE2OFF/PAGE2ON = SW.LOWSCR/SW.HISCR
|
||||||
// PAGE 1 / 2
|
// PAGE 1 / 2
|
||||||
bSet = !GetVideo().VideoGetSWPAGE2();
|
bSet = !GetVideo().VideoGetSWPAGE2();
|
||||||
_DrawSoftSwitch( rect, 0xC054, bSet, "PAGE ", "1", "2" );
|
_DrawSoftSwitch( rect, 0xC054, bSet, "PAGE ", "1", "2" );
|
||||||
|
|
||||||
// $C056 / $C057 LORES/HIRES = HIRESOFF/HIRESON = SW.LORES/SW.HIRES
|
// $C056 / $C057 LORES/HIRES = HIRESOFF/HIRESON = SW.LORES/SW.HIRES
|
||||||
// LO / HIRES
|
// LO / HIRES
|
||||||
// LO / -----
|
// LO / -----
|
||||||
// -- / HIRES
|
// -- / HIRES
|
||||||
bSet = !GetVideo().VideoGetSWHIRES();
|
bSet = !GetVideo().VideoGetSWHIRES();
|
||||||
_DrawSoftSwitch( rect, 0xC056, bSet, NULL, "LO", "HI", "RES" );
|
_DrawSoftSwitch( rect, 0xC056, bSet, NULL, "LO", "HI", "RES" );
|
||||||
|
|
||||||
DebuggerSetColorBG( DebuggerGetColor( BG_INFO ));
|
DebuggerSetColorBG( DebuggerGetColor( BG_INFO ));
|
||||||
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
|
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_TITLE ));
|
||||||
|
|
||||||
// 280/560 HGR
|
// 280/560 HGR
|
||||||
// C05E = ON, C05F = OFF
|
// C05E = ON, C05F = OFF
|
||||||
bSet = GetVideo().VideoGetSWDHIRES();
|
bSet = GetVideo().VideoGetSWDHIRES();
|
||||||
_DrawSoftSwitch( rect, 0xC05E, bSet, NULL, "DHGR", "HGR" );
|
_DrawSoftSwitch( rect, 0xC05E, bSet, NULL, "DHGR", "HGR" );
|
||||||
|
|
||||||
|
|
||||||
// Extended soft switches
|
// Extended soft switches
|
||||||
int bgMemory = BG_DATA_2;
|
int bgMemory = BG_DATA_2;
|
||||||
|
|
||||||
// C000 = 80STOREOFF, C001 = 80STOREON
|
// C000 = 80STOREOFF, C001 = 80STOREON
|
||||||
bSet = !GetVideo().VideoGetSW80STORE();
|
bSet = !GetVideo().VideoGetSW80STORE();
|
||||||
_DrawSoftSwitch( rect, 0xC000, bSet, "80Sto", "0", "1", NULL, bgMemory );
|
_DrawSoftSwitch( rect, 0xC000, bSet, "80Sto", "0", "1", NULL, bgMemory );
|
||||||
|
|
||||||
// C002 .. C005
|
// C002 .. C005
|
||||||
_DrawSoftSwitchMainAuxBanks( rect, bgMemory );
|
_DrawSoftSwitchMainAuxBanks( rect, bgMemory );
|
||||||
|
|
||||||
// C00C = off, C00D = on
|
// C00C = off, C00D = on
|
||||||
bSet = !GetVideo().VideoGetSW80COL();
|
bSet = !GetVideo().VideoGetSW80COL();
|
||||||
_DrawSoftSwitch( rect, 0xC00C, bSet, "Col", "40", "80", NULL, bgMemory );
|
_DrawSoftSwitch( rect, 0xC00C, bSet, "Col", "40", "80", NULL, bgMemory );
|
||||||
|
|
||||||
// C00E = off, C00F = on
|
// C00E = off, C00F = on
|
||||||
bSet = !GetVideo().VideoGetSWAltCharSet();
|
bSet = !GetVideo().VideoGetSWAltCharSet();
|
||||||
_DrawSoftSwitch( rect, 0xC00E, bSet, NULL, "ASC", "MOUS", NULL, bgMemory ); // ASCII/MouseText
|
_DrawSoftSwitch( rect, 0xC00E, bSet, NULL, "ASC", "MOUS", NULL, bgMemory ); // ASCII/MouseText
|
||||||
|
|
||||||
#if SOFTSWITCH_LANGCARD
|
#if SOFTSWITCH_LANGCARD
|
||||||
// GH#406 https://github.com/AppleWin/AppleWin/issues/406
|
// GH#406 https://github.com/AppleWin/AppleWin/issues/406
|
||||||
// 2.9.0.4
|
// 2.9.0.4
|
||||||
// Language Card Bank 1/2
|
// Language Card Bank 1/2
|
||||||
// See: MemSetPaging()
|
// See: MemSetPaging()
|
||||||
|
|
||||||
// LC2 & C008/C009 (ALTZP & ALT-LC)
|
// LC2 & C008/C009 (ALTZP & ALT-LC)
|
||||||
DebuggerSetColorBG( DebuggerGetColor( bgMemory )); // BG_INFO_2 -> BG_DATA_2
|
DebuggerSetColorBG( DebuggerGetColor( bgMemory )); // BG_INFO_2 -> BG_DATA_2
|
||||||
_DrawSoftSwitchLanguageCardBank( rect, 2, bgMemory );
|
_DrawSoftSwitchLanguageCardBank( rect, 2, bgMemory );
|
||||||
|
|
||||||
// LC1
|
// LC1
|
||||||
rect.left = DISPLAY_SOFTSWITCH_COLUMN; // INFO_COL_2;
|
rect.left = DISPLAY_SOFTSWITCH_COLUMN; // INFO_COL_2;
|
||||||
_DrawSoftSwitchLanguageCardBank( rect, 1, bgMemory );
|
_DrawSoftSwitchLanguageCardBank( rect, 1, bgMemory );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // SOFTSWITCH_OLD
|
#endif // SOFTSWITCH_OLD
|
||||||
@ -3192,7 +3192,7 @@ void DrawSubWindow_Data (Update_t bUpdate)
|
|||||||
|
|
||||||
nAddress += nMaxOpcodes;
|
nAddress += nMaxOpcodes;
|
||||||
|
|
||||||
rect.top += nFontHeight;
|
rect.top += nFontHeight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user