MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DrawSubWindow_Code

Function DrawSubWindow_Code

source/Debugger/Debugger_Display.cpp:4047–4074  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

4045
4046//===========================================================================
4047void DrawSubWindow_Code ( int iWindow )
4048{
4049 int nLines = g_nDisasmWinHeight;
4050
4051// WindowSplit_t * pWindow = &g_aWindowConfig[ iWindow ];
4052
4053 // Check if we have a bad disasm
4054 // BUG: This still doesn't catch all cases
4055 // G FB53, SPACE, PgDn *
4056 // Note: DrawDisassemblyLine() has kludge.
4057// DisasmCalcTopFromCurAddress( false );
4058 // These should be functionally equivalent.
4059 // DisasmCalcTopFromCurAddress();
4060 // DisasmCalcBotFromTopAddress();
4061#if !USE_APPLE_FONT
4062 SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_DISASM_DEFAULT ]._hFont );
4063#endif
4064
4065 WORD nAddress = g_nDisasmTopAddress; // g_nDisasmCurAddress;
4066 for (int iLine = 0; iLine < nLines; iLine++ )
4067 {
4068 nAddress += DrawDisassemblyLine( iLine, nAddress );
4069 }
4070
4071#if !USE_APPLE_FONT
4072 SelectObject( GetDebuggerMemDC(), g_aFontConfig[ FONT_INFO ]._hFont );
4073#endif
4074}

Callers 1

DrawWindow_CodeFunction · 0.85

Calls 2

GetDebuggerMemDCFunction · 0.85
DrawDisassemblyLineFunction · 0.85

Tested by

no test coverage detected