MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / DoesQualifyForLocalDisassembly

Function DoesQualifyForLocalDisassembly

arch/powerpc/disassembler.cpp:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20thread_local csh handle_big = 0;
21
22int DoesQualifyForLocalDisassembly(const uint8_t *data, bool bigendian)
23{
24 uint32_t insword = *(uint32_t *)data;
25 int result = PPC_INS_INVALID;
26 uint32_t tmp = 0;
27
28 if(bigendian == true)
29 {
30 insword = bswap32(insword);
31 }
32
33 // 111111xxx00xxxxxxxxxx00001000000 <- fcmpo
34 tmp = insword & 0xFC6007FF;
35 if (tmp==0xFC000040)
36 result = PPC_INS_BN_FCMPO;
37 // 111100xxxxxxxxxxxxxxx00111010xxx <- xxpermr
38 if((insword & 0xFC0007F8) == 0xF00001D0)
39 result = PPC_INS_BN_XXPERMR;
40
41 return result;
42}
43
44void ppc_fcmpo(uint32_t insword, decomp_result *res)
45{

Callers 6

GetInstructionInfoMethod · 0.85
PrintLocalDisassemblyMethod · 0.85
GetInstructionTextMethod · 0.85
PerformLocalDisassemblyFunction · 0.85
disas_instr_wordFunction · 0.85

Calls 1

bswap32Function · 0.70

Tested by 1

disas_instr_wordFunction · 0.68