Debian Codegraph @

src/fcml_common_dialect.h

raw
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_COMMON_DIALECT_H_
21 #define FCML_COMMON_DIALECT_H_
22
23 #include <fcml_common.h>
24 #include <fcml_dialect.h>
25 #include <fcml_types.h>
26
27 #include "fcml_ceh.h"
28 #include "fcml_mnemonic_parser.h"
29
30 fcml_ceh_error fcml_fn_cmn_dialect_get_mnemonic(const fcml_st_dialect *dialect,
31 fcml_st_mp_mnemonic_set *mnemonic_set, fcml_st_mp_mnemonic **mnemonics,
32 const fcml_st_condition *condition, int *mnemonics_counter);
33
34 fcml_string fcml_fn_cmn_dialect_render_mnemonic(fcml_string mnemonic,
35 fcml_st_condition *condition, fcml_uint8_t conditional_group,
36 fcml_bool show_carry);
37
38 fcml_ceh_error fcml_fn_cmn_dialect_get_register(const fcml_st_register *reg,
39 fcml_string *printable_reg, fcml_bool is_rex);
40
41 void fcml_fn_cmn_dialect_free(fcml_st_dialect *dialect);
42
43 #endif /* FCML_COMMON_DIALECT_H_ */