Fixed incorrect 8-bit displacement
8-bit displacement was treated as unsigned while it should actually be signed.
This commit is contained in:
parent
25a6bab761
commit
1510c4f26f
|
@ -409,7 +409,7 @@ static void get_with_index_address_mode(m68k_info *info, cs_m68k_op* op, uint in
|
|||
op->address_mode = M68K_AM_AREGI_INDEX_8_BIT_DISP;
|
||||
}
|
||||
|
||||
op->mem.disp = extension & 0xff;
|
||||
op->mem.disp = (int8_t)(extension & 0xff);
|
||||
}
|
||||
|
||||
if (EXT_INDEX_SCALE(extension)) {
|
||||
|
|
Loading…
Reference in New Issue