Previous 199869 Revisions Next

r21993 Wednesday 20th March, 2013 at 22:26:02 UTC by Carl
(mess) genpc: also video is in the devices now (nw)
[src/mess/drivers]genpc.c

trunk/src/mess/drivers/genpc.c
r21992r21993
1414#include "cpu/nec/nec.h"
1515#include "cpu/i86/i86.h"
1616
17#include "video/pc_cga.h"
17#include "video/isa_cga.h"
1818#include "video/isa_ega.h"
1919#include "video/isa_mda.h"
2020#include "video/isa_svga_tseng.h"
r21992r21993
7979static INPUT_PORTS_START( pcgen )
8080INPUT_PORTS_END
8181
82static INPUT_PORTS_START( pccga )
83   PORT_INCLUDE( pcvideo_cga )
84INPUT_PORTS_END
85
8682static const unsigned i86_address_mask = 0x000fffff;
8783
8884static DEVICE_INPUT_DEFAULTS_START(cga)
r21992r21993
9591
9692static SLOT_INTERFACE_START(pc_isa8_cards)
9793   SLOT_INTERFACE("mda", ISA8_MDA)
94   SLOT_INTERFACE("cga", ISA8_CGA)
9895   SLOT_INTERFACE("ega", ISA8_EGA)
9996   SLOT_INTERFACE("svga_et4k", ISA8_SVGA_ET4K)
10097   SLOT_INTERFACE("com", ISA8_COM)
r21992r21993
125122
126123   MCFG_IBM5160_MOTHERBOARD_ADD("mb","maincpu")
127124
128   /* video hardware */
129   MCFG_PALETTE_LENGTH( 256 )
130
131125   MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "mda", NULL, false)
132126   MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", NULL, false)
133127   MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", NULL, false)
r21992r21993
159153   MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "adlib", NULL, false)
160154   MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL, false)
161155
162   /* video hardware */
163   MCFG_PALETTE_LENGTH( 256 )
164
165156   /* keyboard */
166157   MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270, NULL)
167158
r21992r21993
181172   MCFG_IBM5160_MOTHERBOARD_ADD("mb","maincpu")
182173   MCFG_DEVICE_INPUT_DEFAULTS(cga)
183174
184   /* video hardware */
185   MCFG_FRAGMENT_ADD( pcvideo_cga )
186   MCFG_PALETTE_LENGTH( 256 )
187
188   MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "com", NULL, false)
189   MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "fdc_xt", NULL, false)
190   MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "hdc", NULL, false)
191   MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "sblaster1_0", NULL, false)
192   MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, NULL, NULL, false)
175   MCFG_ISA8_SLOT_ADD("mb:isa", "isa1", pc_isa8_cards, "cga", NULL, false)
176   MCFG_ISA8_SLOT_ADD("mb:isa", "isa2", pc_isa8_cards, "com", NULL, false)
177   MCFG_ISA8_SLOT_ADD("mb:isa", "isa3", pc_isa8_cards, "fdc_xt", NULL, false)
178   MCFG_ISA8_SLOT_ADD("mb:isa", "isa4", pc_isa8_cards, "hdc", NULL, false)
179   MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "sblaster1_0", NULL, false)
193180   MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL, false)
194181
195182   /* keyboard */
r21992r21993
218205   MCFG_ISA8_SLOT_ADD("mb:isa", "isa5", pc_isa8_cards, "ega", NULL, false)
219206   MCFG_ISA8_SLOT_ADD("mb:isa", "isa6", pc_isa8_cards, NULL, NULL, false)
220207
221   /* video hardware */
222   MCFG_PALETTE_LENGTH( 256 )
223
224208   /* keyboard */
225209   MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270, NULL)
226210
r21992r21993
247231   MCFG_ISA8_SLOT_ADD("mb:isa","isa5", pc_isa8_cards, "svga_et4k", NULL, false)
248232   MCFG_ISA8_SLOT_ADD("mb:isa","isa6", pc_isa8_cards, NULL, NULL, false)
249233
250   /* video hardware */
251   MCFG_PALETTE_LENGTH( 256 )
252
253234   /* keyboard */
254235   MCFG_PC_KBDC_SLOT_ADD("mb:pc_kbdc", "kbd", pc_xt_keyboards, STR_KBD_KEYTRONIC_PC3270, NULL)
255236
r21992r21993
319300***************************************************************************/
320301
321302/*     YEAR     NAME        PARENT      COMPAT  MACHINE     INPUT       INIT        COMPANY     FULLNAME */
322COMP(  1987,    pc,         ibm5150,    0,      pccga,      pccga, driver_device,       0,          "<generic>",  "PC (CGA)" , 0)
323COMP(  1987,    pcega,      ibm5150,    0,      pcega,      pccga, driver_device,       0,          "<generic>",  "PC (EGA)" , 0)
303COMP(  1987,    pc,         ibm5150,    0,      pccga,      pcgen, driver_device,       0,          "<generic>",  "PC (CGA)" , 0)
304COMP(  1987,    pcega,      ibm5150,    0,      pcega,      pcgen, driver_device,       0,          "<generic>",  "PC (EGA)" , 0)
324305COMP ( 1987,    pcmda,      ibm5150,    0,      pcmda,      pcgen, driver_device,       0,          "<generic>",  "PC (MDA)" , 0)
325306COMP ( 1987,    pcherc,     ibm5150,    0,      pcherc,     pcgen, driver_device,      0,       "<generic>",  "PC (Hercules)" , 0)
326307COMP ( 1987,    xtvga,      ibm5150,    0,      xtvga,      pcgen, driver_device,       0,          "<generic>",  "PC (VGA)" , GAME_NOT_WORKING)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team