1
/* gtktiemu - a TI89/92/92+ emulator
2
* (c) Copyright 2000-2001, Romain Lievin and Thomas Corvazier
3
* (c) Copyright 2001-2002, Romain Lievin
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program 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
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
#ifndef __TI68K_CORE__
21
#define __TI68K_CORE__
29
#include "callbacks.h"
33
# define str_cmp(s1, s2) (stricmp((s1), (s2)))
35
# define str_cmp(s1, s2) (strcasecmp((s1), (s2)))
49
int ti68k_loadDefaultConfig(void);
51
int ti68k_reset(void);
54
int ti68k_restart(void);
57
void* ti68k_getRomPtr(void);
58
int ti68k_getRomSize(void);
59
const char *ti68k_getRomVersion(void);
60
int ti68k_isRomOk(void);
61
int ti68k_getRomInfo(ROM_INFO *ri);
62
int ti68k_dumpRom(const char *filename);
65
void* ti68k_getRamPtr(void);
66
int ti68k_getRamSize(void);
67
int ti68k_dumpRam(char *filename);
70
void* ti68k_getLcdPtr(void);
71
char ti68k_getContrast(void);
72
int ti68k_getCalcType(void);
75
int ti68k_disasm(int addr, char *output);
76
int ti68k_launchDebugger(void);
77
void ti68k_getBreakpointCause(int *type, int *id, int *mode);
78
int ti68k_doSingleStep(void);
79
int ti68k_doInstructions(int n);
82
void ti68k_setDataRegister(int n,int val);
83
void ti68k_setAddressRegister(int n,int val);
84
void ti68k_setSpRegister(int val);
85
void ti68k_setPcRegister(int val);
86
void ti68k_setSrRegister(int val);
87
void ti68k_setFlagRegister(unsigned char flag);
88
int ti68k_getDataRegister(int n);
89
int ti68k_getAddressRegister(int n);
90
int ti68k_getSpRegister();
91
int ti68k_getPcRegister();
92
int ti68k_getSrRegister();
93
char *ti68k_getFlagRegister(void);
96
int ti68k_sendFile(char *filename);
97
int ti68k_setInternalLinkTimeout(int value);
98
int ti68k_getInternalLinkTimeout(int value);
99
int ti68k_reconfigure_linkport(void);
100
#define ti68k_reconfigureLinkport ti68k_reconfigure_linkport
107
void ti68k_setActiveKey(int key, int active);
108
int ti68k_isKeyPressed(int key);
112
/**************************/
113
/* Compatibility wrappers */
114
/**************************/
116
#define ti68k_initLib68k ti68k_init
117
#define ti68k_resetLib68k ti68k_reset
118
#define ti68k_exitLib68k ti68k_exit