eb10f8fb2c9c1580a32469809a67a9aeb0a4a953
[fw/sdcc] / sim / ucsim / globals.cc
1 /*
2  * Simulator of microcontrollers (globals.cc)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  * 
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  */
9
10 /* This file is part of microcontroller simulator: ucsim.
11
12 UCSIM 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.
16
17 UCSIM 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.
21
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING.  If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA. */
26 /*@1@*/
27
28 #include "ddconfig.h"
29
30 #include <stdio.h>
31
32 #include "stypes.h"
33
34
35 // No other global variable should exists!
36 class cl_sim *simulator;
37
38
39 /* Delimiters to split up command line */
40 char delimiters[]= " ,;\t\r\n";
41
42 struct id_element mem_ids[]= {
43   { MEM_ROM , "ROM " },
44   { MEM_XRAM, "XRAM" },
45   { MEM_IRAM, "IRAM" },
46   { MEM_SFR , "SFR " },
47   { 0, 0 }
48 };
49
50 struct id_element cpu_states[]= {
51   { stGO,       "OK" },
52   { stIDLE,     "Idle" },
53   { stPD,       "PowerDown" },
54   { 0, 0 }
55 };
56
57
58 /* End of globals.cc */