Fixed incorrect 8-bit displacement

8-bit displacement was treated as unsigned while it should actually be signed.
This commit is contained in:
Daniel Collin 2017-01-23 20:11:53 +01:00
parent 25a6bab761
commit 1510c4f26f
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {