/* Hey EMACS -*- linux-c -*- */ /* $Id: ti68k_int.h 2433 2007-04-13 19:03:45Z roms $ */ /* TiEmu - Tiemu Is an EMUlator * * Copyright (c) 2000-2001, Thomas Corvazier, Romain Lievin * Copyright (c) 2001-2003, Romain Lievin * Copyright (c) 2003, Julien Blache * Copyright (c) 2004, Romain Li�vin * Copyright (c) 2005, Romain Li�vin * Copyright (c) 2006, Kevin Kofler * * This program 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; either version 2 of the License, or * (at your option) any later version. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __TI68K_INTF__ #define __TI68K_INTF__ #include "ti68k_def.h" G_BEGIN_DECLS #include "ti_hw/tilibs.h" /*************/ /* Functions */ /*************/ // Note: [ti68k]_[group]_[short_or_long_name] // Initialization int ti68k_config_load_default(void); int ti68k_init(void); int ti68k_reset(void); int ti68k_exit(void); unsigned int ti68k_get_cycle_count(int reset, unsigned int *diff); // Link int ti68k_linkport_ready(void); int ti68k_linkport_send_file(const char *filename); int ti68k_linkport_unconfigure(void); int ti68k_linkport_reconfigure(void); int ti68k_calc_to_libti_calc(void); // Keyboard void ti68k_kbd_set_key(int key, int active); int ti68k_kbd_is_key_pressed(int key); int ti68k_kbd_push_chars(const char *chars); // Misc int ti68k_get_rom_size(int calc_type); int ti68k_get_ram_size(int calc_type); int ti68k_get_io_size(int calc_type); int ti68k_get_io2_size(int calc_type); int ti68k_get_io3_size(int calc_type); uint8_t *ti68k_get_real_address(uint32_t addr); // HW protection for the debugger void ti68k_unprotect_64KB_range(uint32_t addr); // Others #include "dbg/bkpts.h" #include "dbg/debug.h" #include "images.h" #include "ti_sw/registers.h" #include "ti_sw/timem.h" #include "ti_sw/vat.h" #include "type2str.h" // Errors int ti68k_error_get(int err_num, char **error_msg); G_END_DECLS #endif