AssembleDialog : Small fix, assembled instruction would give wrong size because it didn't take current instruction address into account for relative addressing.
This commit is contained in:
parent
9b8bcc70ec
commit
bb03b284a2
|
|
@ -68,7 +68,7 @@ void AssembleDialog::compareTypedInstructionToSelected()
|
|||
selectedInstructionSize = basicInstrInfo.size;
|
||||
|
||||
// Get typed in instruction size
|
||||
if(!DbgFunctions()->Assemble(0, NULL, &typedInstructionSize, editText.toUtf8().constData(), error) || selectedInstructionSize == 0)
|
||||
if(!DbgFunctions()->Assemble(this->selectedInstrVa, NULL, &typedInstructionSize, editText.toUtf8().constData(), error) || selectedInstructionSize == 0)
|
||||
{
|
||||
this->setKeepSizeLabel("<font color='orange'><b>Instruction decoding error : " + QString(error) + "</b></font>");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue