trunk/src/mess/drivers/besta.c
r241503 | r241504 | |
1 | 1 | /*************************************************************************** |
2 | 2 | |
3 | | Besta-88 and Besta-90 engineering workstations. |
| 3 | Besta-88 and Besta-90 engineering workstations. |
4 | 4 | |
5 | 5 | Derived (OEMd?) from Force Computers' SYS68K series. |
6 | 6 | |
r241503 | r241504 | |
9 | 9 | #include "emu.h" |
10 | 10 | #include "cpu/m68000/m68000.h" |
11 | 11 | #include "machine/terminal.h" |
12 | | #if 0 |
13 | | #include "machine/68561mpcc.h" |
14 | | #endif |
15 | 12 | |
16 | 13 | #define VERBOSE_DBG 1 /* general debug messages */ |
17 | 14 | |
r241503 | r241504 | |
20 | 17 | if(VERBOSE_DBG>=N) \ |
21 | 18 | { \ |
22 | 19 | if( M ) \ |
23 | | logerror("%11.6f: %-24s",machine().time().as_double(),(char*)M ); \ |
| 20 | logerror("%11.6f at %s: %-24s",machine().time().as_double(),machine().describe_context(),(char*)M ); \ |
24 | 21 | logerror A; \ |
25 | 22 | } \ |
26 | 23 | } while (0) |
r241503 | r241504 | |
51 | 48 | required_shared_ptr<UINT32> m_p_ram; |
52 | 49 | }; |
53 | 50 | |
54 | | #if 1 |
55 | 51 | READ8_MEMBER( besta_state::mpcc_reg_r ) |
56 | 52 | { |
57 | 53 | UINT8 ret; |
r241503 | r241504 | |
82 | 78 | switch (offset) { |
83 | 79 | case 2: |
84 | 80 | m_term_data = data; |
| 81 | break; |
85 | 82 | case 10: |
86 | 83 | dynamic_cast<generic_terminal_device *>(devconf)->write(*machine().memory().first_space(), 0, data); |
87 | 84 | default: |
88 | | m_mpcc_regs[offset] = data; break; |
| 85 | m_mpcc_regs[offset] = data; |
| 86 | break; |
89 | 87 | } |
90 | 88 | } |
91 | 89 | |
r241503 | r241504 | |
93 | 91 | { |
94 | 92 | mpcc_reg_w(space, (offs_t)2, data, mem_mask); |
95 | 93 | } |
96 | | #endif |
97 | 94 | |
98 | 95 | static ADDRESS_MAP_START(besta_mem, AS_PROGRAM, 32, besta_state) |
99 | 96 | AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram") // local bus DRAM, 4MB |
r241503 | r241504 | |
132 | 129 | MCFG_CPU_ADD("maincpu", M68030, 2*16670000) |
133 | 130 | MCFG_CPU_PROGRAM_MAP(besta_mem) |
134 | 131 | |
135 | | #if 0 |
136 | | MCFG_DEVICE_ADD("mpcc", MPCC68561, XTAL_25MHz); // confirm internal oscillator frequency |
137 | | #endif |
138 | 132 | MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0) |
139 | 133 | MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(besta_state, kbd_put)) |
140 | 134 | MACHINE_CONFIG_END |