1
/* Hey EMACS -*- linux-c -*- */
2
/* $Id: romcalls.h 1455 2005-05-31 18:38:03Z roms $ */
4
/* TiEmu - an TI emulator
6
* Copyright (c) 2000-2001, Thomas Corvazier, Romain Lievin
7
* Copyright (c) 2001-2003, Romain Lievin
8
* Copyright (c) 2003, Julien Blache
9
* Copyright (c) 2004, Romain Li�vin
10
* Copyright (c) 2005, Romain Li�vin, Kevin Kofler
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
28
Breakpoint definitions
38
#define NMAX_ROMCALLS 0x800
51
void romcalls_get_table_infos(uint32_t *base, uint32_t *size);
52
void romcalls_get_symbol_address(int id, uint32_t *addr);
53
int romcalls_preload(const char* filename);
54
int romcalls_is_loaded(void);
56
GList* romcalls_sort_by_id(void);
57
GList* romcalls_sort_by_addr(void);
58
GList* romcalls_sort_by_name(void);
59
GList* romcalls_sort_by_iname(void);
61
int romcalls_is_addr(uint32_t addr);
62
int romcalls_is_name(const char *name);
64
const char* romcalls_get_name(int id);
65
uint32_t romcalls_get_addr(int id);
67
const char* ercodes_get_name(unsigned id);
69
#define ROMCALL_ID(elt) (((ROM_CALL *)(elt->data))->id)
70
#define ROMCALL_NAME(elt) (((ROM_CALL *)(elt->data))->name)
71
#define ROMCALL_ADDR(elt) (((ROM_CALL *)(elt->data))->addr)