Previous 199869 Revisions Next

r32992 Sunday 26th October, 2014 at 19:01:51 UTC by Sergey Svishchev
besta: fix doubling chars
[src/mess/drivers]besta.c

trunk/src/mess/drivers/besta.c
r241503r241504
11/***************************************************************************
22
3  Besta-88 and Besta-90 engineering workstations.
3    Besta-88 and Besta-90 engineering workstations.
44
55    Derived (OEMd?) from Force Computers' SYS68K series.
66
r241503r241504
99#include "emu.h"
1010#include "cpu/m68000/m68000.h"
1111#include "machine/terminal.h"
12#if 0
13#include "machine/68561mpcc.h"
14#endif
1512
1613#define VERBOSE_DBG 1       /* general debug messages */
1714
r241503r241504
2017      if(VERBOSE_DBG>=N) \
2118      { \
2219         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 ); \
2421         logerror A; \
2522      } \
2623   } while (0)
r241503r241504
5148   required_shared_ptr<UINT32> m_p_ram;
5249};
5350
54#if 1
5551READ8_MEMBER( besta_state::mpcc_reg_r )
5652{
5753   UINT8 ret;
r241503r241504
8278   switch (offset) {
8379      case 2:
8480         m_term_data = data;
81         break;
8582      case 10:
8683         dynamic_cast<generic_terminal_device *>(devconf)->write(*machine().memory().first_space(), 0, data);
8784      default:
88         m_mpcc_regs[offset] = data; break;
85         m_mpcc_regs[offset] = data;
86         break;
8987   }
9088}
9189
r241503r241504
9391{
9492   mpcc_reg_w(space, (offs_t)2, data, mem_mask);
9593}
96#endif
9794
9895static ADDRESS_MAP_START(besta_mem, AS_PROGRAM, 32, besta_state)
9996   AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram")       // local bus DRAM, 4MB
r241503r241504
132129   MCFG_CPU_ADD("maincpu", M68030, 2*16670000)
133130   MCFG_CPU_PROGRAM_MAP(besta_mem)
134131
135#if 0
136   MCFG_DEVICE_ADD("mpcc", MPCC68561, XTAL_25MHz);    // confirm internal oscillator frequency
137#endif
138132   MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0)
139133   MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(besta_state, kbd_put))
140134MACHINE_CONFIG_END


Previous 199869 Revisions Next


© 1997-2024 The MAME Team