src/mess/drivers/mpf1.c
| r6529 | r6530 | |
| 8 | 8 | * Storage: Cassette tape * |
| 9 | 9 | * Video: 6x 7-segment LED display * |
| 10 | 10 | * Sound: Speaker * |
| 11 | | * * |
| 12 | | * TODO: * |
| 13 | | * CRT board * |
| 14 | | * Speech board * |
| 15 | | * I/O board * |
| 16 | | * MONI/INTR key interrupts * |
| 17 | | * PIO/CTC + interrupt daisy chain * |
| 18 | 11 | \************************************************/ |
| 19 | 12 | |
| 20 | 13 | /* |
| r6529 | r6530 | |
| 25 | 18 | |
| 26 | 19 | */ |
| 27 | 20 | |
| 21 | /* |
| 22 | |
| 23 | TODO: |
| 24 | |
| 25 | - crt board |
| 26 | - speech board |
| 27 | - printers |
| 28 | - intr key |
| 29 | - moni key |
| 30 | - |
| 31 | |
| 32 | */ |
| 33 | |
| 28 | 34 | #include "driver.h" |
| 29 | 35 | #include "includes/mpf1.h" |
| 30 | 36 | #include "cpu/z80/z80.h" |
| r6529 | r6530 | |
| 33 | 39 | #include "machine/z80ctc.h" |
| 34 | 40 | #include "machine/z80pio.h" |
| 35 | 41 | #include "machine/z80sio.h" |
| 42 | #include "audio/spchroms.h" |
| 36 | 43 | #include "sound/speaker.h" |
| 44 | #include "sound/tms5220.h" |
| 37 | 45 | #include "devices/cassette.h" |
| 38 | 46 | #include "mpf1.lh" |
| 39 | 47 | |
| 40 | 48 | /* Address Maps */ |
| 41 | 49 | |
| 42 | 50 | static ADDRESS_MAP_START( mpf1_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 51 | ADDRESS_MAP_UNMAP_HIGH |
| 43 | 52 | AM_RANGE(0x0000, 0x0fff) AM_ROM |
| 44 | 53 | AM_RANGE(0x1800, 0x1fff) AM_RAM |
| 45 | 54 | AM_RANGE(0x2000, 0x2fff) AM_ROM |
| r6529 | r6530 | |
| 51 | 60 | ADDRESS_MAP_END |
| 52 | 61 | |
| 53 | 62 | static ADDRESS_MAP_START( mpf1_io_map, ADDRESS_SPACE_IO, 8 ) |
| 63 | ADDRESS_MAP_UNMAP_HIGH |
| 54 | 64 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 55 | 65 | AM_RANGE(0x00, 0x03) AM_MIRROR(0x3c) AM_DEVREADWRITE(I8255A_TAG, i8255a_r, i8255a_w) |
| 56 | 66 | AM_RANGE(0x40, 0x43) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80CTC_TAG, z80ctc_r, z80ctc_w) |
| 57 | 67 | AM_RANGE(0x80, 0x83) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80PIO_TAG, z80pio_r, z80pio_w) |
| 58 | 68 | ADDRESS_MAP_END |
| 59 | 69 | |
| 70 | static ADDRESS_MAP_START( mpf1b_io_map, ADDRESS_SPACE_IO, 8 ) |
| 71 | ADDRESS_MAP_UNMAP_HIGH |
| 72 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 73 | AM_RANGE(0x00, 0x03) AM_MIRROR(0x3c) AM_DEVREADWRITE(I8255A_TAG, i8255a_r, i8255a_w) |
| 74 | AM_RANGE(0x40, 0x43) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80CTC_TAG, z80ctc_r, z80ctc_w) |
| 75 | AM_RANGE(0x80, 0x83) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80PIO_TAG, z80pio_r, z80pio_w) |
| 76 | AM_RANGE(0xfe, 0xfe) AM_MIRROR(0x01) AM_DEVREADWRITE(TMS5220_TAG, tms5220_status_r, tms5220_data_w) |
| 77 | ADDRESS_MAP_END |
| 78 | |
| 79 | static ADDRESS_MAP_START( mpf1p_io_map, ADDRESS_SPACE_IO, 8 ) |
| 80 | ADDRESS_MAP_UNMAP_HIGH |
| 81 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 82 | AM_RANGE(0x00, 0x03) AM_MIRROR(0x3c) AM_DEVREADWRITE(I8255A_TAG, i8255a_r, i8255a_w) |
| 83 | AM_RANGE(0x40, 0x43) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80CTC_TAG, z80ctc_r, z80ctc_w) |
| 84 | AM_RANGE(0x80, 0x83) AM_MIRROR(0x3c) AM_DEVREADWRITE(Z80PIO_TAG, z80pio_r, z80pio_w) |
| 85 | ADDRESS_MAP_END |
| 86 | |
| 60 | 87 | /* Input Ports */ |
| 61 | 88 | |
| 62 | 89 | static INPUT_PORTS_START( mpf1 ) |
| 63 | | PORT_START("row_0") |
| 90 | PORT_START("PC0") |
| 64 | 91 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 HL") PORT_CODE(KEYCODE_3) |
| 65 | 92 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 HL'") PORT_CODE(KEYCODE_7) |
| 66 | 93 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B I*IF") PORT_CODE(KEYCODE_B) |
| 67 | 94 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F *PNC'") PORT_CODE(KEYCODE_F) |
| 68 | 95 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 69 | 96 | |
| 70 | | PORT_START("row_1") |
| 97 | PORT_START("PC1") |
| 71 | 98 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 DE") PORT_CODE(KEYCODE_2) |
| 72 | 99 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 DE'") PORT_CODE(KEYCODE_6) |
| 73 | 100 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A SP") PORT_CODE(KEYCODE_A) |
| 74 | 101 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E SZ*H'") PORT_CODE(KEYCODE_E) |
| 75 | 102 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 76 | 103 | |
| 77 | | PORT_START("row_2") |
| 104 | PORT_START("PC2") |
| 78 | 105 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 BC") PORT_CODE(KEYCODE_1) |
| 79 | 106 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5 BC'") PORT_CODE(KEYCODE_5) |
| 80 | 107 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 IY") PORT_CODE(KEYCODE_9) |
| r6529 | r6530 | |
| 83 | 110 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TAPE RD") PORT_CODE(KEYCODE_F5) |
| 84 | 111 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 85 | 112 | |
| 86 | | PORT_START("row_3") |
| 113 | PORT_START("PC3") |
| 87 | 114 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 AF") PORT_CODE(KEYCODE_0) |
| 88 | 115 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4 AF'") PORT_CODE(KEYCODE_4) |
| 89 | 116 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 IX") PORT_CODE(KEYCODE_8) |
| r6529 | r6530 | |
| 92 | 119 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TAPE WR") PORT_CODE(KEYCODE_F6) |
| 93 | 120 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 94 | 121 | |
| 95 | | PORT_START("row_4") |
| 122 | PORT_START("PC4") |
| 96 | 123 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CBR") PORT_CODE(KEYCODE_N) |
| 97 | 124 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("PC") PORT_CODE(KEYCODE_M) |
| 98 | 125 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("REG") PORT_CODE(KEYCODE_COMMA) |
| r6529 | r6530 | |
| 101 | 128 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("RELA") PORT_CODE(KEYCODE_RCONTROL) |
| 102 | 129 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 103 | 130 | |
| 104 | | PORT_START("row_5") |
| 131 | PORT_START("PC5") |
| 105 | 132 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SBR") PORT_CODE(KEYCODE_H) |
| 106 | 133 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_J) |
| 107 | 134 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("DATA") PORT_CODE(KEYCODE_K) |
| r6529 | r6530 | |
| 121 | 148 | INPUT_PORTS_END |
| 122 | 149 | |
| 123 | 150 | static INPUT_PORTS_START( mpf1b ) |
| 124 | | PORT_START("row_0") |
| 151 | PORT_START("PC0") |
| 125 | 152 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 /") PORT_CODE(KEYCODE_3) |
| 126 | 153 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 >") PORT_CODE(KEYCODE_7) |
| 127 | 154 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B STOP") PORT_CODE(KEYCODE_B) |
| 128 | 155 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F LET") PORT_CODE(KEYCODE_F) |
| 129 | 156 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 130 | 157 | |
| 131 | | PORT_START("row_1") |
| 158 | PORT_START("PC1") |
| 132 | 159 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 *") PORT_CODE(KEYCODE_2) |
| 133 | 160 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 <") PORT_CODE(KEYCODE_6) |
| 134 | 161 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A CALL") PORT_CODE(KEYCODE_A) |
| 135 | 162 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E INPUT") PORT_CODE(KEYCODE_E) |
| 136 | 163 | PORT_BIT(0xf0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 137 | 164 | |
| 138 | | PORT_START("row_2") |
| 165 | PORT_START("PC2") |
| 139 | 166 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 -") PORT_CODE(KEYCODE_1) |
| 140 | 167 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5 =") PORT_CODE(KEYCODE_5) |
| 141 | 168 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 P") PORT_CODE(KEYCODE_9) |
| r6529 | r6530 | |
| 144 | 171 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("LOAD") PORT_CODE(KEYCODE_F5) |
| 145 | 172 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 146 | 173 | |
| 147 | | PORT_START("row_3") |
| 174 | PORT_START("PC3") |
| 148 | 175 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 +") PORT_CODE(KEYCODE_0) |
| 149 | 176 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4 * *") PORT_CODE(KEYCODE_4) |
| 150 | 177 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 M") PORT_CODE(KEYCODE_8) |
| r6529 | r6530 | |
| 153 | 180 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SAVE") PORT_CODE(KEYCODE_F6) |
| 154 | 181 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 155 | 182 | |
| 156 | | PORT_START("row_4") |
| 183 | PORT_START("PC4") |
| 157 | 184 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("IF/pgup") PORT_CODE(KEYCODE_PGUP) |
| 158 | 185 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TO/down") PORT_CODE(KEYCODE_T) PORT_CODE(KEYCODE_DOWN) |
| 159 | 186 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("THEN/pgdn") PORT_CODE(KEYCODE_PGDN) |
| r6529 | r6530 | |
| 162 | 189 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GOSUB") PORT_CODE(KEYCODE_O) |
| 163 | 190 | PORT_BIT(0xc0, IP_ACTIVE_LOW, IPT_UNUSED) |
| 164 | 191 | |
| 165 | | PORT_START("row_5") |
| 192 | PORT_START("PC5") |
| 166 | 193 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("FOR/up") PORT_CODE(KEYCODE_H) PORT_CODE(KEYCODE_UP) |
| 167 | 194 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("LIST") PORT_CODE(KEYCODE_L) |
| 168 | 195 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NEW") PORT_CODE(KEYCODE_N) |
| r6529 | r6530 | |
| 201 | 228 | UINT8 data = 0x7f; |
| 202 | 229 | |
| 203 | 230 | /* bit 0 to 5, keyboard rows 0 to 5 */ |
| 204 | | if (!BIT(state->lednum, 0)) data &= input_port_read(device->machine, "row_0"); |
| 205 | | if (!BIT(state->lednum, 1)) data &= input_port_read(device->machine, "row_1"); |
| 206 | | if (!BIT(state->lednum, 2)) data &= input_port_read(device->machine, "row_2"); |
| 207 | | if (!BIT(state->lednum, 3)) data &= input_port_read(device->machine, "row_3"); |
| 208 | | if (!BIT(state->lednum, 4)) data &= input_port_read(device->machine, "row_4"); |
| 209 | | if (!BIT(state->lednum, 5)) data &= input_port_read(device->machine, "row_5"); |
| 231 | if (!BIT(state->lednum, 0)) data &= input_port_read(device->machine, "PC0"); |
| 232 | if (!BIT(state->lednum, 1)) data &= input_port_read(device->machine, "PC1"); |
| 233 | if (!BIT(state->lednum, 2)) data &= input_port_read(device->machine, "PC2"); |
| 234 | if (!BIT(state->lednum, 3)) data &= input_port_read(device->machine, "PC3"); |
| 235 | if (!BIT(state->lednum, 4)) data &= input_port_read(device->machine, "PC4"); |
| 236 | if (!BIT(state->lednum, 5)) data &= input_port_read(device->machine, "PC5"); |
| 210 | 237 | |
| 211 | 238 | /* bit 6, user key */ |
| 212 | 239 | data &= input_port_read(device->machine, "user"); |
| r6529 | r6530 | |
| 278 | 305 | DEVCB_NULL |
| 279 | 306 | }; |
| 280 | 307 | |
| 308 | /* Z80 Daisy Chain */ |
| 309 | |
| 310 | static const z80_daisy_chain mpf1_daisy_chain[] = |
| 311 | { |
| 312 | { Z80CTC_TAG }, |
| 313 | { Z80PIO_TAG }, |
| 314 | { NULL } |
| 315 | }; |
| 316 | |
| 317 | /* Cassette Interface */ |
| 318 | |
| 319 | static const cassette_config mpf1_cassette_config = |
| 320 | { |
| 321 | cassette_default_formats, |
| 322 | NULL, |
| 323 | CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED |
| 324 | }; |
| 325 | |
| 326 | /* TMS5220 Interface */ |
| 327 | |
| 328 | static const tms5220_interface mpf1_tms5220_intf = |
| 329 | { |
| 330 | DEVCB_NULL, /* no IRQ callback */ |
| 331 | #if 1 |
| 332 | spchroms_read, /* speech ROM read handler */ |
| 333 | spchroms_load_address, /* speech ROM load address handler */ |
| 334 | spchroms_read_and_branch /* speech ROM read and branch handler */ |
| 335 | #endif |
| 336 | }; |
| 337 | |
| 281 | 338 | /* Machine Initialization */ |
| 282 | 339 | |
| 283 | 340 | static TIMER_CALLBACK( check_halt_callback ) |
| r6529 | r6530 | |
| 317 | 374 | timer_pulse(machine, ATTOTIME_IN_HZ(60), NULL, 0, irq0_callback ); |
| 318 | 375 | } |
| 319 | 376 | |
| 320 | | static const cassette_config mpf1_cassette_config = |
| 321 | | { |
| 322 | | cassette_default_formats, |
| 323 | | NULL, |
| 324 | | CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED |
| 325 | | }; |
| 326 | | |
| 327 | | static const z80_daisy_chain mpf1_daisy_chain[] = |
| 328 | | { |
| 329 | | { Z80CTC_TAG }, |
| 330 | | { Z80PIO_TAG }, |
| 331 | | { NULL } |
| 332 | | }; |
| 333 | | |
| 334 | 377 | /* Machine Drivers */ |
| 335 | 378 | |
| 336 | 379 | static MACHINE_DRIVER_START( mpf1 ) |
| r6529 | r6530 | |
| 345 | 388 | MDRV_MACHINE_START(mpf1) |
| 346 | 389 | MDRV_MACHINE_RESET(mpf1) |
| 347 | 390 | |
| 391 | /* devices */ |
| 392 | MDRV_Z80PIO_ADD(Z80PIO_TAG, mpf1_pio_intf) |
| 393 | MDRV_Z80CTC_ADD(Z80CTC_TAG, XTAL_3_579545MHz/2, mpf1_ctc_intf) |
| 394 | MDRV_I8255A_ADD(I8255A_TAG, ppi8255_intf) |
| 395 | MDRV_CASSETTE_ADD(CASSETTE_TAG, mpf1_cassette_config) |
| 396 | |
| 348 | 397 | /* video hardware */ |
| 349 | 398 | MDRV_DEFAULT_LAYOUT(layout_mpf1) |
| 350 | 399 | |
| r6529 | r6530 | |
| 352 | 401 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 353 | 402 | MDRV_SOUND_ADD(SPEAKER_TAG, SPEAKER, 0) |
| 354 | 403 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 404 | MACHINE_DRIVER_END |
| 355 | 405 | |
| 356 | | /* internal devices */ |
| 406 | static MACHINE_DRIVER_START( mpf1b ) |
| 407 | MDRV_DRIVER_DATA(mpf1_state) |
| 408 | |
| 409 | /* basic machine hardware */ |
| 410 | MDRV_CPU_ADD(Z80_TAG, Z80, XTAL_3_579545MHz/2) |
| 411 | MDRV_CPU_PROGRAM_MAP(mpf1_map) |
| 412 | MDRV_CPU_IO_MAP(mpf1b_io_map) |
| 413 | MDRV_CPU_CONFIG(mpf1_daisy_chain) |
| 414 | |
| 415 | MDRV_MACHINE_START(mpf1) |
| 416 | MDRV_MACHINE_RESET(mpf1) |
| 417 | |
| 418 | /* devices */ |
| 357 | 419 | MDRV_Z80PIO_ADD(Z80PIO_TAG, mpf1_pio_intf) |
| 358 | 420 | MDRV_Z80CTC_ADD(Z80CTC_TAG, XTAL_3_579545MHz/2, mpf1_ctc_intf) |
| 359 | 421 | MDRV_I8255A_ADD(I8255A_TAG, ppi8255_intf) |
| 422 | MDRV_CASSETTE_ADD(CASSETTE_TAG, mpf1_cassette_config) |
| 360 | 423 | |
| 361 | | MDRV_CASSETTE_ADD(CASSETTE_TAG, mpf1_cassette_config) |
| 424 | /* video hardware */ |
| 425 | MDRV_DEFAULT_LAYOUT(layout_mpf1) |
| 426 | |
| 427 | /* sound hardware */ |
| 428 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 429 | MDRV_SOUND_ADD(SPEAKER_TAG, SPEAKER, 0) |
| 430 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 431 | |
| 432 | MDRV_SOUND_ADD(TMS5220_TAG, TMS5220, 680000L) |
| 433 | MDRV_SOUND_CONFIG(mpf1_tms5220_intf) |
| 434 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 362 | 435 | MACHINE_DRIVER_END |
| 363 | 436 | |
| 364 | 437 | static MACHINE_DRIVER_START( mpf1p ) |
| r6529 | r6530 | |
| 367 | 440 | /* basic machine hardware */ |
| 368 | 441 | MDRV_CPU_ADD(Z80_TAG, Z80, 2500000) |
| 369 | 442 | MDRV_CPU_PROGRAM_MAP(mpf1p_map) |
| 370 | | MDRV_CPU_IO_MAP(mpf1_io_map) |
| 443 | MDRV_CPU_IO_MAP(mpf1p_io_map) |
| 371 | 444 | MDRV_CPU_CONFIG(mpf1_daisy_chain) |
| 372 | 445 | |
| 373 | 446 | MDRV_MACHINE_START(mpf1) |
| r6529 | r6530 | |
| 376 | 449 | /* video hardware */ |
| 377 | 450 | MDRV_DEFAULT_LAYOUT(layout_mpf1) |
| 378 | 451 | |
| 379 | | /* internal devices */ |
| 452 | /* devices */ |
| 380 | 453 | MDRV_Z80PIO_ADD(Z80PIO_TAG, mpf1_pio_intf) |
| 381 | 454 | MDRV_Z80CTC_ADD(Z80CTC_TAG, 3579500/2, mpf1_ctc_intf) |
| 382 | 455 | MDRV_I8255A_ADD(I8255A_TAG, ppi8255_intf) |
| 456 | MDRV_CASSETTE_ADD(CASSETTE_TAG, mpf1_cassette_config) |
| 383 | 457 | |
| 384 | 458 | /* sound hardware */ |
| 385 | 459 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 386 | 460 | MDRV_SOUND_ADD(SPEAKER_TAG, SPEAKER, 0) |
| 387 | 461 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 388 | | |
| 389 | | MDRV_CASSETTE_ADD(CASSETTE_TAG, mpf1_cassette_config) |
| 390 | 462 | MACHINE_DRIVER_END |
| 391 | 463 | |
| 392 | 464 | /* ROMs */ |
| r6529 | r6530 | |
| 400 | 472 | ROM_REGION(0x10000, Z80_TAG, 0) |
| 401 | 473 | ROM_LOAD("c55167.u6", 0x0000, 0x1000, CRC(28b06dac) SHA1(99cfbab739d71a914c39302d384d77bddc4b705b)) |
| 402 | 474 | ROM_LOAD("basic.u7", 0x2000, 0x1000, CRC(d276ed6b) SHA1(a45fb98961be5e5396988498c6ed589a35398dcf)) |
| 475 | ROM_LOAD("ssb-mpf.u", 0x5000, 0x1000, CRC(f926334f) SHA1(35847f8164eed4c0794a8b74e5d7fa972b10eb90)) |
| 476 | ROM_LOAD("prt-mpf.u5", 0x6000, 0x1000, CRC(730f2fb0) SHA1(f31536ee9dbb9babb9ce16a7490db654ca0b5749)) |
| 403 | 477 | ROM_END |
| 404 | 478 | |
| 405 | 479 | ROM_START( mpf1p ) |
| 406 | 480 | ROM_REGION(0x10000, Z80_TAG, 0) |
| 407 | 481 | ROM_LOAD("mpf1pmon.bin", 0x0000, 0x2000, CRC(91ace7d3) SHA1(22e3c16a81ac09f37741ad1b526a4456b2ba9493)) |
| 482 | ROM_LOAD("prt-mpf-ip.u5", 0x6000, 0x1000, CRC(4dd2a4eb) SHA1(6a3e7daa7834d67fd572261ed4a9a62c4594fe3f)) |
| 408 | 483 | ROM_END |
| 409 | 484 | |
| 410 | 485 | /* System Drivers */ |
| 411 | 486 | |
| 412 | 487 | COMP( 1979, mpf1, 0, 0, mpf1, mpf1, 0, 0, "Multitech", "Micro Professor 1", 0) |
| 413 | | COMP( 1979, mpf1b, mpf1, 0, mpf1, mpf1b, 0, 0, "Multitech", "Micro Professor 1B", 0) |
| 488 | COMP( 1979, mpf1b, mpf1, 0, mpf1b,mpf1b, 0, 0, "Multitech", "Micro Professor 1B", 0) |
| 414 | 489 | COMP( 1982, mpf1p, mpf1, 0, mpf1p,mpf1b, 0, 0, "Multitech", "Micro Professor 1 Plus", GAME_NOT_WORKING) |