Previous 199869 Revisions Next

r40548 Sunday 30th August, 2015 at 09:43:24 UTC by Miodrag Milanović
Merge pull request #295 from shattered/_c60338d

at, at_keybc: hook up Display Switch and remove irrelevant DSW0 [shattered]
[src/emu/machine]68230pit.c
[src/mess/drivers]besta.c

trunk/src/emu/machine/68230pit.c
r249059r249060
131131                m_pbddr = data;
132132                break;
133133
134        case PIT_68230_PCDDR:
135                m_pcddr = data;
136                break;
137
134138        case PIT_68230_PACR:
135139                m_pacr = data;
136140                // callbacks
r249059r249060
205209                data = m_pbddr;
206210                break;
207211
212        case PIT_68230_PCDDR:
213                data = m_pcddr;
214                break;
215
208216        case PIT_68230_PACR:
209217                data = m_pacr;
210218                break;
trunk/src/mess/drivers/besta.c
r249059r249060
1010
1111#include "emu.h"
1212#include "cpu/m68000/m68000.h"
13#include "machine/68230pit.h"
1314#include "machine/terminal.h"
1415
1516#define VERBOSE_DBG 1       /* general debug messages */
r249059r249060
3233   besta_state(const machine_config &mconfig, device_type type, const char *tag)
3334      : driver_device(mconfig, type, tag),
3435      m_maincpu(*this, "maincpu"),
36      m_pit1 (*this, "pit1"),
37      m_pit2 (*this, "pit2"),
3538      m_terminal(*this, TERMINAL_TAG),
3639      m_p_ram(*this, "p_ram")
3740   {
r249059r249060
4447   UINT8 m_mpcc_regs[32];
4548
4649   required_device<cpu_device> m_maincpu;
50   required_device<pit68230_device> m_pit1;
51   required_device<pit68230_device> m_pit2;
4752   virtual void machine_reset();
4853
4954   required_device<generic_terminal_device> m_terminal;
r249059r249060
96101
97102static ADDRESS_MAP_START(besta_mem, AS_PROGRAM, 32, besta_state)
98103   AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram")       // local bus DRAM, 4MB
99//  AM_RANGE(0x08010000, 0x08011fff) AM_RAM                         // unknown -- accessed by cp31dssp
100   AM_RANGE(0xff000000, 0xff00ffff) AM_ROM AM_REGION("user1",0)    // actual mapping is up to 0xff03ffff
104//   AM_RANGE(0x08010000, 0x08011fff) AM_RAM                         // unknown -- accessed by cp31dssp
105//   AM_RANGE(0xfca03500, 0xfca0350f) AM_READWRITE8(iscsi_reg_r, iscsi_reg_w, 0xffffffff)
106   AM_RANGE(0xff000000, 0xff00ffff) AM_ROM AM_REGION("user1", 0)   // actual mapping is up to 0xff03ffff
101107   AM_RANGE(0xff040000, 0xff07ffff) AM_RAM                         // onboard SRAM
102//  68561 MPCC (console)
103//  AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff)
104   AM_RANGE(0xff800000, 0xff80001f) AM_READWRITE8(mpcc_reg_r, mpcc_reg_w, 0xffffffff)
105//  AM_RANGE(0xff800200, 0xff800xxx) // 68230 PIT2
106//  AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log
107//  AM_RANGE(0xff800800, 0xff800xxx) // BIM
108//  AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC
109//  AM_RANGE(0xff800c00, 0xff800xxx) // 68230 PIT
108//   AM_RANGE(0xff800000, 0xff80001f) AM_DEVREADWRITE8("mpcc", mpcc68561_t, reg_r, reg_w, 0xffffffff)
109   AM_RANGE(0xff800000, 0xff80001f) AM_READWRITE8(mpcc_reg_r, mpcc_reg_w, 0xffffffff) // console
110   AM_RANGE(0xff800200, 0xff800237) AM_DEVREADWRITE8 ("pit2", pit68230_device, read, write, 0xffffffff)
111//   AM_RANGE(0xff800400, 0xff800xxx) // ??? -- shows up in cp31dssp log
112//   AM_RANGE(0xff800800, 0xff800xxx) // 68153 BIM
113//   AM_RANGE(0xff800a00, 0xff800xxx) // 62421 RTC
114   AM_RANGE(0xff800c00, 0xff800c37) AM_DEVREADWRITE8 ("pit1", pit68230_device, read, write, 0xffffffff)
115//   AM_RANGE(0xff800e00, 0xff800xxx) // PIT3?
110116ADDRESS_MAP_END
111117
112118/* Input ports */
r249059r249060
131137   MCFG_CPU_ADD("maincpu", M68030, 2*16670000)
132138   MCFG_CPU_PROGRAM_MAP(besta_mem)
133139
140   MCFG_DEVICE_ADD ("pit1", PIT68230, 16670000 / 2)   // XXX verify clock
141
142   MCFG_DEVICE_ADD ("pit2", PIT68230, 16670000 / 2)   // XXX verify clock
143
134144   MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0)
135145   MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(besta_state, kbd_put))
136146MACHINE_CONFIG_END
r249059r249060
151161/* Driver */
152162
153163/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT                 INIT    COMPANY         FULLNAME       FLAGS */
154COMP( 1988, besta88,  0,      0,     besta,     besta,   driver_device,  0,  "Sapsan", "Besta-88", MACHINE_NOT_WORKING | MACHINE_NO_SOUND)
164COMP( 1988, besta88,  0,      0,     besta,     besta,   driver_device,  0,  "Sapsan", "Besta-88", MACHINE_NOT_WORKING | MACHINE_NO_SOUND_HW)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team