From fc336e78d0f7cc8f52a33f4d3f8a6455323fa1ee Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Wed, 27 Jun 2012 01:54:10 -0500 Subject: [PATCH] Correct source bits shift offset for non-register extension word --- util/dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dis.c b/util/dis.c index 714789d..5e8a375 100644 --- a/util/dis.c +++ b/util/dis.c @@ -784,7 +784,7 @@ int dis_decode(const uint8_t *code, address_t offset, address_t len, insn->rep_index = ex_word & 0xf; } else { insn->dst_addr |= (ex_word & 0xf) << 16; - insn->src_addr |= ((ex_word >> 6) & 0xf) << 16; + insn->src_addr |= ((ex_word >> 7) & 0xf) << 16; } if (!(ex_word & 0x40))