mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
Check that register is not memory i.e. [eax] to generate correct opcode
This commit is contained in:
parent
31ff46507b
commit
f6b0ba574b
@ -1214,7 +1214,8 @@ static int oppush(RAsm *a, ut8 *data, const Opcode op) {
|
||||
int mod = 0;
|
||||
st32 immediate = 0;;
|
||||
st32 offset = 0;
|
||||
if (op.operands[0].type & OT_GPREG) {
|
||||
if (op.operands[0].type & OT_GPREG &&
|
||||
!(op.operands[0].type & OT_MEMORY)) {
|
||||
ut8 base = 0x50;
|
||||
data[l++] = base + op.operands[0].reg;
|
||||
} else if (op.operands[0].type & OT_MEMORY) {
|
||||
|
Loading…
Reference in New Issue
Block a user