Fix stepping
This commit is contained in:
parent
ea38eb4318
commit
8146e7bfb0
4 changed files with 36 additions and 26 deletions
|
@ -1254,4 +1254,22 @@ void CtrlDisAsmView::getOpcodeText(u32 address, char* dest)
|
|||
address = manager.getStartAddress(address);
|
||||
manager.getLine(address,displaySymbols,line);
|
||||
sprintf(dest,"%s %s",line.name.c_str(),line.params.c_str());
|
||||
}
|
||||
|
||||
void CtrlDisAsmView::scrollStepping(u32 newPc)
|
||||
{
|
||||
u32 windowEnd = manager.getNthNextAddress(windowStart,visibleRows);
|
||||
|
||||
newPc = manager.getStartAddress(newPc);
|
||||
if (newPc >= windowEnd || newPc >= manager.getNthPreviousAddress(windowEnd,1))
|
||||
{
|
||||
windowStart = manager.getNthPreviousAddress(newPc,visibleRows-2);
|
||||
}
|
||||
}
|
||||
|
||||
u32 CtrlDisAsmView::getInstructionSizeAt(u32 address)
|
||||
{
|
||||
u32 start = manager.getStartAddress(address);
|
||||
u32 next = manager.getNthNextAddress(start,1);
|
||||
return next-address;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue