1 /*  mp-a_sys.c: SWTP 6800 system interface
2 
3     Copyright (c) 2005, William Beech
4 
5     Permission is hereby granted, free of charge, to any person obtaining a
6     copy of this software and associated documentation files (the "Software"),
7     to deal in the Software without restriction, including without limitation
8     the rights to use, copy, modify, merge, publish, distribute, sublicense,
9     and/or sell copies of the Software, and to permit persons to whom the
10     Software is furnished to do so, subject to the following conditions:
11 
12     The above copyright notice and this permission notice shall be included in
13     all copies or substantial portions of the Software.
14 
15     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18     WILLIAM A BEECH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19     IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20     CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22     Except as contained in this notice, the name of William A. Beech shall not
23     be used in advertising or otherwise to promote the sale, use or other dealings
24     in this Software without prior written authorization from William A. Beech.
25 */
26 
27 #include <ctype.h>
28 #include <string.h>
29 #include "swtp_defs.h"
30 
31 /* externals */
32 
33 extern DEVICE CPU_BD_dev;
34 extern DEVICE m6800_dev;
35 extern REG m6800_reg[];
36 extern DEVICE BOOTROM_dev;
37 extern DEVICE m6810_dev;
38 
39 extern DEVICE MB_dev;
40 extern DEVICE sio_dev;
41 extern DEVICE ptr_dev;
42 extern DEVICE ptp_dev;
43 extern DEVICE mp_8m_dev;
44 extern DEVICE dsk_dev;
45 
46 /* SCP data structures
47 
48    sim_name		simulator name string
49    sim_PC		pointer to saved PC register descriptor
50    sim_emax		number of words needed for examine
51    sim_devices		array of pointers to simulated devices
52    sim_stop_messages	array of pointers to stop messages
53    sim_load		binary loader
54 */
55 
56 char sim_name[] = "SWTP 6800, V2, MP-A CPU Board";
57 
58 REG *sim_PC = &m6800_reg[0];
59 
60 int32 sim_emax = 4;
61 
62 DEVICE *sim_devices[] = {
63     &CPU_BD_dev,
64     &m6800_dev,
65     &BOOTROM_dev,
66     &m6810_dev,
67     &MB_dev,
68     &sio_dev,
69     &ptr_dev,
70     &ptp_dev,
71     &mp_8m_dev,
72     &dsk_dev,
73     NULL
74 };
75 
76 const char *sim_stop_messages[] = {
77     "Unknown error",
78     "Unknown I/O Instruction",
79     "HALT instruction",
80     "Breakpoint",
81     "Invalid Opcode",
82     "Invalid Memory"
83 };
84 
85 /* end of mp-a_sys.c */
86