| 1 |
/* |
| 2 |
* FCML - Free Code Manipulation Library. |
| 3 |
* Copyright (C) 2010-2020 Slawomir Wojtasiak |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef FCML_HINTS_H_ |
| 21 |
#define FCML_HINTS_H_ |
| 22 |
|
| 23 |
#include <fcml_common.h> |
| 24 |
|
| 25 |
#include "fcml_def.h" |
| 26 |
|
| 27 |
typedef struct fcml_st_hts_calculated_hints { |
| 28 |
fcml_hints instruction_hints; |
| 29 |
fcml_hints operand_hints; |
| 30 |
} fcml_st_hts_calculated_hints; |
| 31 |
|
| 32 |
typedef fcml_st_hts_calculated_hints (*fcml_fp_hts_instruction_hints_calculator)( |
| 33 |
const fcml_st_def_addr_mode_desc *addr_mode, |
| 34 |
fcml_st_def_decoded_addr_mode *decoded_addr_mode); |
| 35 |
|
| 36 |
fcml_st_hts_calculated_hints fcml_fn_hts_ihc_far_pointer( |
| 37 |
const fcml_st_def_addr_mode_desc *addr_mode, |
| 38 |
fcml_st_def_decoded_addr_mode *decoded_addr_mode); |
| 39 |
|
| 40 |
fcml_st_hts_calculated_hints fcml_fn_hts_ihc_modrm_hints( |
| 41 |
const fcml_st_def_addr_mode_desc *addr_mode, |
| 42 |
fcml_st_def_decoded_addr_mode *decoded_addr_mode); |
| 43 |
|
| 44 |
fcml_st_hts_calculated_hints fcml_fn_hts_ihc_immediate_dis_relative( |
| 45 |
const fcml_st_def_addr_mode_desc *addr_mode, |
| 46 |
fcml_st_def_decoded_addr_mode *decoded_addr_mode); |
| 47 |
|
| 48 |
fcml_st_hts_calculated_hints fcml_fn_hts_ihc_pseudo_opcode( |
| 49 |
const fcml_st_def_addr_mode_desc *addr_mode, |
| 50 |
fcml_st_def_decoded_addr_mode *decoded_addr_mode); |
| 51 |
|
| 52 |
#endif /* FCML_HINTS_H_ */ |