![]() |
The ROme OpTimistic Simulator
2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
x86 disassembler header More...
#include <stdbool.h>
#include "instruction.h"
Go to the source code of this file.
Data Structures | |
struct | disassembly_state |
struct | _insn |
Macros | |
#define | A32(f) ((f) & ADDR_32) |
#define | D32(f) ((f) & DATA_32) |
#define | A64(f) ((f) & ADDR_64) |
#define | D64(f) ((f) & DATA_64) |
#define | p_is_group1(p) |
#define | p_is_group2(p) |
#define | p_is_group3(p) ((p) == 0x66) /* opsize override */ |
#define | p_is_group4(p) ((p) == 0x67) /* addr size override */ |
#define | is_prefix(o) |
#define | is_sse_prefix(o) (((o) == 0xf2) || ((o) == 0xf3) || ((o) == 0x66)) |
#define | is_rex_prefix(r, mode64) (((r) >= 0x40 && (r) <= 0x4f ) && (mode64)) |
#define | REXW(r) (((r) & 0x08) >> 3) |
#define | REXR(r) (((r) & 0x04) >> 2) |
#define | REXX(r) (((r) & 0x02) >> 1) |
#define | REXB(r) (((r) & 0x01)) |
#define | is_jcc_insn(o) (((o) == 0xe3) || (((o) >= 0x70) && ((o) <= 0x7f))) |
#define | is_esc_jcc_insn(o) (((o) >= 0x80) && ((o) <= 0x8f)) |
#define | has_modrm(addr) |
#define | has_sib(modrm, addr) |
#define | disp_size(modrm, addr) |
Typedefs | |
typedef struct _insn | insn |
typedef struct _insn * | insn_table |
Functions | |
void | x86_disassemble_instruction (unsigned char *text, unsigned long *pos, insn_info_x86 *instrument, char flags) |
x86 disassembler header
x86 disassembler header
This file is part of ROOT-Sim (ROme OpTimistic Simulator).
ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.
ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file x86.h.
#define disp_size | ( | modrm, | |
addr | |||
) |
#define has_modrm | ( | addr | ) |
#define has_sib | ( | modrm, | |
addr | |||
) |
#define is_prefix | ( | o | ) |
#define p_is_group1 | ( | p | ) |
#define p_is_group2 | ( | p | ) |