Skip to content

Commit

Permalink
feat(instruction): increase accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 20, 2024
1 parent d9998ed commit 28c3313
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/instruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,22 @@ namespace lime

const auto next = instruction->next();

if (!next || next->addr() != m_impl->address)
if (!next)
{
continue;
}

if (next->addr() != m_impl->address)
{
continue;
}

if (next->size() != size())
{
continue;
}

if (next->mnemonic() != mnemonic())
{
continue;
}
Expand Down

0 comments on commit 28c3313

Please sign in to comment.