mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 07:54:23 +00:00
28 lines
515 B
Python
28 lines
515 B
Python
# Duplicates removed, according to the mnemonics capstone uses.
|
|
# e.g. je and jz are the same instruction. capstone uses je.
|
|
# See: /arch/X86/X86GenAsmWriter.inc in the capstone repo.
|
|
JUMP_MNEMONICS = {
|
|
"ja",
|
|
"jae",
|
|
"jb",
|
|
"jbe",
|
|
"jcxz", # unused?
|
|
"je",
|
|
"jecxz",
|
|
"jg",
|
|
"jge",
|
|
"jl",
|
|
"jle",
|
|
"jmp",
|
|
"jne",
|
|
"jno",
|
|
"jnp",
|
|
"jns",
|
|
"jo",
|
|
"jp",
|
|
"js",
|
|
}
|
|
|
|
# Guaranteed to be a single operand.
|
|
SINGLE_OPERAND_INSTS = {"push", "call", *JUMP_MNEMONICS}
|