Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Small fix for LineA/F emulator instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Kryvian committed Jun 12, 2017
1 parent 30362d8 commit 922ad86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gensida/ida/ida_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ static int idaapi hook_idp(void *user_data, int notification_code, va_list va)
break;
}

ea_t ea = get_first_cref_to(cmd.ea);
if (ea!= BADADDR && isCode(getFlags(ea)) && (itype == M68K_linea || itype == M68K_linef))
ea_t ea_c = get_first_cref_to(cmd.ea);
ea_t ea_d = get_first_dref_to(cmd.ea);
if (((ea_c != BADADDR && isCode(getFlags(ea_c))) || (ea_d != BADADDR)) && (itype == M68K_linea || itype == M68K_linef))
{
cmd.itype = itype;
cmd.size = 2;
Expand Down

0 comments on commit 922ad86

Please sign in to comment.