1 /*-------------------------------------------------------------------------
2 simi.h - Header file for simulator interaction
3 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1999)
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 In other words, you are welcome to use, share and improve this program.
20 You are forbidden to forbid anyone else to use, share and improve
21 what you give them. Help stamp out software-hoarding!
22 -------------------------------------------------------------------------*/
28 /* ugly hack to prevent the incusion of objidl.h */
31 #elif defined _MSC_VER
32 #define _WINSOCK_DEPRECATED_NO_WARNINGS
38 #define MAX_SIM_BUFF 8*1024
40 #define MAX_CACHE_SIZE 2048
49 typedef struct _memcache
53 char buffer
[MAX_CACHE_SIZE
];
56 //#define SIMNAME "s51"
62 extern char simactive
;
63 void openSimulator (char **,int);
64 void waitForSim(int timeout_ms
, char *expect
);
65 void closeSimulator ();
68 void simSetPC (unsigned int);
69 void simSetBP (unsigned int);
70 void simClearBP (unsigned int);
71 void simLoadFile(char *);
74 unsigned int simGoTillBp (unsigned int);
75 unsigned long simGetValue (unsigned int ,char , unsigned int );
76 int simSetValue (unsigned int ,char , unsigned int, unsigned long );