From 5ef204d3b862fb94ff5501ccb417ae8de4cc87d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 17 Dec 2017 10:58:25 +0100 Subject: [PATCH] Use /O for Backwards Disassembly Scrolling --- src/cutter.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cutter.cpp b/src/cutter.cpp index 4e4cf0c0..0e3008b9 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -397,12 +397,9 @@ void CutterCore::seekNext() RVA CutterCore::prevOpAddr(RVA startAddr, int count) { CORE_LOCK(); - RVA prev; - if (!r_core_prevop_addr(core_, startAddr, count, &prev)) - { - prev = startAddr - count; - } - return prev; + bool ok; + RVA offset = cmd("/O " + QString::number(count) + " @ " + QString::number(startAddr)).toULongLong(&ok, 16); + return ok ? offset : startAddr - count; } RVA CutterCore::nextOpAddr(RVA startAddr, int count)