src/mess/drivers/atom.c
| r11336 | r11337 | |
| 107 | 107 | |
| 108 | 108 | */ |
| 109 | 109 | |
| 110 | | #include "emu.h" |
| 111 | 110 | #include "includes/atom.h" |
| 112 | | #include "cpu/m6502/m6502.h" |
| 113 | | #include "imagedev/cartslot.h" |
| 114 | | #include "imagedev/cassette.h" |
| 115 | | #include "imagedev/flopdrv.h" |
| 116 | | #include "machine/ram.h" |
| 117 | | #include "imagedev/snapquik.h" |
| 118 | | #include "formats/atom_atm.h" |
| 119 | | #include "formats/atom_tap.h" |
| 120 | | #include "formats/basicdsk.h" |
| 121 | | #include "formats/uef_cas.h" |
| 122 | | #include "machine/ctronics.h" |
| 123 | | #include "machine/6522via.h" |
| 124 | | #include "machine/i8255.h" |
| 125 | | #include "machine/i8271.h" |
| 126 | | #include "sound/speaker.h" |
| 127 | | #include "video/m6847.h" |
| 128 | 111 | |
| 129 | 112 | /*************************************************************************** |
| 130 | 113 | READ/WRITE HANDLERS |
| r11336 | r11337 | |
| 134 | 117 | bankswitch - EPROM bankswitch |
| 135 | 118 | -------------------------------------------------*/ |
| 136 | 119 | |
| 137 | | static void bankswitch(running_machine &machine) |
| 120 | void atom_state::bankswitch() |
| 138 | 121 | { |
| 139 | | atom_state *state = machine.driver_data<atom_state>(); |
| 140 | | address_space *program = machine.device(SY6502_TAG)->memory().space(AS_PROGRAM); |
| 122 | address_space *program = m_maincpu->memory().space(AS_PROGRAM); |
| 141 | 123 | |
| 142 | | UINT8 *eprom = machine.region("a000")->base() + (state->m_eprom << 12); |
| 124 | UINT8 *eprom = machine().region("a000")->base() + (m_eprom << 12); |
| 143 | 125 | |
| 144 | 126 | program->install_rom(0xa000, 0xafff, eprom); |
| 145 | 127 | } |
| r11336 | r11337 | |
| 148 | 130 | eprom_r - EPROM slot select read |
| 149 | 131 | -------------------------------------------------*/ |
| 150 | 132 | |
| 151 | | static READ8_HANDLER( eprom_r ) |
| 133 | READ8_MEMBER( atom_state::eprom_r ) |
| 152 | 134 | { |
| 153 | | atom_state *state = space->machine().driver_data<atom_state>(); |
| 154 | | |
| 155 | | return state->m_eprom; |
| 135 | return m_eprom; |
| 156 | 136 | } |
| 157 | 137 | |
| 158 | 138 | /*------------------------------------------------- |
| 159 | 139 | eprom_w - EPROM slot select write |
| 160 | 140 | -------------------------------------------------*/ |
| 161 | 141 | |
| 162 | | static WRITE8_HANDLER( eprom_w ) |
| 142 | WRITE8_MEMBER( atom_state::eprom_w ) |
| 163 | 143 | { |
| 164 | 144 | /* |
| 165 | 145 | |
| r11336 | r11337 | |
| 176 | 156 | |
| 177 | 157 | */ |
| 178 | 158 | |
| 179 | | atom_state *state = space->machine().driver_data<atom_state>(); |
| 180 | | |
| 181 | 159 | /* block A */ |
| 182 | | state->m_eprom = data & 0x0f; |
| 160 | m_eprom = data & 0x0f; |
| 183 | 161 | |
| 184 | 162 | /* TODO block E */ |
| 185 | 163 | |
| 186 | | bankswitch(space->machine()); |
| 164 | bankswitch(); |
| 187 | 165 | } |
| 188 | 166 | |
| 189 | 167 | /*************************************************************************** |
| r11336 | r11337 | |
| 194 | 172 | ADDRESS_MAP( atom_mem ) |
| 195 | 173 | -------------------------------------------------*/ |
| 196 | 174 | |
| 197 | | static ADDRESS_MAP_START( atom_mem, AS_PROGRAM, 8 ) |
| 175 | static ADDRESS_MAP_START( atom_mem, AS_PROGRAM, 8, atom_state ) |
| 198 | 176 | AM_RANGE(0x0000, 0x09ff) AM_RAM |
| 199 | | AM_RANGE(0x0a00, 0x0a03) AM_MIRROR(0x1f8) AM_DEVREADWRITE(I8271_TAG, i8271_r, i8271_w) |
| 200 | | AM_RANGE(0x0a04, 0x0a04) AM_MIRROR(0x1f8) AM_DEVREADWRITE(I8271_TAG, i8271_data_r, i8271_data_w) |
| 177 | AM_RANGE(0x0a00, 0x0a03) AM_MIRROR(0x1f8) AM_DEVREADWRITE_LEGACY(I8271_TAG, i8271_r, i8271_w) |
| 178 | AM_RANGE(0x0a04, 0x0a04) AM_MIRROR(0x1f8) AM_DEVREADWRITE_LEGACY(I8271_TAG, i8271_data_r, i8271_data_w) |
| 201 | 179 | AM_RANGE(0x0a05, 0x7fff) AM_RAM |
| 202 | | AM_RANGE(0x8000, 0x97ff) AM_RAM AM_BASE_MEMBER(atom_state, m_video_ram) |
| 180 | AM_RANGE(0x8000, 0x97ff) AM_RAM AM_BASE(m_video_ram) |
| 203 | 181 | AM_RANGE(0x9800, 0x9fff) AM_RAM |
| 204 | 182 | AM_RANGE(0xa000, 0xafff) AM_ROM AM_REGION("a000", 0) |
| 205 | | AM_RANGE(0xb000, 0xb003) AM_MIRROR(0x3fc) AM_DEVREADWRITE_MODERN(INS8255_TAG, i8255_device, read, write) |
| 206 | | // AM_RANGE(0xb400, 0xb403) AM_DEVREADWRITE(MC6854_TAG, mc6854_r, mc6854_w) |
| 183 | AM_RANGE(0xb000, 0xb003) AM_MIRROR(0x3fc) AM_DEVREADWRITE(INS8255_TAG, i8255_device, read, write) |
| 184 | // AM_RANGE(0xb400, 0xb403) AM_DEVREADWRITE_LEGACY(MC6854_TAG, mc6854_r, mc6854_w) |
| 207 | 185 | // AM_RANGE(0xb404, 0xb404) AM_READ_PORT("ECONET") |
| 208 | | AM_RANGE(0xb800, 0xb80f) AM_MIRROR(0x3f0) AM_DEVREADWRITE_MODERN(R6522_TAG, via6522_device, read, write) |
| 186 | AM_RANGE(0xb800, 0xb80f) AM_MIRROR(0x3f0) AM_DEVREADWRITE(R6522_TAG, via6522_device, read, write) |
| 209 | 187 | AM_RANGE(0xc000, 0xffff) AM_ROM AM_REGION(SY6502_TAG, 0) |
| 210 | 188 | ADDRESS_MAP_END |
| 211 | 189 | |
| r11336 | r11337 | |
| 213 | 191 | ADDRESS_MAP( atomeb_mem ) |
| 214 | 192 | -------------------------------------------------*/ |
| 215 | 193 | |
| 216 | | static ADDRESS_MAP_START( atomeb_mem, AS_PROGRAM, 8 ) |
| 194 | static ADDRESS_MAP_START( atomeb_mem, AS_PROGRAM, 8, atom_state ) |
| 217 | 195 | AM_IMPORT_FROM(atom_mem) |
| 218 | 196 | AM_RANGE(0xbfff, 0xbfff) AM_READWRITE(eprom_r, eprom_w) |
| 219 | 197 | ADDRESS_MAP_END |
| r11336 | r11337 | |
| 364 | 342 | SCREEN_UPDATE( atom ) |
| 365 | 343 | -------------------------------------------------*/ |
| 366 | 344 | |
| 367 | | static SCREEN_UPDATE( atom ) |
| 345 | bool atom_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect) |
| 368 | 346 | { |
| 369 | | atom_state *state = screen->machine().driver_data<atom_state>(); |
| 370 | | |
| 371 | | return mc6847_update(state->m_mc6847, bitmap, cliprect); |
| 347 | return mc6847_update(m_vdg, &bitmap, &cliprect); |
| 372 | 348 | } |
| 373 | 349 | |
| 374 | 350 | /*************************************************************************** |
| r11336 | r11337 | |
| 379 | 355 | I8255_INTERFACE( ppi_intf ) |
| 380 | 356 | -------------------------------------------------*/ |
| 381 | 357 | |
| 382 | | static WRITE8_DEVICE_HANDLER( ppi_pa_w ) |
| 358 | WRITE8_MEMBER( atom_state::ppi_pa_w ) |
| 383 | 359 | { |
| 384 | 360 | /* |
| 385 | 361 | |
| r11336 | r11337 | |
| 396 | 372 | |
| 397 | 373 | */ |
| 398 | 374 | |
| 399 | | atom_state *state = device->machine().driver_data<atom_state>(); |
| 400 | | |
| 401 | 375 | /* keyboard column */ |
| 402 | | state->m_keylatch = data & 0x0f; |
| 376 | m_keylatch = data & 0x0f; |
| 403 | 377 | |
| 404 | 378 | /* MC6847 */ |
| 405 | | mc6847_ag_w(state->m_mc6847, BIT(data, 4)); |
| 406 | | mc6847_gm0_w(state->m_mc6847, BIT(data, 5)); |
| 407 | | mc6847_gm1_w(state->m_mc6847, BIT(data, 6)); |
| 408 | | mc6847_gm2_w(state->m_mc6847, BIT(data, 7)); |
| 379 | mc6847_ag_w(m_vdg, BIT(data, 4)); |
| 380 | mc6847_gm0_w(m_vdg, BIT(data, 5)); |
| 381 | mc6847_gm1_w(m_vdg, BIT(data, 6)); |
| 382 | mc6847_gm2_w(m_vdg, BIT(data, 7)); |
| 409 | 383 | } |
| 410 | 384 | |
| 411 | | static READ8_DEVICE_HANDLER( ppi_pb_r ) |
| 385 | READ8_MEMBER( atom_state::ppi_pb_r ) |
| 412 | 386 | { |
| 413 | 387 | /* |
| 414 | 388 | |
| r11336 | r11337 | |
| 425 | 399 | |
| 426 | 400 | */ |
| 427 | 401 | |
| 428 | | atom_state *state = device->machine().driver_data<atom_state>(); |
| 429 | 402 | UINT8 data = 0xff; |
| 430 | 403 | |
| 431 | | switch (state->m_keylatch) |
| 404 | switch (m_keylatch) |
| 432 | 405 | { |
| 433 | | case 0: data &= input_port_read(device->machine(), "KEY0"); break; |
| 434 | | case 1: data &= input_port_read(device->machine(), "KEY1"); break; |
| 435 | | case 2: data &= input_port_read(device->machine(), "KEY2"); break; |
| 436 | | case 3: data &= input_port_read(device->machine(), "KEY3"); break; |
| 437 | | case 4: data &= input_port_read(device->machine(), "KEY4"); break; |
| 438 | | case 5: data &= input_port_read(device->machine(), "KEY5"); break; |
| 439 | | case 6: data &= input_port_read(device->machine(), "KEY6"); break; |
| 440 | | case 7: data &= input_port_read(device->machine(), "KEY7"); break; |
| 441 | | case 8: data &= input_port_read(device->machine(), "KEY8"); break; |
| 442 | | case 9: data &= input_port_read(device->machine(), "KEY9"); break; |
| 406 | case 0: data &= input_port_read(machine(), "KEY0"); break; |
| 407 | case 1: data &= input_port_read(machine(), "KEY1"); break; |
| 408 | case 2: data &= input_port_read(machine(), "KEY2"); break; |
| 409 | case 3: data &= input_port_read(machine(), "KEY3"); break; |
| 410 | case 4: data &= input_port_read(machine(), "KEY4"); break; |
| 411 | case 5: data &= input_port_read(machine(), "KEY5"); break; |
| 412 | case 6: data &= input_port_read(machine(), "KEY6"); break; |
| 413 | case 7: data &= input_port_read(machine(), "KEY7"); break; |
| 414 | case 8: data &= input_port_read(machine(), "KEY8"); break; |
| 415 | case 9: data &= input_port_read(machine(), "KEY9"); break; |
| 443 | 416 | } |
| 444 | 417 | |
| 445 | | data &= input_port_read(device->machine(), "KEY10"); |
| 418 | data &= input_port_read(machine(), "KEY10"); |
| 446 | 419 | |
| 447 | 420 | return data; |
| 448 | 421 | } |
| 449 | 422 | |
| 450 | | static READ8_DEVICE_HANDLER( ppi_pc_r ) |
| 423 | READ8_MEMBER( atom_state::ppi_pc_r ) |
| 451 | 424 | { |
| 452 | 425 | /* |
| 453 | 426 | |
| r11336 | r11337 | |
| 464 | 437 | |
| 465 | 438 | */ |
| 466 | 439 | |
| 467 | | atom_state *state = device->machine().driver_data<atom_state>(); |
| 468 | | |
| 469 | 440 | UINT8 data = 0; |
| 470 | 441 | |
| 471 | 442 | /* 2400 Hz input */ |
| 472 | | data |= state->m_hz2400 << 4; |
| 443 | data |= m_hz2400 << 4; |
| 473 | 444 | |
| 474 | 445 | /* cassette input */ |
| 475 | | data |= (cassette_input(state->m_cassette) > 0.0) << 5; |
| 446 | data |= (cassette_input(m_cassette) > 0.0) << 5; |
| 476 | 447 | |
| 477 | 448 | /* keyboard RPT */ |
| 478 | | data |= BIT(input_port_read(device->machine(), "RPT"), 0) << 6; |
| 449 | data |= BIT(input_port_read(machine(), "RPT"), 0) << 6; |
| 479 | 450 | |
| 480 | 451 | /* MC6847 FS */ |
| 481 | | data |= mc6847_fs_r(state->m_mc6847) << 7; |
| 452 | data |= mc6847_fs_r(m_vdg) << 7; |
| 482 | 453 | |
| 483 | 454 | return data; |
| 484 | 455 | } |
| 485 | 456 | |
| 486 | | static WRITE8_DEVICE_HANDLER( ppi_pc_w ) |
| 457 | WRITE8_MEMBER( atom_state::ppi_pc_w ) |
| 487 | 458 | { |
| 488 | 459 | /* |
| 489 | 460 | |
| r11336 | r11337 | |
| 500 | 471 | |
| 501 | 472 | */ |
| 502 | 473 | |
| 503 | | atom_state *state = device->machine().driver_data<atom_state>(); |
| 504 | | |
| 505 | 474 | /* cassette output */ |
| 506 | | state->m_pc0 = BIT(data, 0); |
| 507 | | state->m_pc1 = BIT(data, 1); |
| 475 | m_pc0 = BIT(data, 0); |
| 476 | m_pc1 = BIT(data, 1); |
| 508 | 477 | |
| 509 | 478 | /* speaker output */ |
| 510 | | speaker_level_w(device, BIT(data, 2)); |
| 479 | speaker_level_w(m_speaker, BIT(data, 2)); |
| 511 | 480 | |
| 512 | 481 | /* MC6847 CSS */ |
| 513 | | mc6847_css_w(state->m_mc6847, BIT(data, 3)); |
| 482 | mc6847_css_w(m_vdg, BIT(data, 3)); |
| 514 | 483 | } |
| 515 | 484 | |
| 516 | 485 | static I8255_INTERFACE( ppi_intf ) |
| 517 | 486 | { |
| 518 | 487 | DEVCB_NULL, |
| 519 | | DEVCB_HANDLER(ppi_pa_w), |
| 520 | | DEVCB_HANDLER(ppi_pb_r), |
| 488 | DEVCB_DRIVER_MEMBER(atom_state, ppi_pa_w), |
| 489 | DEVCB_DRIVER_MEMBER(atom_state, ppi_pb_r), |
| 521 | 490 | DEVCB_NULL, |
| 522 | | DEVCB_HANDLER(ppi_pc_r), |
| 523 | | DEVCB_DEVICE_HANDLER(SPEAKER_TAG, ppi_pc_w) |
| 491 | DEVCB_DRIVER_MEMBER(atom_state, ppi_pc_r), |
| 492 | DEVCB_DRIVER_MEMBER(atom_state, ppi_pc_w) |
| 524 | 493 | }; |
| 525 | 494 | |
| 526 | 495 | /*------------------------------------------------- |
| 527 | 496 | via6522_interface via_intf |
| 528 | 497 | -------------------------------------------------*/ |
| 529 | 498 | |
| 530 | | static READ8_DEVICE_HANDLER( atom_printer_busy ) |
| 499 | READ8_MEMBER( atom_state::printer_busy ) |
| 531 | 500 | { |
| 532 | | return centronics_busy_r(device) << 7; |
| 501 | return centronics_busy_r(m_centronics) << 7; |
| 533 | 502 | } |
| 534 | 503 | |
| 535 | | static WRITE8_DEVICE_HANDLER( atom_printer_data ) |
| 504 | WRITE8_MEMBER( atom_state::printer_data ) |
| 536 | 505 | { |
| 537 | | centronics_data_w(device, 0, data & 0x7f); |
| 506 | centronics_data_w(m_centronics, 0, data & 0x7f); |
| 538 | 507 | } |
| 539 | 508 | |
| 540 | 509 | static const via6522_interface via_intf = |
| 541 | 510 | { |
| 542 | | DEVCB_DEVICE_HANDLER(CENTRONICS_TAG, atom_printer_busy), |
| 511 | DEVCB_DRIVER_MEMBER(atom_state, printer_busy), |
| 543 | 512 | DEVCB_NULL, |
| 544 | 513 | DEVCB_NULL, |
| 545 | 514 | DEVCB_NULL, |
| 546 | 515 | DEVCB_NULL, |
| 547 | 516 | DEVCB_NULL, |
| 548 | | DEVCB_DEVICE_HANDLER(CENTRONICS_TAG, atom_printer_data), |
| 517 | DEVCB_DRIVER_MEMBER(atom_state, printer_data), |
| 549 | 518 | DEVCB_NULL, |
| 550 | 519 | DEVCB_NULL, |
| 551 | 520 | DEVCB_NULL, |
| r11336 | r11337 | |
| 558 | 527 | i8271_interface fdc_intf |
| 559 | 528 | -------------------------------------------------*/ |
| 560 | 529 | |
| 561 | | |
| 562 | 530 | static void atom_8271_interrupt_callback(device_t *device, int state) |
| 563 | 531 | { |
| 564 | 532 | atom_state *drvstate = device->machine().driver_data<atom_state>(); |
| r11336 | r11337 | |
| 574 | 542 | { |
| 575 | 543 | /* I'll pulse it because if I used hold-line I'm not sure |
| 576 | 544 | it would clear - to be checked */ |
| 577 | | cputag_set_input_line(device->machine(), SY6502_TAG, INPUT_LINE_NMI, PULSE_LINE); |
| 545 | drvstate->m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); |
| 578 | 546 | } |
| 579 | 547 | } |
| 580 | 548 | |
| r11336 | r11337 | |
| 595 | 563 | static const centronics_interface atom_centronics_config = |
| 596 | 564 | { |
| 597 | 565 | FALSE, |
| 598 | | DEVCB_DEVICE_LINE_MEMBER(R6522_TAG, via6522_device,write_ca1), |
| 566 | DEVCB_DEVICE_LINE_MEMBER(R6522_TAG, via6522_device, write_ca1), |
| 599 | 567 | DEVCB_NULL, |
| 600 | 568 | DEVCB_NULL |
| 601 | 569 | }; |
| r11336 | r11337 | |
| 626 | 594 | DEVCB_NULL, |
| 627 | 595 | FLOPPY_STANDARD_5_25_SSDD_40, |
| 628 | 596 | FLOPPY_OPTIONS_NAME(atom), |
| 629 | | NULL |
| 597 | "floppy_5_25" |
| 630 | 598 | }; |
| 631 | 599 | |
| 632 | 600 | /*------------------------------------------------- |
| r11336 | r11337 | |
| 658 | 626 | }; |
| 659 | 627 | |
| 660 | 628 | /*------------------------------------------------- |
| 661 | | mc6847_interface atom_mc6847_intf |
| 629 | mc6847_interface atom_vdg_intf |
| 662 | 630 | -------------------------------------------------*/ |
| 663 | 631 | |
| 664 | | static READ8_DEVICE_HANDLER( atom_mc6847_videoram_r ) |
| 632 | READ8_MEMBER( atom_state::vdg_videoram_r ) |
| 665 | 633 | { |
| 666 | | atom_state *state = device->machine().driver_data<atom_state>(); |
| 634 | mc6847_as_w(m_vdg, BIT(m_video_ram[offset], 6)); |
| 635 | mc6847_intext_w(m_vdg, BIT(m_video_ram[offset], 6)); |
| 636 | mc6847_inv_w(m_vdg, BIT(m_video_ram[offset], 7)); |
| 667 | 637 | |
| 668 | | mc6847_as_w(device, BIT(state->m_video_ram[offset], 6)); |
| 669 | | mc6847_intext_w(device, BIT(state->m_video_ram[offset], 6)); |
| 670 | | mc6847_inv_w(device, BIT(state->m_video_ram[offset], 7)); |
| 671 | | |
| 672 | | return state->m_video_ram[offset]; |
| 638 | return m_video_ram[offset]; |
| 673 | 639 | } |
| 674 | 640 | |
| 675 | | static const mc6847_interface atom_mc6847_intf = |
| 641 | static const mc6847_interface atom_vdg_intf = |
| 676 | 642 | { |
| 677 | | DEVCB_HANDLER(atom_mc6847_videoram_r), |
| 643 | DEVCB_DRIVER_MEMBER(atom_state, vdg_videoram_r), |
| 678 | 644 | DEVCB_NULL, |
| 679 | 645 | DEVCB_NULL, |
| 680 | 646 | DEVCB_NULL, |
| r11336 | r11337 | |
| 696 | 662 | MACHINE_START( atom ) |
| 697 | 663 | -------------------------------------------------*/ |
| 698 | 664 | |
| 699 | | static MACHINE_START( atom ) |
| 665 | void atom_state::machine_start() |
| 700 | 666 | { |
| 701 | | atom_state *state = machine.driver_data<atom_state>(); |
| 702 | | |
| 703 | 667 | /* this is temporary */ |
| 704 | 668 | /* Kees van Oss mentions that address 8-b are used for the random number |
| 705 | 669 | generator. I don't know if this is hardware, or random data because the |
| 706 | 670 | ram chips are not cleared at start-up. So at this time, these numbers |
| 707 | 671 | are poked into the memory to simulate it. When I have more details I will fix it */ |
| 708 | | machine.region(SY6502_TAG)->base()[0x08] = machine.rand() & 0x0ff; |
| 709 | | machine.region(SY6502_TAG)->base()[0x09] = machine.rand() & 0x0ff; |
| 710 | | machine.region(SY6502_TAG)->base()[0x0a] = machine.rand() & 0x0ff; |
| 711 | | machine.region(SY6502_TAG)->base()[0x0b] = machine.rand() & 0x0ff; |
| 712 | | |
| 713 | | /* find devices */ |
| 714 | | state->m_mc6847 = machine.device(MC6847_TAG); |
| 715 | | state->m_cassette = machine.device(CASSETTE_TAG); |
| 672 | machine().region(SY6502_TAG)->base()[0x08] = machine().rand() & 0x0ff; |
| 673 | machine().region(SY6502_TAG)->base()[0x09] = machine().rand() & 0x0ff; |
| 674 | machine().region(SY6502_TAG)->base()[0x0a] = machine().rand() & 0x0ff; |
| 675 | machine().region(SY6502_TAG)->base()[0x0b] = machine().rand() & 0x0ff; |
| 716 | 676 | } |
| 717 | 677 | |
| 718 | 678 | /*------------------------------------------------- |
| 719 | 679 | MACHINE_START( atomeb ) |
| 720 | 680 | -------------------------------------------------*/ |
| 721 | 681 | |
| 722 | | static MACHINE_START( atomeb ) |
| 682 | void atomeb_state::machine_start() |
| 723 | 683 | { |
| 724 | | MACHINE_START_CALL(atom); |
| 684 | atom_state::machine_start(); |
| 725 | 685 | |
| 726 | | bankswitch(machine); |
| 686 | bankswitch(); |
| 727 | 687 | } |
| 728 | 688 | |
| 729 | 689 | /*************************************************************************** |
| r11336 | r11337 | |
| 834 | 794 | MCFG_CPU_ADD(SY6502_TAG, M65C02, X2/4) |
| 835 | 795 | MCFG_CPU_PROGRAM_MAP(atom_mem) |
| 836 | 796 | |
| 837 | | MCFG_MACHINE_START( atom ) |
| 838 | | |
| 839 | 797 | /* video hardware */ |
| 840 | 798 | MCFG_SCREEN_ADD(SCREEN_TAG, RASTER) |
| 841 | 799 | MCFG_SCREEN_REFRESH_RATE(M6847_PAL_FRAMES_PER_SECOND) |
| 842 | 800 | MCFG_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 843 | 801 | MCFG_SCREEN_SIZE(320, 25+192+26) |
| 844 | 802 | MCFG_SCREEN_VISIBLE_AREA(0, 319, 1, 239) |
| 845 | | MCFG_SCREEN_UPDATE(atom) |
| 846 | 803 | |
| 847 | | MCFG_MC6847_ADD(MC6847_TAG, atom_mc6847_intf) |
| 804 | MCFG_MC6847_ADD(MC6847_TAG, atom_vdg_intf) |
| 848 | 805 | MCFG_MC6847_TYPE(M6847_VERSION_ORIGINAL_PAL) |
| 849 | 806 | |
| 850 | 807 | /* sound hardware */ |
| r11336 | r11337 | |
| 878 | 835 | MACHINE_DRIVER( atomeb ) |
| 879 | 836 | -------------------------------------------------*/ |
| 880 | 837 | |
| 881 | | static MACHINE_CONFIG_DERIVED( atomeb, atom ) |
| 838 | static MACHINE_CONFIG_DERIVED_CLASS( atomeb, atom, atomeb_state ) |
| 882 | 839 | MCFG_CPU_MODIFY(SY6502_TAG) |
| 883 | 840 | MCFG_CPU_PROGRAM_MAP(atomeb_mem) |
| 884 | 841 | |
| 885 | | MCFG_MACHINE_START(atomeb) |
| 886 | | |
| 887 | 842 | /* cartridges */ |
| 888 | 843 | MCFG_DEVICE_REMOVE("cart") |
| 889 | 844 | MCFG_ATOM_CARTSLOT_ADD("a0") |