Minor fix for tool tip CPU address field.

This commit is contained in:
mjbudd77 2021-07-11 16:55:14 -04:00
parent e307f5a282
commit 4ffcafd138
1 changed files with 2 additions and 2 deletions

View File

@ -4515,12 +4515,12 @@ bool QAsmView::event(QEvent *event)
{ {
if ( asmEntry[line]->bank < 0 ) if ( asmEntry[line]->bank < 0 )
{ {
sprintf( stmp, "ADDR:\t$%04X", asmEntry[line]->sym.ofs ); sprintf( stmp, "ADDR:\t$%04X", asmEntry[line]->addr );
} }
else else
{ {
sprintf( stmp, "ADDR:\t$%04X\nBANK:\t$%02X\nROM:\t$%06X", sprintf( stmp, "ADDR:\t$%04X\nBANK:\t$%02X\nROM:\t$%06X",
asmEntry[line]->sym.ofs, asmEntry[line]->bank, asmEntry[line]->rom ); asmEntry[line]->addr, asmEntry[line]->bank, asmEntry[line]->rom );
} }
QToolTip::showText(helpEvent->globalPos(), tr(stmp), this ); QToolTip::showText(helpEvent->globalPos(), tr(stmp), this );