Previous 199869 Revisions Next

r33638 Tuesday 2nd December, 2014 at 23:45:37 UTC by hap
added skeleton drivers for Parker Brothers Code Name: Sector, Kenner Star Wars: Electronic Battle Command Game -- will improve them over the next few days
[src/mess]mess.lst mess.mak
[src/mess/drivers]cnsector.c* starwbc.c*
[src/mess/layout]cnsector.lay* starwbc.lay* stopthie.lay

trunk/src/mess/drivers/cnsector.c
r0r242150
1// license:BSD-3-Clause
2// copyright-holders:hap
3/***************************************************************************
4
5  Parker Brothers Code Name: Sector
6  * MP0905BNL ZA0379 (die labeled 0970F-05B)
7
8
9***************************************************************************/
10
11#include "emu.h"
12#include "cpu/tms0980/tms0980.h"
13
14#include "cnsector.lh"
15
16
17class cnsector_state : public driver_device
18{
19public:
20   cnsector_state(const machine_config &mconfig, device_type type, const char *tag)
21      : driver_device(mconfig, type, tag),
22      m_maincpu(*this, "maincpu")
23   { }
24
25   required_device<cpu_device> m_maincpu;
26
27   UINT16 m_r;
28   UINT16 m_o;
29
30   DECLARE_READ8_MEMBER(read_k);
31   DECLARE_WRITE16_MEMBER(write_o);
32   DECLARE_WRITE16_MEMBER(write_r);
33
34   virtual void machine_start();
35};
36
37
38
39/***************************************************************************
40
41  I/O
42
43***************************************************************************/
44
45READ8_MEMBER(cnsector_state::read_k)
46{
47   return 0;
48}
49
50WRITE16_MEMBER(cnsector_state::write_r)
51{
52   m_r = data;
53}
54
55WRITE16_MEMBER(cnsector_state::write_o)
56{
57   m_o = data;
58}
59
60
61
62/***************************************************************************
63
64  Inputs
65
66***************************************************************************/
67
68static INPUT_PORTS_START( cnsector )
69INPUT_PORTS_END
70
71
72
73/***************************************************************************
74
75  Machine Config
76
77***************************************************************************/
78
79void cnsector_state::machine_start()
80{
81   m_r = 0;
82   m_o = 0;
83   
84   save_item(NAME(m_r));
85   save_item(NAME(m_o));
86}
87
88
89static MACHINE_CONFIG_START( cnsector, cnsector_state )
90
91   /* basic machine hardware */
92   MCFG_CPU_ADD("maincpu", TMS0970, 250000)
93   MCFG_TMS1XXX_READ_K_CB(READ8(cnsector_state, read_k))
94   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(cnsector_state, write_o))
95   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(cnsector_state, write_r))
96   
97   MCFG_DEFAULT_LAYOUT(layout_cnsector)
98
99   /* no video! */
100
101   /* no sound! */
102MACHINE_CONFIG_END
103
104
105
106/***************************************************************************
107
108  Game driver(s)
109
110***************************************************************************/
111
112ROM_START( cnsector )
113   ROM_REGION( 0x0400, "maincpu", 0 )
114   ROM_LOAD( "mp0905bnl_za0379", 0x0000, 0x0400, CRC(564fe1a0) SHA1(825840a73175eee12e9712c871799f00e3be2c53) )
115
116   ROM_REGION( 782, "maincpu:ipla", 0 )
117   ROM_LOAD( "tms0970_default_ipla.pla", 0, 782, CRC(e038fc44) SHA1(dfc280f6d0a5828d1bb14fcd59ac29caf2c2d981) )
118   ROM_REGION( 860, "maincpu:mpla", 0 )
119   ROM_LOAD( "tms0970_cnsector_mpla.pla", 0, 860, CRC(059f5bb4) SHA1(2653766f9fd74d41d44013bb6f54c0973a6080c9) )
120   ROM_REGION( 352, "maincpu:opla", 0 )
121   ROM_LOAD( "tms0970_cnsector_opla.pla", 0, 352, CRC(7c0bdcd6) SHA1(dade774097e8095dca5deac7b2367d0c701aca51) )
122   ROM_REGION( 157, "maincpu:spla", 0 )
123   ROM_LOAD( "tms0970_cnsector_spla.pla", 0, 157, CRC(56c37a4f) SHA1(18ecc20d2666e89673739056483aed5a261ae927) )
124ROM_END
125
126
127CONS( 1977, cnsector, 0, 0, cnsector, cnsector, driver_device, 0, "Parker Brothers", "Code Name: Sector", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
trunk/src/mess/drivers/starwbc.c
r0r242150
1// license:BSD-3-Clause
2// copyright-holders:hap
3/***************************************************************************
4
5  Kenner Star Wars: Electronic Battle Command Game
6  * TMS1100 MCU, marked MP3438A
7
8
9***************************************************************************/
10
11#include "emu.h"
12#include "cpu/tms0980/tms0980.h"
13
14#include "starwbc.lh"
15
16
17class starwbc_state : public driver_device
18{
19public:
20   starwbc_state(const machine_config &mconfig, device_type type, const char *tag)
21      : driver_device(mconfig, type, tag),
22      m_maincpu(*this, "maincpu")
23   { }
24
25   required_device<cpu_device> m_maincpu;
26
27   UINT16 m_r;
28   UINT16 m_o;
29
30   DECLARE_READ8_MEMBER(read_k);
31   DECLARE_WRITE16_MEMBER(write_o);
32   DECLARE_WRITE16_MEMBER(write_r);
33
34   virtual void machine_start();
35};
36
37
38
39/***************************************************************************
40
41  I/O
42
43***************************************************************************/
44
45READ8_MEMBER(starwbc_state::read_k)
46{
47   return 0;
48}
49
50WRITE16_MEMBER(starwbc_state::write_r)
51{
52   m_r = data;
53}
54
55WRITE16_MEMBER(starwbc_state::write_o)
56{
57   m_o = data;
58}
59
60
61
62/***************************************************************************
63
64  Inputs
65
66***************************************************************************/
67
68static INPUT_PORTS_START( starwbc )
69INPUT_PORTS_END
70
71
72
73/***************************************************************************
74
75  Machine Config
76
77***************************************************************************/
78
79void starwbc_state::machine_start()
80{
81   m_r = 0;
82   m_o = 0;
83   
84   save_item(NAME(m_r));
85   save_item(NAME(m_o));
86}
87
88
89static MACHINE_CONFIG_START( starwbc, starwbc_state )
90
91   /* basic machine hardware */
92   MCFG_CPU_ADD("maincpu", TMS1100, 400000)
93   MCFG_TMS1XXX_READ_K_CB(READ8(starwbc_state, read_k))
94   MCFG_TMS1XXX_WRITE_O_CB(WRITE16(starwbc_state, write_o))
95   MCFG_TMS1XXX_WRITE_R_CB(WRITE16(starwbc_state, write_r))
96   
97   MCFG_DEFAULT_LAYOUT(layout_starwbc)
98
99   /* no video! */
100
101   /* no sound! */
102MACHINE_CONFIG_END
103
104
105
106/***************************************************************************
107
108  Game driver(s)
109
110***************************************************************************/
111
112ROM_START( starwbc )
113   ROM_REGION( 0x0800, "maincpu", 0 )
114   ROM_LOAD( "mp3438a", 0x0000, 0x0800, CRC(c12b7069) SHA1(d1f39c69a543c128023ba11cc6228bacdfab04de) )
115
116   ROM_REGION( 867, "maincpu:mpla", 0 )
117   ROM_LOAD( "tms1100_starwbc_mpla.pla", 0, 867, CRC(03574895) SHA1(04407cabfb3adee2ee5e4218612cb06c12c540f4) )
118   ROM_REGION( 365, "maincpu:opla", 0 )
119   ROM_LOAD( "tms1100_starwbc_opla.pla", 0, 365, CRC(d358a76d) SHA1(06b60b207540e9b726439141acadea9aba718013) )
120ROM_END
121
122
123CONS( 1979, starwbc, 0, 0, starwbc, starwbc, driver_device, 0, "Kenner", "Star Wars: Electronic Battle Command Game", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE | GAME_NO_SOUND_HW )
trunk/src/mess/layout/cnsector.lay
r0r242150
1<?xml version="1.0"?>
2<mamelayout version="2">
3
4   <view name="Internal Layout">
5      <bounds left="0" right="200" top="0" bottom="200" />
6
7   </view>
8</mamelayout>
trunk/src/mess/layout/starwbc.lay
r0r242150
1<?xml version="1.0"?>
2<mamelayout version="2">
3
4   <view name="Internal Layout">
5      <bounds left="0" right="200" top="0" bottom="200" />
6
7   </view>
8</mamelayout>
trunk/src/mess/layout/stopthie.lay
r242149r242150
11<?xml version="1.0"?>
22<mamelayout version="2">
3   <element name="background">
4      <rect>
5         <bounds left="0" top="0" right="1" bottom="1" />
6         <color red="0.0" green="0.0" blue="0.0" />
7      </rect>
8   </element>
93
10   <view name="Default Layout">
4   <view name="Internal Layout">
5      <bounds left="0" right="200" top="0" bottom="200" />
116
12      <!-- Black background -->
13      <bezel element="background">
14         <bounds left="0" top="0" right="200" bottom="200" />
15      </bezel>
16
177   </view>
188</mamelayout>
trunk/src/mess/mess.lst
r242149r242150
22362236mmd1
22372237mmd2
22382238mpf1p
2239cnsector
2240starwbc
22392241stopthie
22402242amico2k
22412243jtc
trunk/src/mess/mess.mak
r242149r242150
730730   $(MESSOBJ)/intv.a \
731731   $(MESSOBJ)/isc.a \
732732   $(MESSOBJ)/kaypro.a \
733   $(MESSOBJ)/kenner.a \
733734   $(MESSOBJ)/koei.a \
734735   $(MESSOBJ)/kyocera.a \
735736   $(MESSOBJ)/luxor.a \
r242149r242150
13291330$(MESSOBJ)/kaypro.a:            \
13301331   $(MESS_DRIVERS)/kaypro.o $(MESS_MACHINE)/kaypro.o $(MESS_MACHINE)/kay_kbd.o $(MESS_VIDEO)/kaypro.o \
13311332
1333$(MESSOBJ)/kenner.a:            \
1334   $(MESS_DRIVERS)/starwbc.o   \
1335
13321336$(MESSOBJ)/koei.a:              \
13331337   $(MESS_DRIVERS)/pasogo.o    \
13341338
r242149r242150
14721476   $(MESS_DRIVERS)/palmz22.o   \
14731477
14741478$(MESSOBJ)/parker.a:            \
1479   $(MESS_DRIVERS)/cnsector.o  \
14751480   $(MESS_DRIVERS)/merlin.o    \
14761481   $(MESS_DRIVERS)/stopthie.o  \
14771482
r242149r242150
20742079$(MESS_DRIVERS)/chessmst.o: $(MESS_LAYOUT)/chessmst.lh
20752080$(MESS_DRIVERS)/chesstrv.o: $(MESS_LAYOUT)/chesstrv.lh \
20762081                     $(MESS_LAYOUT)/borisdpl.lh
2082$(MESS_DRIVERS)/cnsector.o: $(MESS_LAYOUT)/cnsector.lh
20772083$(MESS_DRIVERS)/comp4.o:    $(MESS_LAYOUT)/comp4.lh
20782084$(MESS_DRIVERS)/cp1.o:      $(MESS_LAYOUT)/cp1.lh
20792085$(MESS_DRIVERS)/cvicny.o:   $(MESS_LAYOUT)/cvicny.lh
r242149r242150
21442150$(MESS_DRIVERS)/sitcom.o:   $(MESS_LAYOUT)/sitcom.lh
21452151$(MESS_DRIVERS)/slc1.o:     $(MESS_LAYOUT)/slc1.lh
21462152$(MESS_DRIVERS)/sms.o:      $(MESS_LAYOUT)/sms1.lh
2153$(MESS_DRIVERS)/starwbc.o:  $(MESS_LAYOUT)/starwbc.lh
21472154$(MESS_DRIVERS)/stopthie.o: $(MESS_LAYOUT)/stopthie.lh
21482155$(MESS_DRIVERS)/super80.o:  $(MESS_LAYOUT)/super80.lh
21492156$(MESS_DRIVERS)/supercon.o: $(MESS_LAYOUT)/supercon.lh


Previous 199869 Revisions Next


© 1997-2024 The MAME Team