1
0
Fork 0

GUI: do not draw jump lines in the sidebar when they go out of the current disassembled section

This commit is contained in:
Mr. eXoDia 2014-06-25 01:19:54 +02:00
parent de7556c95a
commit e52b824fad
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ bool CPUSideBar::isJump(int i) const
int BranchType=InstrBuffer->at(i).disasm.Instruction.BranchType;
if(BranchType && BranchType!=RetType && BranchType!=CallType)
{
return true;
uint_t start=CodePtr->getBase();
uint_t end=start+CodePtr->getSize();
uint_t addr=InstrBuffer->at(i).disasm.Instruction.AddrValue;
return addr>=start && addr<end; //do not draw jumps that go out of the section
}
return false;
}