~ubuntu-branches/ubuntu/breezy/tiemu/breezy

« back to all changes in this revision

Viewing changes to src/core/interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2005-06-02 16:50:15 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050602165015-59ab24414tl2wzol
Tags: 1.99+svn1460-1
* New snapshot.
* debian/control:
  + Updated build-depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  gtktiemu - a TI89/92/92+ emulator
2
 
 *  (c) Copyright 2000-2001, Romain Lievin and Thomas Corvazier
3
 
 *  (c) Copyright 2001-2002, Romain Lievin
4
 
 *
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.
9
 
 *
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.
14
 
 *
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.
18
 
 */
19
 
 
20
 
#ifndef __TI68K_CORE__
21
 
#define __TI68K_CORE__
22
 
 
23
 
#include "tilibs.h"
24
 
#include "keydefs.h"
25
 
#include "bkpts.h"
26
 
#include "state.h"
27
 
#include "consts.h"
28
 
 
29
 
#include "callbacks.h"
30
 
#include "images.h"
31
 
 
32
 
#ifdef __WIN32__
33
 
# define str_cmp(s1, s2) (stricmp((s1), (s2)))
34
 
#else
35
 
# define str_cmp(s1, s2) (strcasecmp((s1), (s2)))
36
 
#endif
37
 
 
38
 
/*************/
39
 
/* Constants */
40
 
/*************/  
41
 
 
42
 
#define MAXCHARS 256
43
 
  
44
 
/*************/
45
 
/* Functions */
46
 
/*************/
47
 
 
48
 
// Initialization
49
 
int ti68k_loadDefaultConfig(void);
50
 
int ti68k_init(void);
51
 
int ti68k_reset(void);
52
 
int ti68k_exit(void);
53
 
 
54
 
int ti68k_restart(void);
55
 
 
56
 
// ROM
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);
63
 
 
64
 
// RAM
65
 
void* ti68k_getRamPtr(void);
66
 
int ti68k_getRamSize(void);
67
 
int ti68k_dumpRam(char *filename);
68
 
 
69
 
// LCD
70
 
void* ti68k_getLcdPtr(void);
71
 
char ti68k_getContrast(void);
72
 
int ti68k_getCalcType(void);
73
 
 
74
 
// Debugging
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);
80
 
 
81
 
// Register access
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);
94
 
 
95
 
// Link
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
101
 
 
102
 
 
103
 
/***********/
104
 
/* Externs */
105
 
/***********/
106
 
 
107
 
void ti68k_setActiveKey(int key, int active);
108
 
int ti68k_isKeyPressed(int key);
109
 
 
110
 
 
111
 
 
112
 
/**************************/
113
 
/* Compatibility wrappers */
114
 
/**************************/
115
 
 
116
 
#define ti68k_initLib68k  ti68k_init
117
 
#define ti68k_resetLib68k ti68k_reset
118
 
#define ti68k_exitLib68k  ti68k_exit
119
 
 
120
 
#endif