src/mess/drivers/pc.c
| r13011 | r13012 | |
| 462 | 462 | PORT_INCLUDE( pcvideo_cga ) |
| 463 | 463 | INPUT_PORTS_END |
| 464 | 464 | |
| 465 | static INPUT_PORTS_START( pcega ) |
| 466 | PORT_START("IN0") /* IN0 */ |
| 467 | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| 468 | PORT_BIT ( 0x08, 0x08, IPT_VBLANK ) |
| 469 | PORT_BIT ( 0x07, 0x07, IPT_UNUSED ) |
| 470 | |
| 471 | PORT_START("DSW0") /* IN1 */ |
| 472 | PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives") |
| 473 | PORT_DIPSETTING( 0x00, "1" ) |
| 474 | PORT_DIPSETTING( 0x40, "2" ) |
| 475 | PORT_DIPSETTING( 0x80, "3" ) |
| 476 | PORT_DIPSETTING( 0xc0, "4" ) |
| 477 | PORT_DIPNAME( 0x00, 0x20, "Graphics adapter") |
| 478 | PORT_DIPSETTING( 0x00, "EGA/VGA" ) |
| 479 | PORT_DIPSETTING( 0x10, "Color 40x25" ) |
| 480 | PORT_DIPSETTING( 0x20, "Color 80x25" ) |
| 481 | PORT_DIPSETTING( 0x30, "Monochrome" ) |
| 482 | PORT_DIPNAME( 0x0c, 0x0c, "RAM banks") |
| 483 | PORT_DIPSETTING( 0x00, "1 - 16 64 256K" ) |
| 484 | PORT_DIPSETTING( 0x04, "2 - 32 128 512K" ) |
| 485 | PORT_DIPSETTING( 0x08, "3 - 48 192 576K" ) |
| 486 | PORT_DIPSETTING( 0x0c, "4 - 64 256 640K" ) |
| 487 | PORT_DIPNAME( 0x02, 0x00, "80387 installed") |
| 488 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 489 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 490 | PORT_DIPNAME( 0x01, 0x01, "Floppy installed") |
| 491 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 492 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 493 | |
| 494 | PORT_START("DSW1") /* IN2 */ |
| 495 | PORT_DIPNAME( 0x80, 0x80, "COM1: enable") |
| 496 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 497 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 498 | PORT_DIPNAME( 0x40, 0x40, "COM2: enable") |
| 499 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 500 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 501 | PORT_DIPNAME( 0x20, 0x00, "COM3: enable") |
| 502 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 503 | PORT_DIPSETTING( 0x20, DEF_STR( Yes ) ) |
| 504 | PORT_DIPNAME( 0x10, 0x00, "COM4: enable") |
| 505 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 506 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 507 | PORT_DIPNAME( 0x08, 0x08, "LPT1: enable") |
| 508 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 509 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 510 | PORT_DIPNAME( 0x04, 0x00, "LPT2: enable") |
| 511 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 512 | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 513 | PORT_DIPNAME( 0x02, 0x00, "LPT3: enable") |
| 514 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 515 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 516 | PORT_DIPNAME( 0x01, 0x00, "Game port enable") |
| 517 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 518 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 519 | |
| 520 | PORT_START("DSW2") /* IN3 */ |
| 521 | PORT_DIPNAME( 0xf0, 0x80, "Serial mouse") |
| 522 | PORT_DIPSETTING( 0x80, "COM1" ) |
| 523 | PORT_DIPSETTING( 0x40, "COM2" ) |
| 524 | PORT_DIPSETTING( 0x20, "COM3" ) |
| 525 | PORT_DIPSETTING( 0x10, "COM4" ) |
| 526 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) |
| 527 | PORT_DIPNAME( 0x08, 0x08, "HDC1 (C800:0 port 320-323)") |
| 528 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 529 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 530 | PORT_DIPNAME( 0x04, 0x04, "HDC2 (CA00:0 port 324-327)") |
| 531 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 532 | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 533 | PORT_BIT( 0x02, 0x02, IPT_UNUSED ) /* no turbo switch */ |
| 534 | PORT_BIT( 0x01, 0x01, IPT_UNUSED ) |
| 535 | |
| 536 | PORT_INCLUDE( kb_keytronic_pc ) |
| 537 | PORT_INCLUDE( pc_mouse_microsoft ) /* IN12 - IN14 */ |
| 538 | PORT_INCLUDE( pc_joystick ) /* IN15 - IN19 */ |
| 539 | INPUT_PORTS_END |
| 540 | |
| 541 | |
| 465 | 542 | static INPUT_PORTS_START( europc ) |
| 466 | 543 | PORT_START("IN0") /* IN0 */ |
| 467 | 544 | PORT_BIT ( 0xf0, 0xf0, IPT_UNUSED ) |
| r13011 | r13012 | |
| 1175 | 1252 | MACHINE_CONFIG_END |
| 1176 | 1253 | |
| 1177 | 1254 | |
| 1255 | static MACHINE_CONFIG_START( iskr3104, pc_state ) |
| 1256 | /* basic machine hardware */ |
| 1257 | MCFG_CPU_PC(pc16, pc16, I8086, 4772720, pc_frame_interrupt) |
| 1258 | |
| 1259 | MCFG_QUANTUM_TIME(attotime::from_hz(60)) |
| 1260 | |
| 1261 | MCFG_MACHINE_START(pc) |
| 1262 | MCFG_MACHINE_RESET(pc) |
| 1263 | |
| 1264 | MCFG_PIT8253_ADD( "pit8253", ibm5150_pit8253_config ) |
| 1265 | |
| 1266 | MCFG_I8237_ADD( "dma8237", XTAL_14_31818MHz/3, ibm5150_dma8237_config ) |
| 1267 | |
| 1268 | MCFG_PIC8259_ADD( "pic8259", ibm5150_pic8259_config ) |
| 1269 | |
| 1270 | MCFG_I8255_ADD( "ppi8255", ibm5160_ppi8255_interface ) |
| 1271 | |
| 1272 | MCFG_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] ) /* TODO: Verify model */ |
| 1273 | MCFG_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] ) /* TODO: Verify model */ |
| 1274 | MCFG_INS8250_ADD( "ins8250_2", ibm5150_com_interface[2] ) /* TODO: Verify model */ |
| 1275 | MCFG_INS8250_ADD( "ins8250_3", ibm5150_com_interface[3] ) /* TODO: Verify model */ |
| 1276 | |
| 1277 | /* video hardware */ |
| 1278 | MCFG_FRAGMENT_ADD( pcvideo_ega ) |
| 1279 | |
| 1280 | /* sound hardware */ |
| 1281 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1282 | MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0) |
| 1283 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 1284 | |
| 1285 | /* keyboard */ |
| 1286 | MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf) |
| 1287 | |
| 1288 | /* printer */ |
| 1289 | MCFG_PC_LPT_ADD("lpt_0", pc_lpt_config) |
| 1290 | MCFG_PC_LPT_ADD("lpt_1", pc_lpt_config) |
| 1291 | MCFG_PC_LPT_ADD("lpt_2", pc_lpt_config) |
| 1292 | |
| 1293 | MCFG_UPD765A_ADD("upd765", pc_fdc_upd765_not_connected_interface) |
| 1294 | |
| 1295 | MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(ibmpc_floppy_interface) |
| 1296 | |
| 1297 | /* internal ram */ |
| 1298 | MCFG_RAM_ADD(RAM_TAG) |
| 1299 | MCFG_RAM_DEFAULT_SIZE("640K") |
| 1300 | MACHINE_CONFIG_END |
| 1301 | |
| 1302 | |
| 1178 | 1303 | static MACHINE_CONFIG_START( poisk2, pc_state ) |
| 1179 | 1304 | /* basic machine hardware */ |
| 1180 | 1305 | MCFG_CPU_PC(pc16, pc16, I8086, 4772720, pc_frame_interrupt) |
| r13011 | r13012 | |
| 1708 | 1833 | ROM_REGION16_LE(0x100000,"maincpu", 0) |
| 1709 | 1834 | ROMX_LOAD( "198.bin", 0xfc000, 0x2000, CRC(bcfd8e41) SHA1(e21ddf78839aa51fa5feb23f511ff5e2da31b433),ROM_SKIP(1)) |
| 1710 | 1835 | ROMX_LOAD( "199.bin", 0xfc001, 0x2000, CRC(2da5fe79) SHA1(14d5dccc141a0b3367f7f8a7188306fdf03c2b6c),ROM_SKIP(1)) |
| 1711 | | ROM_REGION(0x2000,"gfx1", ROMREGION_ERASE00) |
| 1712 | | // need proper rom dump for this machine |
| 1713 | | ROM_LOAD( "iskra-1031_font.bin", 0x0000, 0x2000, CRC(f4d62e80) SHA1(ad7e81a0c9abc224671422bbcf6f6262da92b510)) |
| 1836 | // EGA card from Iskra-3104 |
| 1837 | ROMX_LOAD( "143-03.bin", 0xc0001, 0x2000, CRC(d0706345) SHA1(e04bb40d944426a4ae2e3a614d3f4953d7132ede),ROM_SKIP(1)) |
| 1838 | ROMX_LOAD( "143-02.bin", 0xc0000, 0x2000, CRC(c8c18ebb) SHA1(fd6dac76d43ab8b582e70f1d5cc931d679036fb9),ROM_SKIP(1)) |
| 1714 | 1839 | ROM_END |
| 1715 | 1840 | |
| 1716 | 1841 | ROM_START( poisk1 ) |
| r13011 | r13012 | |
| 1848 | 1973 | |
| 1849 | 1974 | COMP ( 1989, iskr1031, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "Iskra-1031" , GAME_NOT_WORKING) |
| 1850 | 1975 | COMP ( 1989, iskr1030m, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "Iskra-1030M" , GAME_NOT_WORKING) |
| 1851 | | COMP ( 19??, iskr3104, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "Iskra-3104" , GAME_NOT_WORKING) |
| 1976 | COMP ( 19??, iskr3104, ibm5150, 0, iskr3104, pcega, pccga, "<unknown>", "Iskra-3104" , GAME_NOT_WORKING) |
| 1852 | 1977 | COMP ( 1987, ec1840, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "EC-1840" , GAME_NOT_WORKING) |
| 1853 | 1978 | COMP ( 1987, ec1841, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "EC-1841" , GAME_NOT_WORKING) |
| 1854 | 1979 | COMP ( 1989, ec1845, ibm5150, 0, iskr1031, pccga, pccga, "<unknown>", "EC-1845" , GAME_NOT_WORKING) |