src/mess/drivers/cp1.c
| r0 | r14708 | |
| 1 | /***************************************************************************
|
| 2 |
|
| 3 | Kosmos CP-1
|
| 4 | |
| 5 | 06/03/2012 Skeleton driver.
|
| 6 | |
| 7 | on board there is also 8155 |
| 8 | KEYBOARD Membrane keyboard, 57 keys
|
| 9 | 6 * 7 seg led display
|
| 10 | |
| 11 | ****************************************************************************/
|
| 12 | #define ADDRESS_MAP_MODERN
|
| 13 | #include "emu.h"
|
| 14 | #include "cpu/mcs48/mcs48.h"
|
| 15 | |
| 16 | class cp1_state : public driver_device
|
| 17 | {
|
| 18 | public:
|
| 19 | cp1_state(const machine_config &mconfig, device_type type, const char *tag)
|
| 20 | : driver_device(mconfig, type, tag) { }
|
| 21 |
|
| 22 | DECLARE_READ8_MEMBER(getp1);
|
| 23 | DECLARE_READ8_MEMBER(getp2);
|
| 24 | DECLARE_READ8_MEMBER(getbus);
|
| 25 | DECLARE_READ8_MEMBER(t0_r);
|
| 26 | DECLARE_READ8_MEMBER(t1_r);
|
| 27 | DECLARE_WRITE8_MEMBER(putp1);
|
| 28 | DECLARE_WRITE8_MEMBER(putp2);
|
| 29 | DECLARE_WRITE8_MEMBER(putbus);
|
| 30 | };
|
| 31 | |
| 32 | READ8_MEMBER(cp1_state::getp1)
|
| 33 | {
|
| 34 | logerror("getp1\n");
|
| 35 | return 0;
|
| 36 | }
|
| 37 | READ8_MEMBER(cp1_state::getp2)
|
| 38 | {
|
| 39 | logerror("getp2\n");
|
| 40 | return 0;
|
| 41 | }
|
| 42 | READ8_MEMBER(cp1_state::getbus)
|
| 43 | {
|
| 44 | logerror("getbus\n");
|
| 45 | return 0;
|
| 46 | }
|
| 47 | READ8_MEMBER(cp1_state::t0_r)
|
| 48 | {
|
| 49 | logerror("t0_r\n");
|
| 50 | return 0;
|
| 51 | }
|
| 52 | READ8_MEMBER(cp1_state::t1_r)
|
| 53 | {
|
| 54 | logerror("t1_r\n");
|
| 55 | return 0;
|
| 56 | }
|
| 57 | WRITE8_MEMBER(cp1_state::putp1)
|
| 58 | {
|
| 59 | logerror("putp1\n");
|
| 60 | }
|
| 61 | WRITE8_MEMBER(cp1_state::putp2)
|
| 62 | {
|
| 63 | logerror("putp2\n");
|
| 64 | }
|
| 65 | WRITE8_MEMBER(cp1_state::putbus)
|
| 66 | {
|
| 67 | logerror("putbus\n");
|
| 68 | }
|
| 69 | |
| 70 | static ADDRESS_MAP_START(cp1_mem, AS_PROGRAM, 8, cp1_state)
|
| 71 | ADDRESS_MAP_UNMAP_HIGH
|
| 72 | AM_RANGE( 0x0000, 0x07ff) AM_ROM
|
| 73 | ADDRESS_MAP_END
|
| 74 | |
| 75 | static ADDRESS_MAP_START( cp1_io , AS_IO, 8, cp1_state)
|
| 76 | ADDRESS_MAP_UNMAP_HIGH
|
| 77 | AM_RANGE( MCS48_PORT_P1, MCS48_PORT_P1) AM_READWRITE( getp1, putp1 )
|
| 78 | AM_RANGE( MCS48_PORT_P2, MCS48_PORT_P2) AM_READWRITE( getp2, putp2 )
|
| 79 | AM_RANGE( MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READWRITE( getbus, putbus )
|
| 80 | AM_RANGE( MCS48_PORT_T0, MCS48_PORT_T0) AM_READ( t0_r )
|
| 81 | AM_RANGE( MCS48_PORT_T1, MCS48_PORT_T1) AM_READ( t1_r )
|
| 82 | ADDRESS_MAP_END
|
| 83 | |
| 84 | /* Input ports */
|
| 85 | INPUT_PORTS_START( cp1 )
|
| 86 | INPUT_PORTS_END
|
| 87 | |
| 88 | static MACHINE_CONFIG_START( cp1, cp1_state )
|
| 89 | /* basic machine hardware */
|
| 90 | MCFG_CPU_ADD("maincpu",I8048, XTAL_6MHz)
|
| 91 | MCFG_CPU_PROGRAM_MAP(cp1_mem)
|
| 92 | MCFG_CPU_IO_MAP(cp1_io)
|
| 93 | MACHINE_CONFIG_END
|
| 94 | |
| 95 | /* ROM definition */
|
| 96 | /*
|
| 97 | KOSMOS B
|
| 98 | <Mitsubishi Logo> M5L8049-136P-6
|
| 99 | JAPAN 83F301
|
| 100 | */
|
| 101 | |
| 102 | ROM_START( cp1 )
|
| 103 | ROM_REGION( 0x0800, "maincpu", ROMREGION_ERASEFF )
|
| 104 | ROM_LOAD( "cp1-kosmos-b.rom", 0x0000, 0x0800, CRC(fea8a2b2) SHA1(c987b79a7b90fcbd58b66a69e95913f2655a1f0d))
|
| 105 | ROM_END
|
| 106 | |
| 107 | /* Driver */
|
| 108 | |
| 109 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
|
| 110 | COMP( 1980, cp1, 0, 0, cp1, cp1, 0, "Kosmos", "CP1 / Computer Praxis", GAME_NOT_WORKING | GAME_NO_SOUND)
|
| 111 | |