From 5361aa325ac20891105e6277a3dbfd597f1536da Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 25 Apr 2011 03:41:49 +0000 Subject: [PATCH] Nicer diassembly output --- src/arch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arch.c b/src/arch.c index eacc784..924f3a5 100644 --- a/src/arch.c +++ b/src/arch.c @@ -496,6 +496,11 @@ static int _decode_print(Arch * arch, ArchInstructionCall * call) { case AOT_DREGISTER: name = ao->value.dregister.name; + if(ao->value.dregister.offset == 0) + { + printf("%s[%%%s]", sep, name); + break; + } printf("%s[%%%s + $0x%lx]", sep, name, ao->value.dregister.offset); break;