From 28c3313baaa05e37b9afc5fc3dcd94757359c286 Mon Sep 17 00:00:00 2001 From: Curve Date: Mon, 20 May 2024 19:17:07 +0200 Subject: [PATCH] feat(instruction): increase accuracy --- src/instruction.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/instruction.cpp b/src/instruction.cpp index 030bd1b..b86e99d 100644 --- a/src/instruction.cpp +++ b/src/instruction.cpp @@ -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; }