Going from source location to assembly line.

This commit is contained in:
Bartosz Taudul 2020-04-02 13:10:18 +02:00
parent 430aa5564d
commit b016d9e295

View File

@ -476,6 +476,12 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint
sprintf( buf, "@%s", asmString );
const auto asmsz = strlen( buf );
TextDisabledUnformatted( buf );
if( ImGui::IsItemClicked() )
{
m_showAsm = true;
m_currentAddr = (*addresses)[0];
m_targetAddr = (*addresses)[0];
}
ImGui::SameLine( 0, 0 );
ImGui::ItemSize( ImVec2( stw * ( 8 - asmsz ), ty ), 0 );
}