1 /* 2 * disasm-builtin.h - declaration of internal disassemblers 3 * 4 * Copyright (c) 2001-2018 Thorsten Otto of ARAnyM dev team (see AUTHORS) 5 * 6 * This file is part of the ARAnyM project which builds a new and powerful 7 * TOS/FreeMiNT compatible virtual machine running on almost any hardware. 8 * 9 * ARAnyM is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * ARAnyM is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with ARAnyM; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 /* Method to initialize a disassemble_info struct. This should be 29 called by all applications creating such a struct. */ 30 void arm_disassemble_init(disassemble_info **info, void *stream, fprintf_ftype fprintf_func); 31 void x86_disassemble_init(disassemble_info **info, void *stream, fprintf_ftype fprintf_func); 32 33 /* Disassemble one instruction at the given target address. 34 Return number of octets processed. */ 35 int arm_print_insn(bfd_vma, disassemble_info *); 36 int x86_print_insn(bfd_vma, disassemble_info *); 37 38 void x86_disassemble_set_option(disassemble_info *info, const char *options); 39 40 #ifdef __cplusplus 41 } 42 #endif 43