libmach: fix printing of amd64 modrm byte register with rex prefix
This commit is contained in:
parent
81545f346f
commit
f02f05ca6a
1 changed files with 1 additions and 1 deletions
|
@ -1878,7 +1878,7 @@ pea(Instr *ip)
|
|||
{
|
||||
if (ip->mod == 3) {
|
||||
if (ip->osize == 'B')
|
||||
bprint(ip, (ip->rex & REXB? breg64: breg)[ip->base]);
|
||||
bprint(ip, (ip->rex? breg64: breg)[ip->rex&REXB? ip->base+8: ip->base]);
|
||||
else if(ip->rex & REXB)
|
||||
bprint(ip, "%s%s", ANAME(ip), reg[ip->base+8]);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue