Use uppercase for program counter name

This commit is contained in:
itayc0hen 2019-12-06 19:57:11 +02:00 committed by Itay Cohen
parent c15cac1cba
commit d197339665

View File

@ -490,7 +490,7 @@ void DisassemblyContextMenu::aboutToShowSlot()
// Only show debug options if we are currently debugging // Only show debug options if we are currently debugging
debugMenu->menuAction()->setVisible(Core()->currentlyDebugging); debugMenu->menuAction()->setVisible(Core()->currentlyDebugging);
QString progCounterName = Core()->getRegisterName("PC"); QString progCounterName = Core()->getRegisterName("PC").toUpper();
actionSetPC.setText("Set " + progCounterName + " here"); actionSetPC.setText("Set " + progCounterName + " here");
} }
@ -726,7 +726,7 @@ void DisassemblyContextMenu::on_actionContinueUntil_triggered()
void DisassemblyContextMenu::on_actionSetPC_triggered() void DisassemblyContextMenu::on_actionSetPC_triggered()
{ {
QString progCounterName = Core()->getRegisterName("PC"); QString progCounterName = Core()->getRegisterName("PC");
Core()->setRegister(progCounterName, RAddressString(offset)); Core()->setRegister(progCounterName, RAddressString(offset).toUpper());
} }
void DisassemblyContextMenu::on_actionAddComment_triggered() void DisassemblyContextMenu::on_actionAddComment_triggered()