src/mess/machine/conkort.c
| r3534 | r3535 | |
| 69 | 69 | |
| 70 | 70 | TODO:
|
| 71 | 71 | |
| 72 | | - install read/write handlers for ABCBUS
|
| 72 | - "memory_set_bank called for bank 1 with invalid bank entry 0"
|
| 73 | 73 | - floppy drive selection
|
| 74 | 74 | - floppy side selection
|
| 75 | 75 | - DS/DD SS/DS jumpers
|
| 76 | 76 | - S1-S5 jumpers
|
| 77 | | - read C5 from DS8131 (card address)
|
| 78 | 77 | - protection device @ 8B
|
| 79 | 78 | - Z80 wait logic
|
| 80 | 79 | - everything for fast controller
|
| r3534 | r3535 | |
| 88 | 87 | #include "cpu/z80/z80.h"
|
| 89 | 88 | #include "cpu/z80/z80daisy.h"
|
| 90 | 89 | #include "machine/wd17xx.h"
|
| 90 | #include "machine/abcbus.h"
|
| 91 | 91 | |
| 92 | 92 | typedef struct _conkort_t conkort_t;
|
| 93 | 93 | struct _conkort_t
|
| r3534 | r3535 | |
| 110 | 110 | |
| 111 | 111 | /* Slow Controller */
|
| 112 | 112 | |
| 113 | | READ8_HANDLER( luxor_55_10828_data_r )
|
| 113 | static READ8_HANDLER( slow_bus_data_r )
|
| 114 | 114 | {
|
| 115 | 115 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 116 | 116 | const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
|
| r3534 | r3535 | |
| 131 | 131 | return data;
|
| 132 | 132 | }
|
| 133 | 133 | |
| 134 | | WRITE8_HANDLER( luxor_55_10828_data_w )
|
| 134 | static WRITE8_HANDLER( slow_bus_data_w )
|
| 135 | 135 | {
|
| 136 | 136 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 137 | 137 | const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
|
| r3534 | r3535 | |
| 148 | 148 | z80pio_astb_w(z80pio, 1);
|
| 149 | 149 | }
|
| 150 | 150 | |
| 151 | | READ8_HANDLER( luxor_55_10828_status_r )
|
| 151 | static READ8_HANDLER( slow_bus_stat_r )
|
| 152 | 152 | {
|
| 153 | 153 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 154 | 154 | conkort_t *conkort = get_safe_token(device);
|
| r3534 | r3535 | |
| 156 | 156 | return (conkort->pio_ardy << 7) | conkort->status;
|
| 157 | 157 | }
|
| 158 | 158 | |
| 159 | | WRITE8_HANDLER( luxor_55_10828_channel_w )
|
| 159 | static WRITE8_HANDLER( slow_bus_c1_w )
|
| 160 | 160 | {
|
| 161 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE);
|
| 161 | 162 | }
|
| 162 | 163 | |
| 163 | | WRITE8_HANDLER( luxor_55_10828_command_w )
|
| 164 | static WRITE8_HANDLER( slow_bus_c3_w )
|
| 164 | 165 | {
|
| 166 | cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, PULSE_LINE);
|
| 165 | 167 | }
|
| 166 | 168 | |
| 167 | | READ8_HANDLER( luxor_55_10828_reset_r )
|
| 169 | static void slow_card_select(const device_config *device, UINT8 data)
|
| 168 | 170 | {
|
| 169 | | // reset Z80 and slow_ctrl lach
|
| 171 | if (data == 0x2d) // TODO: bit 0 of this is configurable with S1
|
| 172 | {
|
| 173 | memory_install_readwrite8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_INP, ABCBUS_OUT, 0x18, 0, slow_bus_data_r, slow_bus_data_w);
|
| 174 | memory_install_read8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_STAT, ABCBUS_STAT, 0x18, 0, slow_bus_stat_r);
|
| 175 | memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C1, ABCBUS_C1, 0x18, 0, slow_bus_c1_w);
|
| 176 | memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C2, ABCBUS_C2, 0x18, 0, SMH_NOP);
|
| 177 | memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C3, ABCBUS_C3, 0x18, 0, slow_bus_c3_w);
|
| 178 | memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C4, ABCBUS_C4, 0x18, 0, SMH_NOP);
|
| 179 | }
|
| 170 | 180 | |
| 171 | | return 0xff;
|
| 181 | cpunum_set_input_line(device->machine, 0, INPUT_LINE_RESET, PULSE_LINE);
|
| 172 | 182 | }
|
| 173 | 183 | |
| 174 | 184 | READ8_HANDLER( slow_ctrl_r )
|
| r3534 | r3535 | |
| 207 | 217 | |
| 208 | 218 | /* Fast Controller */
|
| 209 | 219 | |
| 210 | | |
| 211 | | READ8_HANDLER( luxor_55_21046_data_r )
|
| 220 | static void fast_card_select(const device_config *device, UINT8 data)
|
| 212 | 221 | {
|
| 213 | | return 0;
|
| 214 | 222 | }
|
| 215 | 223 | |
| 216 | | WRITE8_HANDLER( luxor_55_21046_data_w )
|
| 217 | | {
|
| 218 | | }
|
| 219 | | |
| 220 | | READ8_HANDLER( luxor_55_21046_status_r )
|
| 221 | | {
|
| 222 | | return 0;
|
| 223 | | }
|
| 224 | | |
| 225 | | WRITE8_HANDLER( luxor_55_21046_channel_w )
|
| 226 | | {
|
| 227 | | }
|
| 228 | | |
| 229 | | WRITE8_HANDLER( luxor_55_21046_command_w )
|
| 230 | | {
|
| 231 | | }
|
| 232 | | |
| 233 | | READ8_HANDLER( luxor_55_21046_reset_r )
|
| 234 | | {
|
| 235 | | return 0;
|
| 236 | | }
|
| 237 | | |
| 238 | 224 | /* Memory Maps */
|
| 239 | 225 | |
| 240 | 226 | // Slow Controller
|
| 241 | 227 | |
| 242 | | static ADDRESS_MAP_START( luxor_55_10828_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 228 | static ADDRESS_MAP_START( slow_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 243 | 229 | AM_RANGE(0x0000, 0x0fff) AM_ROM
|
| 244 | 230 | AM_RANGE(0x1000, 0x13ff) AM_RAM
|
| 245 | 231 | ADDRESS_MAP_END
|
| 246 | 232 | |
| 247 | | static ADDRESS_MAP_START( luxor_55_10828_io_map, ADDRESS_SPACE_IO, 8 )
|
| 233 | static ADDRESS_MAP_START( slow_io_map, ADDRESS_SPACE_IO, 8 )
|
| 248 | 234 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 249 | 235 | AM_RANGE(0x10, 0x10) AM_WRITE(slow_status_w)
|
| 250 | 236 | AM_RANGE(0x20, 0x20) AM_READWRITE(slow_ctrl_r, slow_ctrl_w)
|
| r3534 | r3535 | |
| 254 | 240 | |
| 255 | 241 | // Fast Controller
|
| 256 | 242 | |
| 257 | | static ADDRESS_MAP_START( luxor_55_21046_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 243 | static ADDRESS_MAP_START( fast_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 258 | 244 | AM_RANGE(0x0000, 0x1fff) AM_ROM
|
| 259 | 245 | AM_RANGE(0x2000, 0x3fff) AM_RAM
|
| 260 | 246 | ADDRESS_MAP_END
|
| 261 | 247 | |
| 262 | | static ADDRESS_MAP_START( luxor_55_21046_io_map, ADDRESS_SPACE_IO, 8 )
|
| 248 | static ADDRESS_MAP_START( fast_io_map, ADDRESS_SPACE_IO, 8 )
|
| 263 | 249 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 264 | 250 | ADDRESS_MAP_END
|
| 265 | 251 | |
| r3534 | r3535 | |
| 409 | 395 | NULL /* portB ready active callback */
|
| 410 | 396 | };
|
| 411 | 397 | |
| 412 | | static const z80_daisy_chain luxor_55_10828_daisy_chain[] =
|
| 398 | static const z80_daisy_chain slow_daisy_chain[] =
|
| 413 | 399 | {
|
| 414 | 400 | { Z80PIO, CONKORT_Z80PIO_TAG },
|
| 415 | 401 | { NULL }
|
| r3534 | r3535 | |
| 457 | 443 | 0
|
| 458 | 444 | };
|
| 459 | 445 | |
| 460 | | static const z80_daisy_chain luxor_55_21046_daisy_chain[] =
|
| 446 | static const z80_daisy_chain fast_daisy_chain[] =
|
| 461 | 447 | {
|
| 462 | 448 | { Z80DMA, CONKORT_Z80DMA_TAG },
|
| 463 | 449 | { NULL }
|
| r3534 | r3535 | |
| 465 | 451 | |
| 466 | 452 | /* FD1791 */
|
| 467 | 453 | |
| 468 | | static void wd1791_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 454 | static void slow_wd1791_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 469 | 455 | {
|
| 470 | 456 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 471 | 457 | conkort_t *conkort = get_safe_token(device);
|
| r3534 | r3535 | |
| 487 | 473 | |
| 488 | 474 | /* FD1793 */
|
| 489 | 475 | |
| 490 | | static void wd1793_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 476 | static void fast_wd1793_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 491 | 477 | {
|
| 492 | 478 | switch(state)
|
| 493 | 479 | {
|
| r3534 | r3535 | |
| 504 | 490 | |
| 505 | 491 | /* Machine Start */
|
| 506 | 492 | |
| 507 | | static MACHINE_START( luxor_55_10828 )
|
| 493 | static MACHINE_START( slow )
|
| 508 | 494 | {
|
| 509 | | wd17xx_init(machine, WD_TYPE_179X, wd1791_callback, NULL); // FD1791-01
|
| 495 | wd17xx_init(machine, WD_TYPE_179X, slow_wd1791_callback, NULL); // FD1791-01
|
| 510 | 496 | }
|
| 511 | 497 | |
| 512 | | static MACHINE_START( luxor_55_21046 )
|
| 498 | static MACHINE_START( fast )
|
| 513 | 499 | {
|
| 514 | | wd17xx_init(machine, WD_TYPE_1793, wd1793_callback, NULL); // FD1793-01
|
| 500 | wd17xx_init(machine, WD_TYPE_1793, fast_wd1793_callback, NULL); // FD1793-01
|
| 515 | 501 | }
|
| 516 | 502 | |
| 517 | 503 | /* Machine Driver */
|
| 518 | 504 | |
| 519 | | MACHINE_DRIVER_START( luxor_55_10828 )
|
| 505 | static MACHINE_DRIVER_START( luxor_55_10828 )
|
| 520 | 506 | MDRV_CPU_ADD(CONKORT_Z80_TAG, Z80, XTAL_4MHz/2)
|
| 521 | | MDRV_CPU_PROGRAM_MAP(luxor_55_10828_map, 0)
|
| 522 | | MDRV_CPU_IO_MAP(luxor_55_10828_io_map, 0)
|
| 523 | | MDRV_CPU_CONFIG(luxor_55_10828_daisy_chain)
|
| 507 | MDRV_CPU_PROGRAM_MAP(slow_map, 0)
|
| 508 | MDRV_CPU_IO_MAP(slow_io_map, 0)
|
| 509 | MDRV_CPU_CONFIG(slow_daisy_chain)
|
| 524 | 510 | |
| 525 | 511 | MDRV_Z80PIO_ADD(CONKORT_Z80PIO_TAG, pio_intf)
|
| 526 | 512 |
|
| 527 | | MDRV_MACHINE_START(luxor_55_10828)
|
| 513 | MDRV_MACHINE_START(slow)
|
| 528 | 514 | MACHINE_DRIVER_END
|
| 529 | 515 | |
| 530 | | MACHINE_DRIVER_START( luxor_55_21046 )
|
| 516 | static MACHINE_DRIVER_START( luxor_55_21046 )
|
| 531 | 517 | MDRV_CPU_ADD(CONKORT_Z80_TAG, Z80, XTAL_16MHz/4)
|
| 532 | | MDRV_CPU_PROGRAM_MAP(luxor_55_21046_map, 0)
|
| 533 | | MDRV_CPU_IO_MAP(luxor_55_21046_io_map, 0)
|
| 534 | | MDRV_CPU_CONFIG(luxor_55_21046_daisy_chain)
|
| 518 | MDRV_CPU_PROGRAM_MAP(fast_map, 0)
|
| 519 | MDRV_CPU_IO_MAP(fast_io_map, 0)
|
| 520 | MDRV_CPU_CONFIG(fast_daisy_chain)
|
| 535 | 521 | |
| 536 | 522 | MDRV_DEVICE_ADD(CONKORT_Z80DMA_TAG, Z80DMA)
|
| 537 | 523 | MDRV_DEVICE_CONFIG(dma_intf)
|
| 538 | 524 |
|
| 539 | | MDRV_MACHINE_START(luxor_55_21046)
|
| 525 | MDRV_MACHINE_START(fast)
|
| 540 | 526 | MACHINE_DRIVER_END
|
| 541 | 527 | |
| 542 | 528 | /* ROMs */
|
| r3534 | r3535 | |
| 609 | 595 | }
|
| 610 | 596 | }
|
| 611 | 597 | |
| 598 | static DEVICE_RESET( luxor_55_10828 )
|
| 599 | {
|
| 600 | }
|
| 601 | |
| 612 | 602 | DEVICE_GET_INFO( luxor_55_10828 )
|
| 613 | 603 | {
|
| 614 | 604 | switch (state)
|
| r3534 | r3535 | |
| 626 | 616 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(luxor_55_10828); break;
|
| 627 | 617 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(luxor_55_10828); break;
|
| 628 | 618 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 629 | | case DEVINFO_FCT_RESET: /* Nothing */ break;
|
| 619 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(luxor_55_10828); break;
|
| 620 | case DEVINFO_FCT_CARD_SELECT: info->f = (genf *)slow_card_select; break;
|
| 630 | 621 | |
| 631 | 622 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 632 | 623 | case DEVINFO_STR_NAME: info->s = "Luxor 55 10828"; break;
|
| r3534 | r3535 | |
| 670 | 661 | }
|
| 671 | 662 | }
|
| 672 | 663 | |
| 664 | static DEVICE_RESET( luxor_55_21046 )
|
| 665 | {
|
| 666 | }
|
| 667 | |
| 673 | 668 | DEVICE_GET_INFO( luxor_55_21046 )
|
| 674 | 669 | {
|
| 675 | 670 | switch (state)
|
| r3534 | r3535 | |
| 685 | 680 | |
| 686 | 681 | /* --- the following bits of info are returned as pointers to data or functions --- */
|
| 687 | 682 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(luxor_55_21046); break;
|
| 688 | | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(luxor_55_21046); break;
|
| 683 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(luxor_55_21046); break;
|
| 689 | 684 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 690 | | case DEVINFO_FCT_RESET: /* Nothing */ break;
|
| 685 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(luxor_55_21046); break;
|
| 686 | case DEVINFO_FCT_CARD_SELECT: info->f = (genf *)fast_card_select; break;
|
| 691 | 687 | |
| 692 | 688 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 693 | 689 | case DEVINFO_STR_NAME: info->s = "Luxor Conkort 55 21046"; break;
|
src/mess/machine/abcbus.c
| r3534 | r3535 | |
| 2 | 2 | #include "abcbus.h" |
| 3 | 3 | #include "devices/basicdsk.h" |
| 4 | 4 | |
| 5 | | static int abcbus_strobe; |
| 6 | | static int abcbus_channel; |
| 7 | | |
| 8 | | READ8_HANDLER( abcbus_data_r ) |
| 5 | typedef struct _abcbus_daisy_state abcbus_daisy_state; |
| 6 | struct _abcbus_daisy_state |
| 9 | 7 | { |
| 10 | | return 0xff; |
| 11 | | } |
| 8 | abcbus_daisy_state * next; /* next device */ |
| 9 | const device_config * device; /* associated device */ |
| 10 | abcbus_card_select card_select; /* card select callback */ |
| 11 | }; |
| 12 | 12 | |
| 13 | | WRITE8_HANDLER( abcbus_data_w ) |
| 13 | static abcbus_daisy_state *daisy; |
| 14 | |
| 15 | void *abcbus_init(running_machine *machine, const char *cputag, const abcbus_daisy_chain *daisy) |
| 14 | 16 | { |
| 15 | | } |
| 17 | astring *tempstring = astring_alloc(); |
| 18 | abcbus_daisy_state *head = NULL; |
| 19 | abcbus_daisy_state **tailptr = &head; |
| 16 | 20 | |
| 17 | | READ8_HANDLER( abcbus_status_r ) |
| 18 | | { |
| 19 | | return 0xff; |
| 21 | /* create a linked list of devices */ |
| 22 | for ( ; daisy->devtype != NULL; daisy++) |
| 23 | { |
| 24 | *tailptr = auto_malloc(sizeof(**tailptr)); |
| 25 | (*tailptr)->next = NULL; |
| 26 | (*tailptr)->device = devtag_get_device(machine, daisy->devtype, device_inherit_tag(tempstring, cputag, daisy->devname)); |
| 27 | if ((*tailptr)->device == NULL) |
| 28 | fatalerror("Unable to locate device '%s'", daisy->devname); |
| 29 | (*tailptr)->card_select = (abcbus_card_select)device_get_info_fct((*tailptr)->device, DEVINFO_FCT_CARD_SELECT); |
| 30 | tailptr = &(*tailptr)->next; |
| 31 | } |
| 32 | |
| 33 | astring_free(tempstring); |
| 34 | return head; |
| 20 | 35 | } |
| 21 | 36 | |
| 22 | 37 | WRITE8_HANDLER( abcbus_channel_w ) |
| 23 | 38 | { |
| 24 | | abcbus_channel = data; |
| 39 | /* loop over all devices and call their card select function */ |
| 40 | for ( ; daisy != NULL; daisy = daisy->next) |
| 41 | (*daisy->card_select)(daisy->device, data); |
| 25 | 42 | } |
| 26 | 43 | |
| 27 | | WRITE8_HANDLER( abcbus_command_w ) |
| 28 | | { |
| 29 | | } |
| 30 | | |
| 31 | 44 | READ8_HANDLER( abcbus_reset_r ) |
| 32 | 45 | { |
| 33 | | abcbus_strobe = CLEAR_LINE; |
| 46 | /* loop over all devices and call their reset function */ |
| 47 | for ( ; daisy != NULL; daisy = daisy->next) |
| 48 | device_reset(daisy->device); |
| 34 | 49 | |
| 35 | 50 | return 0xff; |
| 36 | 51 | } |
| 37 | 52 | |
| 38 | | READ8_HANDLER( abcbus_strobe_r ) |
| 39 | | { |
| 40 | | abcbus_strobe = ASSERT_LINE; |
| 41 | | |
| 42 | | return 0xff; |
| 43 | | } |
| 44 | | |
| 45 | | WRITE8_HANDLER( abcbus_strobe_w ) |
| 46 | | { |
| 47 | | abcbus_strobe = ASSERT_LINE; |
| 48 | | } |
| 49 | | |
| 50 | 53 | DEVICE_IMAGE_LOAD( abc_floppy ) |
| 51 | 54 | { |
| 52 | 55 | int size, tracks, heads, sectors; |
src/mess/drivers/abc80.c
| r3534 | r3535 | |
| 84 | 84 | #include "machine/z80pio.h" |
| 85 | 85 | #include "sound/sn76477.h" |
| 86 | 86 | #include "machine/abcbus.h" |
| 87 | #include "machine/conkort.h" |
| 87 | 88 | |
| 88 | 89 | /* Devices */ |
| 89 | 90 | #include "devices/basicdsk.h" |
| r3534 | r3535 | |
| 231 | 232 | static ADDRESS_MAP_START( abc80_io_map, ADDRESS_SPACE_IO, 8 ) |
| 232 | 233 | ADDRESS_MAP_UNMAP_HIGH |
| 233 | 234 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 234 | | AM_RANGE(0x00, 0x00) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 235 | | AM_RANGE(0x01, 0x01) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 236 | | AM_RANGE(0x02, 0x05) AM_WRITE(abcbus_command_w) |
| 235 | AM_RANGE(0x01, 0x01) AM_WRITE(abcbus_channel_w) |
| 237 | 236 | AM_RANGE(0x06, 0x06) AM_WRITE(abc80_sound_w) |
| 238 | 237 | AM_RANGE(0x07, 0x07) AM_READ(abcbus_reset_r) |
| 239 | 238 | AM_RANGE(0x38, 0x3b) AM_DEVREADWRITE(Z80PIO, Z80PIO_TAG, z80pio_alt_r, z80pio_alt_w) |
| r3534 | r3535 | |
| 352 | 351 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE); |
| 353 | 352 | } |
| 354 | 353 | |
| 355 | | /* Z80 PIO Interface */ |
| 354 | /* Z80 PIO */ |
| 356 | 355 | |
| 357 | 356 | static TIMER_DEVICE_CALLBACK( z80pio_astb_tick ) |
| 358 | 357 | { |
| r3534 | r3535 | |
| 459 | 458 | { NULL } |
| 460 | 459 | }; |
| 461 | 460 | |
| 461 | /* ABC BUS */ |
| 462 | |
| 463 | static ABCBUS_CONFIG( abcbus_config ) |
| 464 | { |
| 465 | // { luxor_55_10828, CONKORT_TAG }, |
| 466 | { NULL } |
| 467 | }; |
| 468 | |
| 462 | 469 | /* Machine Initialization */ |
| 463 | 470 | |
| 464 | 471 | static MACHINE_START( abc80 ) |
| r3534 | r3535 | |
| 485 | 492 | |
| 486 | 493 | state->z80pio = devtag_get_device(machine, Z80PIO, Z80PIO_TAG); |
| 487 | 494 | |
| 495 | /* initialize the ABC BUS */ |
| 496 | |
| 497 | abcbus_init(machine, Z80_TAG, abcbus_config); |
| 498 | |
| 488 | 499 | /* register for state saving */ |
| 489 | 500 | |
| 490 | 501 | state_save_register_global(state->key_data); |
| r3534 | r3535 | |
| 513 | 524 | MDRV_TIMER_ADD_SCANLINE("pio_astb", z80pio_astb_tick, SCREEN_TAG, 0, 1) |
| 514 | 525 | MDRV_Z80PIO_ADD(Z80PIO_TAG, abc80_pio_intf) |
| 515 | 526 | |
| 527 | /* Luxor Conkort 55-10828 */ |
| 528 | // MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_10828) |
| 529 | |
| 516 | 530 | /* video hardware */ |
| 517 | 531 | MDRV_IMPORT_FROM(abc80_video) |
| 518 | 532 | |
src/mess/drivers/abc80x.c
| r3534 | r3535 | |
| 484 | 484 | static ADDRESS_MAP_START( abc800m_io_map, ADDRESS_SPACE_IO, 8 ) |
| 485 | 485 | ADDRESS_MAP_UNMAP_HIGH |
| 486 | 486 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 487 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 488 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 489 | | AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w) |
| 487 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_WRITE(abcbus_channel_w) |
| 490 | 488 | AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_READ(abc800_pling_r) |
| 491 | 489 | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800_hrs_w) |
| 492 | 490 | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800_hrc_w) |
| r3534 | r3535 | |
| 512 | 510 | static ADDRESS_MAP_START( abc800c_io_map, ADDRESS_SPACE_IO, 8 ) |
| 513 | 511 | ADDRESS_MAP_UNMAP_HIGH |
| 514 | 512 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 515 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 516 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 517 | | AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w) |
| 513 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_WRITE(abcbus_channel_w) |
| 518 | 514 | AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_READ(abc800_pling_r) |
| 519 | 515 | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800_hrs_w) |
| 520 | 516 | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800_hrc_w) |
| r3534 | r3535 | |
| 534 | 530 | static ADDRESS_MAP_START( abc802_io_map, ADDRESS_SPACE_IO, 8 ) |
| 535 | 531 | ADDRESS_MAP_UNMAP_HIGH |
| 536 | 532 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 537 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0x08) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 538 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0x08) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 539 | | AM_RANGE(0x02, 0x05) AM_MIRROR(0x08) AM_WRITE(abcbus_command_w) |
| 533 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x08) AM_WRITE(abcbus_channel_w) |
| 540 | 534 | AM_RANGE(0x05, 0x05) AM_MIRROR(0x08) AM_READ(abc802_pling_r) |
| 541 | 535 | AM_RANGE(0x07, 0x07) AM_MIRROR(0x08) AM_READ(abcbus_reset_r) |
| 542 | 536 | AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_DEVREADWRITE(Z80DART, Z80DART_TAG, z80dart_alt_r, z80dart_alt_w) |
| r3534 | r3535 | |
| 571 | 565 | |
| 572 | 566 | static ADDRESS_MAP_START( abc806_io_map, ADDRESS_SPACE_IO, 8 ) |
| 573 | 567 | ADDRESS_MAP_UNMAP_HIGH |
| 574 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 575 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 576 | | AM_RANGE(0x02, 0x05) AM_MIRROR(0xff18) AM_WRITE(abcbus_command_w) |
| 568 | AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_WRITE(abcbus_channel_w) |
| 577 | 569 | AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w) |
| 578 | 570 | AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_MASK(0xff00) AM_READWRITE(abcbus_reset_r, abc806_hrc_w) |
| 579 | 571 | AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_DEVREADWRITE(Z80DART, Z80DART_TAG, z80dart_alt_r, z80dart_alt_w) |
| r3534 | r3535 | |
| 1081 | 1073 | { NULL } |
| 1082 | 1074 | }; |
| 1083 | 1075 | |
| 1076 | /* ABC BUS */ |
| 1077 | |
| 1078 | static ABCBUS_CONFIG( abcbus_config ) |
| 1079 | { |
| 1080 | // { LUXOR_55_21046, CONKORT_TAG }, |
| 1081 | { NULL } |
| 1082 | }; |
| 1083 | |
| 1084 | 1084 | /* Machine Initialization */ |
| 1085 | 1085 | |
| 1086 | 1086 | static MACHINE_START( abc800 ) |
| r3534 | r3535 | |
| 1094 | 1094 | state->z80sio = devtag_get_device(machine, Z80SIO, Z80SIO_TAG); |
| 1095 | 1095 | //state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG); |
| 1096 | 1096 | |
| 1097 | /* initialize the ABC BUS */ |
| 1098 | |
| 1099 | abcbus_init(machine, Z80_TAG, abcbus_config); |
| 1100 | |
| 1097 | 1101 | /* configure memory */ |
| 1098 | 1102 | |
| 1099 | 1103 | state->videoram = auto_malloc(ABC800_VIDEO_RAM_SIZE); |
| r3534 | r3535 | |
| 1125 | 1129 | state->z80sio = devtag_get_device(machine, Z80SIO, Z80SIO_TAG); |
| 1126 | 1130 | // state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG); |
| 1127 | 1131 | |
| 1132 | /* initialize the ABC BUS */ |
| 1133 | |
| 1134 | abcbus_init(machine, Z80_TAG, abcbus_config); |
| 1135 | |
| 1128 | 1136 | /* configure memory */ |
| 1129 | 1137 | |
| 1130 | 1138 | memory_configure_bank(1, 0, 1, mess_ram, 0); |
| r3534 | r3535 | |
| 1175 | 1183 | state->e0516 = devtag_get_device(machine, E0516, E0516_TAG); |
| 1176 | 1184 | //state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG); |
| 1177 | 1185 | |
| 1186 | /* initialize the ABC BUS */ |
| 1187 | |
| 1188 | abcbus_init(machine, Z80_TAG, abcbus_config); |
| 1189 | |
| 1178 | 1190 | /* setup memory banking */ |
| 1179 | 1191 | |
| 1180 | 1192 | state->videoram = auto_malloc(videoram_size); |
| r3534 | r3535 | |
| 1247 | 1259 | // MDRV_ABC77_ADD(abc800_abc77_intf) |
| 1248 | 1260 | |
| 1249 | 1261 | /* Luxor Conkort 55-21046 */ |
| 1250 | | MDRV_DEVICE_ADD("conkort", LUXOR_CONKORT) |
| 1262 | // MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046) |
| 1251 | 1263 | |
| 1252 | 1264 | /* video hardware */ |
| 1253 | 1265 | MDRV_IMPORT_FROM(abc800m_video) |
| r3534 | r3535 | |
| 1293 | 1305 | /* ABC-77 keyboard */ |
| 1294 | 1306 | // MDRV_ABC77_ADD(abc800_abc77_intf) |
| 1295 | 1307 | |
| 1308 | /* Luxor Conkort 55-21046 */ |
| 1309 | // MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046) |
| 1310 | |
| 1296 | 1311 | /* video hardware */ |
| 1297 | 1312 | MDRV_IMPORT_FROM(abc800c_video) |
| 1298 | 1313 | |
| r3534 | r3535 | |
| 1337 | 1352 | /* ABC-77 keyboard */ |
| 1338 | 1353 | // MDRV_ABC77_ADD(abc802_abc77_intf) |
| 1339 | 1354 | |
| 1355 | /* Luxor Conkort 55-21046 */ |
| 1356 | // MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046) |
| 1357 | |
| 1340 | 1358 | /* video hardware */ |
| 1341 | 1359 | MDRV_IMPORT_FROM(abc802_video) |
| 1342 | 1360 | |
| r3534 | r3535 | |
| 1381 | 1399 | /* ABC-77 keyboard */ |
| 1382 | 1400 | //MDRV_ABC77_ADD(abc806_abc77_intf) |
| 1383 | 1401 | |
| 1402 | /* Luxor Conkort 55-21046 */ |
| 1403 | // MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046) |
| 1404 | |
| 1384 | 1405 | /* video hardware */ |
| 1385 | 1406 | MDRV_IMPORT_FROM(abc806_video) |
| 1386 | 1407 | |