src/mess/machine/conkort.c
| r3533 | r3534 | |
| 1 | /*
|
| 2 | |
| 3 | Luxor Conkort
|
| 4 | |
| 5 | PCB Layout
|
| 6 | ----------
|
| 7 | |
| 8 | 55 21046-03
|
| 9 | |
| 10 | |-----------------------------------|
|
| 11 | | LD1 SW1 CON2 |
|
| 12 | | |
|
| 13 | | CON3 S9 |
|
| 14 | | S8 |
|
| 15 | | LS240 LS174 7406 7406 |
|
| 16 | | |
|
| 17 | | LS174 FDC9229 LS107 LS266 |
|
| 18 | | |
|
| 19 | | |
|
| 20 | | SAB1793 |
|
| 21 | | LS368 16MHz |
|
| 22 | | S6 |
|
| 23 | | Z80DMA ROM |
|
| 24 | | |
|
| 25 | | |
|
| 26 | | Z80 TC5565 |
|
| 27 | | |
|
| 28 | | |
|
| 29 | | LS138 LS174 SW2 74374 |
|
| 30 | | |
|
| 31 | | LS10 LS266 S5 LS374 |
|
| 32 | | S3 |
|
| 33 | | S1 LS240 |
|
| 34 | | |
|
| 35 | | LS244 SW3 DM8131 |
|
| 36 | | |
|
| 37 | | |
|
| 38 | |--|-----------------------------|--|
|
| 39 | |------------CON1-------------|
|
| 40 | |
| 41 | Notes:
|
| 42 | All IC's shown.
|
| 43 | |
| 44 | ROM - Toshiba TMM27128D-20 "CNTR 1.07 6490318-07"
|
| 45 | TC5565 - Toshiba TC5565PL-15 8192x8 bit Static Random Access Memory
|
| 46 | Z80 - Zilog Z8400APS Z80A CPU Central Processing Unit
|
| 47 | Z80DMA - Zilog Z8410APS Z80A DMA Direct Memory Access Controller
|
| 48 | SAB1793 - Siemens SAB1793-02P Floppy Disc Controller
|
| 49 | FDC9229 - SMC FDC9229BT Floppy Disc Interface Circuit
|
| 50 | DM8131 - National Semiconductor DM8131N 6-Bit Unified Bus Comparator
|
| 51 | CON1 - |
| 52 | CON2 - AMP4284
|
| 53 | CON3 - |
| 54 | SW1 - |
| 55 | SW2 - |
| 56 | SW3 - |
| 57 | S1 - |
| 58 | S3 - |
| 59 | S5 - |
| 60 | S6 - Amount of RAM installed (A:2KB, B:8KB)
|
| 61 | S7 - Number of drives connected (0:3, 1:?) *located on solder side
|
| 62 | S8 - 0:8", 1:5.25"
|
| 63 | S9 - Location of RDY signal (A:P2:6, B:P2:34)
|
| 64 | LD1 - LED
|
| 65 | |
| 66 | */
|
| 67 | |
| 68 | /*
|
| 69 | |
| 70 | TODO:
|
| 71 | |
| 72 | - install read/write handlers for ABCBUS
|
| 73 | - floppy drive selection
|
| 74 | - floppy side selection
|
| 75 | - DS/DD SS/DS jumpers
|
| 76 | - S1-S5 jumpers
|
| 77 | - read C5 from DS8131 (card address)
|
| 78 | - protection device @ 8B
|
| 79 | - Z80 wait logic
|
| 80 | - everything for fast controller
|
| 81 | |
| 82 | */
|
| 83 | |
| 1 | 84 | #include "driver.h"
|
| 2 | 85 | #include "conkort.h"
|
| 86 | #include "machine/z80dma.h"
|
| 87 | #include "machine/z80pio.h"
|
| 88 | #include "cpu/z80/z80.h"
|
| 89 | #include "cpu/z80/z80daisy.h"
|
| 90 | #include "machine/wd17xx.h"
|
| 3 | 91 | |
| 4 | 92 | typedef struct _conkort_t conkort_t;
|
| 5 | 93 | struct _conkort_t
|
| 6 | 94 | {
|
| 7 | | int cpunum; /* CPU index of the */
|
| 95 | int cpunum; /* CPU index of the Z80 */
|
| 96 | |
| 97 | UINT8 status;
|
| 98 | UINT8 data;
|
| 99 | int pio_ardy;
|
| 100 | int fdc_irq;
|
| 8 | 101 | };
|
| 9 | 102 | |
| 10 | 103 | INLINE conkort_t *get_safe_token(const device_config *device)
|
| r3533 | r3534 | |
| 15 | 108 | return (conkort_t *)device->token;
|
| 16 | 109 | }
|
| 17 | 110 | |
| 18 | | READ8_HANDLER( conkort_abcbus_data_r )
|
| 111 | /* Slow Controller */
|
| 112 | |
| 113 | READ8_HANDLER( luxor_55_10828_data_r )
|
| 19 | 114 | {
|
| 115 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 116 | const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
|
| 117 | |
| 118 | conkort_t *conkort = get_safe_token(device);
|
| 119 | |
| 120 | UINT8 data = 0xff;
|
| 121 | |
| 122 | z80pio_astb_w(z80pio, 0);
|
| 123 | |
| 124 | if (!BIT(conkort->status, 6))
|
| 125 | {
|
| 126 | data = conkort->data;
|
| 127 | }
|
| 128 | |
| 129 | z80pio_astb_w(z80pio, 1);
|
| 130 | |
| 131 | return data;
|
| 132 | }
|
| 133 | |
| 134 | WRITE8_HANDLER( luxor_55_10828_data_w )
|
| 135 | {
|
| 136 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 137 | const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
|
| 138 | |
| 139 | conkort_t *conkort = get_safe_token(device);
|
| 140 | |
| 141 | z80pio_astb_w(z80pio, 0);
|
| 142 | |
| 143 | if (BIT(conkort->status, 6))
|
| 144 | {
|
| 145 | conkort->data = data;
|
| 146 | }
|
| 147 | |
| 148 | z80pio_astb_w(z80pio, 1);
|
| 149 | }
|
| 150 | |
| 151 | READ8_HANDLER( luxor_55_10828_status_r )
|
| 152 | {
|
| 153 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 154 | conkort_t *conkort = get_safe_token(device);
|
| 155 | |
| 156 | return (conkort->pio_ardy << 7) | conkort->status;
|
| 157 | }
|
| 158 | |
| 159 | WRITE8_HANDLER( luxor_55_10828_channel_w )
|
| 160 | {
|
| 161 | }
|
| 162 | |
| 163 | WRITE8_HANDLER( luxor_55_10828_command_w )
|
| 164 | {
|
| 165 | }
|
| 166 | |
| 167 | READ8_HANDLER( luxor_55_10828_reset_r )
|
| 168 | {
|
| 169 | // reset Z80 and slow_ctrl lach
|
| 170 | |
| 171 | return 0xff;
|
| 172 | }
|
| 173 | |
| 174 | READ8_HANDLER( slow_ctrl_r )
|
| 175 | {
|
| 176 | /*
|
| 177 | |
| 178 | bit description
|
| 179 | |
| 180 | 0 _SEL 0
|
| 181 | 1 _SEL 1
|
| 182 | 2 _SEL 2
|
| 183 | 3 _MOT
|
| 184 | 4 _SIDE
|
| 185 | 5 8B pin 2 or GND
|
| 186 | 6 8A pin 13
|
| 187 | 7 FDC _MR
|
| 188 | |
| 189 | */
|
| 190 | |
| 20 | 191 | return 0;
|
| 21 | 192 | }
|
| 22 | 193 | |
| 23 | | WRITE8_HANDLER( conkort_abcbus_data_w )
|
| 194 | WRITE8_HANDLER( slow_ctrl_w )
|
| 24 | 195 | {
|
| 25 | 196 | }
|
| 26 | 197 | |
| 27 | | READ8_HANDLER( conkort_abcbus_status_r )
|
| 198 | WRITE8_HANDLER( slow_status_w )
|
| 28 | 199 | {
|
| 200 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 201 | conkort_t *conkort = get_safe_token(device);
|
| 202 | |
| 203 | conkort->status = data & 0x7f;
|
| 204 | |
| 205 | cpunum_set_input_line(device->machine, 0, INPUT_LINE_IRQ0, BIT(data, 7) ? ASSERT_LINE : CLEAR_LINE);
|
| 206 | }
|
| 207 | |
| 208 | /* Fast Controller */
|
| 209 | |
| 210 | |
| 211 | READ8_HANDLER( luxor_55_21046_data_r )
|
| 212 | {
|
| 29 | 213 | return 0;
|
| 30 | 214 | }
|
| 31 | 215 | |
| 32 | | WRITE8_HANDLER( conkort_abcbus_channel_w )
|
| 216 | WRITE8_HANDLER( luxor_55_21046_data_w )
|
| 33 | 217 | {
|
| 34 | 218 | }
|
| 35 | 219 | |
| 36 | | WRITE8_HANDLER( conkort_abcbus_command_w )
|
| 220 | READ8_HANDLER( luxor_55_21046_status_r )
|
| 37 | 221 | {
|
| 222 | return 0;
|
| 38 | 223 | }
|
| 39 | 224 | |
| 40 | | READ8_HANDLER( conkort_abcbus_reset_r )
|
| 225 | WRITE8_HANDLER( luxor_55_21046_channel_w )
|
| 41 | 226 | {
|
| 227 | }
|
| 228 | |
| 229 | WRITE8_HANDLER( luxor_55_21046_command_w )
|
| 230 | {
|
| 231 | }
|
| 232 | |
| 233 | READ8_HANDLER( luxor_55_21046_reset_r )
|
| 234 | {
|
| 42 | 235 | return 0;
|
| 43 | 236 | }
|
| 44 | 237 | |
| 45 | 238 | /* Memory Maps */
|
| 46 | 239 | |
| 47 | | static ADDRESS_MAP_START( conkort_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 240 | // Slow Controller
|
| 241 | |
| 242 | static ADDRESS_MAP_START( luxor_55_10828_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 243 | AM_RANGE(0x0000, 0x0fff) AM_ROM
|
| 244 | AM_RANGE(0x1000, 0x13ff) AM_RAM
|
| 245 | ADDRESS_MAP_END
|
| 246 | |
| 247 | static ADDRESS_MAP_START( luxor_55_10828_io_map, ADDRESS_SPACE_IO, 8 )
|
| 248 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 249 | AM_RANGE(0x10, 0x10) AM_WRITE(slow_status_w)
|
| 250 | AM_RANGE(0x20, 0x20) AM_READWRITE(slow_ctrl_r, slow_ctrl_w)
|
| 251 | AM_RANGE(0x40, 0x43) AM_READWRITE(wd17xx_r, wd17xx_w)
|
| 252 | AM_RANGE(0x80, 0x83) AM_DEVREADWRITE(Z80PIO, CONKORT_Z80PIO_TAG, z80pio_alt_r, z80pio_alt_w)
|
| 253 | ADDRESS_MAP_END
|
| 254 | |
| 255 | // Fast Controller
|
| 256 | |
| 257 | static ADDRESS_MAP_START( luxor_55_21046_map, ADDRESS_SPACE_PROGRAM, 8 )
|
| 48 | 258 | AM_RANGE(0x0000, 0x1fff) AM_ROM
|
| 49 | 259 | AM_RANGE(0x2000, 0x3fff) AM_RAM
|
| 50 | 260 | ADDRESS_MAP_END
|
| 51 | 261 | |
| 52 | | static ADDRESS_MAP_START( conkort_io_map, ADDRESS_SPACE_IO, 8 )
|
| 262 | static ADDRESS_MAP_START( luxor_55_21046_io_map, ADDRESS_SPACE_IO, 8 )
|
| 53 | 263 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 54 | 264 | ADDRESS_MAP_END
|
| 55 | 265 | |
| 56 | 266 | /* Input Ports */
|
| 57 | 267 | |
| 58 | | INPUT_PORTS_START( conkort )
|
| 268 | INPUT_PORTS_START( luxor_55_21046 )
|
| 59 | 269 | PORT_START("SW1")
|
| 60 | 270 | PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
|
| 61 | 271 | PORT_DIPNAME( 0x05, 0x00, "Drive 0" ) PORT_DIPLOCATION("SW1:1,3") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
|
| r3533 | r3534 | |
| 98 | 308 | PORT_DIPSETTING( 0x2e, "ABC 838" )
|
| 99 | 309 | INPUT_PORTS_END
|
| 100 | 310 | |
| 311 | /* Z80 PIO */
|
| 312 | |
| 313 | static Z80PIO_ON_INT_CHANGED( pio_interrupt )
|
| 314 | {
|
| 315 | cpunum_set_input_line(device->machine, 1, INPUT_LINE_IRQ0, state); // TODO hardcoded
|
| 316 | }
|
| 317 | |
| 318 | static READ8_DEVICE_HANDLER( pio_port_a_r )
|
| 319 | {
|
| 320 | /*
|
| 321 | |
| 322 | bit description
|
| 323 | |
| 324 | 0 _INT to main Z80
|
| 325 | 1 |
| 326 | 2 |
| 327 | 3 |
| 328 | 4 |
| 329 | 5 |
| 330 | 6 LS245 DIR
|
| 331 | 7 |
| 332 | |
| 333 | */
|
| 334 | |
| 335 | const device_config *conkort_device = devtag_get_device(device->machine, LUXOR_55_10828, CONKORT_TAG);
|
| 336 | conkort_t *conkort = get_safe_token(conkort_device);
|
| 337 | |
| 338 | return conkort->data;
|
| 339 | }
|
| 340 | |
| 341 | static WRITE8_DEVICE_HANDLER( pio_port_a_w )
|
| 342 | {
|
| 343 | const device_config *conkort_device = devtag_get_device(device->machine, LUXOR_55_10828, CONKORT_TAG);
|
| 344 | conkort_t *conkort = get_safe_token(conkort_device);
|
| 345 | |
| 346 | conkort->data = data;
|
| 347 | }
|
| 348 | |
| 349 | static READ8_DEVICE_HANDLER( pio_port_b_r )
|
| 350 | {
|
| 351 | /*
|
| 352 | |
| 353 | bit description
|
| 354 | |
| 355 | 0 !(_DS0 & _DS1)
|
| 356 | 1 !(_DD0 & _DD1)
|
| 357 | 2 8B pin 10
|
| 358 | 3 FDC DDEN
|
| 359 | 4 _R/BS
|
| 360 | 5 FDC HLT
|
| 361 | 6 FDC _HDLD
|
| 362 | 7 FDC IRQ
|
| 363 | |
| 364 | */
|
| 365 | |
| 366 | const device_config *conkort_device = devtag_get_device(device->machine, LUXOR_55_10828, CONKORT_TAG);
|
| 367 | conkort_t *conkort = get_safe_token(conkort_device);
|
| 368 | |
| 369 | return conkort->fdc_irq << 7;
|
| 370 | }
|
| 371 | |
| 372 | static WRITE8_DEVICE_HANDLER( pio_port_b_w )
|
| 373 | {
|
| 374 | /*
|
| 375 | |
| 376 | bit description
|
| 377 | |
| 378 | 0 !(_DS0 & _DS1)
|
| 379 | 1 !(_DD0 & _DD1)
|
| 380 | 2 8B pin 10
|
| 381 | 3 FDC DDEN
|
| 382 | 4 _R/BS
|
| 383 | 5 FDC HLT
|
| 384 | 6 FDC _HDLD
|
| 385 | 7 FDC IRQ
|
| 386 | |
| 387 | */
|
| 388 | |
| 389 | }
|
| 390 | |
| 391 | static Z80PIO_ON_ARDY_CHANGED( pio_ardy_w )
|
| 392 | {
|
| 393 | const device_config *conkort_device = devtag_get_device(device->machine, LUXOR_55_10828, CONKORT_TAG);
|
| 394 | conkort_t *conkort = get_safe_token(conkort_device);
|
| 395 | |
| 396 | conkort->pio_ardy = state;
|
| 397 | }
|
| 398 | |
| 399 | static Z80PIO_INTERFACE( pio_intf )
|
| 400 | {
|
| 401 | CONKORT_Z80_TAG, /* CPU */
|
| 402 | 0, /* clock (get from main CPU) */
|
| 403 | pio_interrupt, /* callback when change interrupt status */
|
| 404 | pio_port_a_r, /* port A read callback */
|
| 405 | pio_port_b_r, /* port B read callback */
|
| 406 | pio_port_a_w, /* port A write callback */
|
| 407 | pio_port_b_w, /* port B write callback */
|
| 408 | pio_ardy_w, /* portA ready active callback */
|
| 409 | NULL /* portB ready active callback */
|
| 410 | };
|
| 411 | |
| 412 | static const z80_daisy_chain luxor_55_10828_daisy_chain[] =
|
| 413 | {
|
| 414 | { Z80PIO, CONKORT_Z80PIO_TAG },
|
| 415 | { NULL }
|
| 416 | };
|
| 417 | |
| 418 | /* Z80 DMA */
|
| 419 | |
| 420 | static READ8_DEVICE_HANDLER( dma_read_byte )
|
| 421 | {
|
| 422 | UINT8 data;
|
| 423 | |
| 424 | cpuintrf_push_context(0);
|
| 425 | data = program_read_byte(offset);
|
| 426 | cpuintrf_pop_context();
|
| 427 | |
| 428 | return data;
|
| 429 | }
|
| 430 | |
| 431 | static WRITE8_DEVICE_HANDLER( dma_write_byte )
|
| 432 | {
|
| 433 | cpuintrf_push_context(0);
|
| 434 | program_write_byte(offset, data);
|
| 435 | cpuintrf_pop_context();
|
| 436 | }
|
| 437 | |
| 438 | static READ8_DEVICE_HANDLER( wd17xx_read_byte )
|
| 439 | {
|
| 440 | return wd17xx_data_r(device->machine, offset);
|
| 441 | }
|
| 442 | |
| 443 | static WRITE8_DEVICE_HANDLER( wd17xx_write_byte )
|
| 444 | {
|
| 445 | wd17xx_data_w(device->machine, offset, data);
|
| 446 | }
|
| 447 | |
| 448 | static const z80dma_interface dma_intf =
|
| 449 | {
|
| 450 | 0,
|
| 451 | XTAL_16MHz/4, // ???
|
| 452 | dma_read_byte,
|
| 453 | dma_write_byte,
|
| 454 | wd17xx_read_byte,
|
| 455 | wd17xx_write_byte,
|
| 456 | 0,
|
| 457 | 0
|
| 458 | };
|
| 459 | |
| 460 | static const z80_daisy_chain luxor_55_21046_daisy_chain[] =
|
| 461 | {
|
| 462 | { Z80DMA, CONKORT_Z80DMA_TAG },
|
| 463 | { NULL }
|
| 464 | };
|
| 465 | |
| 466 | /* FD1791 */
|
| 467 | |
| 468 | static void wd1791_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 469 | {
|
| 470 | const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
|
| 471 | conkort_t *conkort = get_safe_token(device);
|
| 472 | |
| 473 | switch(state)
|
| 474 | {
|
| 475 | case WD17XX_IRQ_CLR:
|
| 476 | conkort->fdc_irq = 0;
|
| 477 | break;
|
| 478 | case WD17XX_IRQ_SET:
|
| 479 | conkort->fdc_irq = 1;
|
| 480 | break;
|
| 481 | case WD17XX_DRQ_CLR: |
| 482 | break;
|
| 483 | case WD17XX_DRQ_SET:
|
| 484 | break;
|
| 485 | }
|
| 486 | }
|
| 487 | |
| 488 | /* FD1793 */
|
| 489 | |
| 490 | static void wd1793_callback(running_machine *machine, wd17xx_state_t state, void *param)
|
| 491 | {
|
| 492 | switch(state)
|
| 493 | {
|
| 494 | case WD17XX_IRQ_CLR:
|
| 495 | break;
|
| 496 | case WD17XX_IRQ_SET:
|
| 497 | break;
|
| 498 | case WD17XX_DRQ_CLR: |
| 499 | break;
|
| 500 | case WD17XX_DRQ_SET:
|
| 501 | break;
|
| 502 | }
|
| 503 | }
|
| 504 | |
| 505 | /* Machine Start */
|
| 506 | |
| 507 | static MACHINE_START( luxor_55_10828 )
|
| 508 | {
|
| 509 | wd17xx_init(machine, WD_TYPE_179X, wd1791_callback, NULL); // FD1791-01
|
| 510 | }
|
| 511 | |
| 512 | static MACHINE_START( luxor_55_21046 )
|
| 513 | {
|
| 514 | wd17xx_init(machine, WD_TYPE_1793, wd1793_callback, NULL); // FD1793-01
|
| 515 | }
|
| 516 | |
| 101 | 517 | /* Machine Driver */
|
| 102 | 518 | |
| 103 | | MACHINE_DRIVER_START( conkort )
|
| 104 | | MDRV_CPU_ADD("main", Z80, 4000000)
|
| 105 | | MDRV_CPU_PROGRAM_MAP(conkort_map, 0)
|
| 106 | | MDRV_CPU_IO_MAP(conkort_io_map, 0)
|
| 519 | MACHINE_DRIVER_START( luxor_55_10828 )
|
| 520 | 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)
|
| 524 | |
| 525 | MDRV_Z80PIO_ADD(CONKORT_Z80PIO_TAG, pio_intf)
|
| 526 |
|
| 527 | MDRV_MACHINE_START(luxor_55_10828)
|
| 107 | 528 | MACHINE_DRIVER_END
|
| 108 | 529 | |
| 530 | MACHINE_DRIVER_START( luxor_55_21046 )
|
| 531 | 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)
|
| 535 | |
| 536 | MDRV_DEVICE_ADD(CONKORT_Z80DMA_TAG, Z80DMA)
|
| 537 | MDRV_DEVICE_CONFIG(dma_intf)
|
| 538 |
|
| 539 | MDRV_MACHINE_START(luxor_55_21046)
|
| 540 | MACHINE_DRIVER_END
|
| 541 | |
| 109 | 542 | /* ROMs */
|
| 110 | 543 | |
| 111 | | ROM_START( conkort )
|
| 112 | | ROM_REGION( 0x10000, "main", 0 )
|
| 113 | | ROM_LOAD( "64 90318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
|
| 114 | | ROM_LOAD( "fast108.bin", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
|
| 115 | | ROM_LOAD( "fast207.bin", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
|
| 544 | ROM_START( l5510828 )
|
| 545 | ROM_REGION( 0x10000, CONKORT_Z80_TAG, 0 )
|
| 546 | |
| 547 | ROM_REGION( 0x800, "abc830", 0 )
|
| 548 | ROM_LOAD( "mpi02.bin", 0x0000, 0x0800, CRC(2aac9296) SHA1(c01a62e7933186bdf7068d2e9a5bc36590544349) ) // ABC830 with MPI drives. Styrkort Artnr 5510760-01
|
| 549 | |
| 550 | ROM_REGION( 0x1800, "abc832", 0 )
|
| 551 | ROM_LOAD( "micr1015.bin", 0x0000, 0x0800, CRC(a7bc05fa) SHA1(6ac3e202b7ce802c70d89728695f1cb52ac80307) ) // Micropolis 1015
|
| 552 | ROM_LOAD( "micr1115.bin", 0x0800, 0x0800, CRC(f2fc5ccc) SHA1(86d6baadf6bf1d07d0577dc1e092850b5ff6dd1b) ) // Micropolis 1115
|
| 553 | ROM_LOAD( "basf6118.bin", 0x1000, 0x0800, CRC(9ca1a1eb) SHA1(04973ad69de8da403739caaebe0b0f6757e4a6b1) ) // BASF 6118
|
| 554 | |
| 555 | ROM_REGION( 0x1000, "abc850", 0 )
|
| 556 | ROM_LOAD( "rodi202.bin", 0x0000, 0x0800, CRC(337b4dcf) SHA1(791ebeb4521ddc11fb9742114018e161e1849bdf) ) // Rodime 202
|
| 557 | ROM_LOAD( "basf6185.bin", 0x0800, 0x0800, CRC(06f8fe2e) SHA1(e81f2a47c854e0dbb096bee3428d79e63591059d) ) // BASF 6185
|
| 558 | |
| 559 | ROM_REGION( 0x1000, "abc852", 0 )
|
| 560 | ROM_LOAD( "nec5126.bin", 0x0000, 0x1000, CRC(17c247e7) SHA1(7339738b87751655cb4d6414422593272fe72f5d) ) // NEC 5126
|
| 561 | |
| 562 | ROM_REGION( 0x800, "abc856", 0 )
|
| 563 | ROM_LOAD( "micr1325.bin", 0x0000, 0x0800, CRC(084af409) SHA1(342b8e214a8c4c2b014604e53c45ef1bd1c69ea3) ) // Micropolis 1325
|
| 564 | |
| 565 | ROM_REGION( 0x1000, "xebec", 0 )
|
| 566 | ROM_LOAD( "st4038.bin", 0x0000, 0x0800, CRC(4c803b87) SHA1(1141bb51ad9200fc32d92a749460843dc6af8953) ) // Seagate ST4038
|
| 567 | ROM_LOAD( "st225.bin", 0x0800, 0x0800, CRC(c9f68f81) SHA1(7ff8b2a19f71fe0279ab3e5a0a5fffcb6030360c) ) // Seagate ST225
|
| 116 | 568 | ROM_END
|
| 117 | 569 | |
| 570 | ROM_START( l5521046 )
|
| 571 | ROM_REGION( 0x10000, CONKORT_Z80_TAG, 0 )
|
| 572 | ROM_LOAD( "fast108.bin", 0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
|
| 573 | ROM_LOAD( "fast207.bin", 0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
|
| 574 | ROM_LOAD( "6490318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
|
| 575 | ROM_END
|
| 576 | |
| 118 | 577 | /* Device Interface */
|
| 119 | 578 | |
| 120 | | static DEVICE_START( conkort )
|
| 579 | static DEVICE_START( luxor_55_10828 )
|
| 121 | 580 | {
|
| 122 | 581 | conkort_t *conkort = device->token;
|
| 123 | 582 | char unique_tag[30];
|
| r3533 | r3534 | |
| 131 | 590 | |
| 132 | 591 | /* find our CPU */
|
| 133 | 592 | |
| 134 | | astring_printf(tempstring, "%s:%s", device->tag, "main");
|
| 593 | astring_printf(tempstring, "%s:%s", device->tag, CONKORT_Z80_TAG);
|
| 135 | 594 | conkort->cpunum = mame_find_cpu_index(device->machine, astring_c(tempstring));
|
| 136 | 595 | astring_free(tempstring);
|
| 137 | 596 | |
| r3533 | r3534 | |
| 142 | 601 | return DEVICE_START_OK;
|
| 143 | 602 | }
|
| 144 | 603 | |
| 145 | | static DEVICE_SET_INFO( conkort )
|
| 604 | static DEVICE_SET_INFO( luxor_55_10828 )
|
| 146 | 605 | {
|
| 147 | 606 | switch (state)
|
| 148 | 607 | {
|
| r3533 | r3534 | |
| 150 | 609 | }
|
| 151 | 610 | }
|
| 152 | 611 | |
| 153 | | DEVICE_GET_INFO( conkort )
|
| 612 | DEVICE_GET_INFO( luxor_55_10828 )
|
| 154 | 613 | {
|
| 155 | 614 | switch (state)
|
| 156 | 615 | {
|
| r3533 | r3534 | |
| 160 | 619 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(conkort_t); break;
|
| 161 | 620 | |
| 162 | 621 | /* --- the following bits of info are returned as pointers --- */
|
| 163 | | case DEVINFO_PTR_ROM_REGION: info->romregion = rom_conkort; break;
|
| 164 | | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = machine_config_conkort; break;
|
| 622 | case DEVINFO_PTR_ROM_REGION: info->romregion = rom_l5510828; break;
|
| 623 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = machine_config_luxor_55_10828; break;
|
| 165 | 624 | |
| 166 | 625 | /* --- the following bits of info are returned as pointers to data or functions --- */
|
| 167 | | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(conkort); break;
|
| 168 | | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(conkort); break;
|
| 626 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(luxor_55_10828); break;
|
| 627 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(luxor_55_10828); break;
|
| 169 | 628 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 170 | 629 | case DEVINFO_FCT_RESET: /* Nothing */ break;
|
| 171 | 630 | |
| 172 | 631 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 173 | | case DEVINFO_STR_NAME: info->s = "Luxor Conkort 55-21046"; break;
|
| 632 | case DEVINFO_STR_NAME: info->s = "Luxor 55 10828"; break;
|
| 174 | 633 | case DEVINFO_STR_FAMILY: info->s = "Luxor ABC"; break;
|
| 175 | 634 | case DEVINFO_STR_VERSION: info->s = "1.0"; break;
|
| 176 | 635 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break;
|
| 177 | 636 | case DEVINFO_STR_CREDITS: info->s = "Copyright the MESS Team"; break;
|
| 178 | 637 | }
|
| 179 | 638 | }
|
| 639 | |
| 640 | static DEVICE_START( luxor_55_21046 )
|
| 641 | {
|
| 642 | conkort_t *conkort = device->token;
|
| 643 | char unique_tag[30];
|
| 644 | astring *tempstring = astring_alloc();
|
| 645 | |
| 646 | /* validate arguments */
|
| 647 | |
| 648 | assert(device->machine != NULL);
|
| 649 | assert(device->tag != NULL);
|
| 650 | assert(strlen(device->tag) < 20);
|
| 651 | |
| 652 | /* find our CPU */
|
| 653 | |
| 654 | astring_printf(tempstring, "%s:%s", device->tag, CONKORT_Z80_TAG);
|
| 655 | conkort->cpunum = mame_find_cpu_index(device->machine, astring_c(tempstring));
|
| 656 | astring_free(tempstring);
|
| 657 | |
| 658 | /* register for state saving */
|
| 659 | |
| 660 | state_save_combine_module_and_tag(unique_tag, "conkort", device->tag);
|
| 661 | |
| 662 | return DEVICE_START_OK;
|
| 663 | }
|
| 664 | |
| 665 | static DEVICE_SET_INFO( luxor_55_21046 )
|
| 666 | {
|
| 667 | switch (state)
|
| 668 | {
|
| 669 | /* no parameters to set */
|
| 670 | }
|
| 671 | }
|
| 672 | |
| 673 | DEVICE_GET_INFO( luxor_55_21046 )
|
| 674 | {
|
| 675 | switch (state)
|
| 676 | {
|
| 677 | /* --- the following bits of info are returned as 64-bit signed integers --- */
|
| 678 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break;
|
| 679 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break;
|
| 680 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(conkort_t); break;
|
| 681 | |
| 682 | /* --- the following bits of info are returned as pointers --- */
|
| 683 | case DEVINFO_PTR_ROM_REGION: info->romregion = rom_l5521046; break;
|
| 684 | case DEVINFO_PTR_MACHINE_CONFIG: info->machine_config = machine_config_luxor_55_21046; break;
|
| 685 | |
| 686 | /* --- the following bits of info are returned as pointers to data or functions --- */
|
| 687 | 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;
|
| 689 | case DEVINFO_FCT_STOP: /* Nothing */ break;
|
| 690 | case DEVINFO_FCT_RESET: /* Nothing */ break;
|
| 691 | |
| 692 | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 693 | case DEVINFO_STR_NAME: info->s = "Luxor Conkort 55 21046"; break;
|
| 694 | case DEVINFO_STR_FAMILY: info->s = "Luxor ABC"; break;
|
| 695 | case DEVINFO_STR_VERSION: info->s = "1.0"; break;
|
| 696 | case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break;
|
| 697 | case DEVINFO_STR_CREDITS: info->s = "Copyright the MESS Team"; break;
|
| 698 | }
|
| 699 | }
|