trunk/src/mess/machine/c2040.c
| r20793 | r20794 | |
| 1591 | 1591 | // install image callbacks |
| 1592 | 1592 | m_unit[0].m_image = m_image0; |
| 1593 | 1593 | |
| 1594 | | floppy_install_unload_proc(m_image0, c2040_device::on_disk0_change); |
| 1595 | 1594 | floppy_install_load_proc(m_image0, c2040_device::on_disk0_change); |
| 1596 | 1595 | |
| 1597 | 1596 | if (m_image1) |
| 1598 | 1597 | { |
| 1599 | 1598 | m_unit[1].m_image = m_image1; |
| 1600 | 1599 | |
| 1601 | | floppy_install_unload_proc(m_image1, c2040_device::on_disk1_change); |
| 1602 | 1600 | floppy_install_load_proc(m_image1, c2040_device::on_disk1_change); |
| 1603 | 1601 | } |
| 1604 | 1602 | |
trunk/src/mess/includes/z80ne.h
| r20793 | r20794 | |
| 149 | 149 | required_device<cassette_image_device> m_cassette2; |
| 150 | 150 | optional_device<device_t> m_wd1771; |
| 151 | 151 | required_memory_region m_region_z80ne; |
| 152 | | required_memory_bank m_bank1; |
| 153 | | required_memory_bank m_bank2; |
| 152 | optional_memory_bank m_bank1; |
| 153 | optional_memory_bank m_bank2; |
| 154 | 154 | optional_memory_bank m_bank3; |
| 155 | 155 | optional_memory_bank m_bank4; |
| 156 | 156 | required_ioport m_io_row0; |
trunk/src/mess/drivers/atarist.c
| r20793 | r20794 | |
| 428 | 428 | |
| 429 | 429 | */ |
| 430 | 430 | |
| 431 | | UINT8 x = m_mousex->read_safe(0x00); |
| 432 | | UINT8 y = m_mousey->read_safe(0x00); |
| 431 | UINT8 x = m_mousex->read(); |
| 432 | UINT8 y = m_mousey->read(); |
| 433 | 433 | |
| 434 | 434 | if (m_ikbd_mouse_pc == 0) |
| 435 | 435 | { |
| r20793 | r20794 | |
| 547 | 547 | |
| 548 | 548 | */ |
| 549 | 549 | |
| 550 | | UINT8 data = m_joy1->read_safe(0xff) & 0x06; |
| 550 | UINT8 data = m_joy1 ? m_joy1->read() & 0x06 : 0x06; |
| 551 | 551 | |
| 552 | 552 | // serial receive |
| 553 | 553 | data |= m_ikbd_tx << 3; |
| r20793 | r20794 | |
| 634 | 634 | |
| 635 | 635 | if (m_ikbd_joy) return 0xff; |
| 636 | 636 | |
| 637 | | UINT8 data = m_joy0->read_safe(0xff); |
| 637 | UINT8 data = m_joy0 ? m_joy0->read() : 0xff; |
| 638 | 638 | |
| 639 | 639 | if ((m_config->read() & 0x01) == 0) |
| 640 | 640 | { |
| r20793 | r20794 | |
| 2200 | 2200 | m_maincpu->set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(st_state::atarist_int_ack),this)); |
| 2201 | 2201 | |
| 2202 | 2202 | // allocate timers |
| 2203 | | m_mouse_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(st_state::st_mouse_tick),this)); |
| 2204 | | m_mouse_timer->adjust(attotime::zero, 0, attotime::from_hz(500)); |
| 2203 | if(m_mousex) { |
| 2204 | m_mouse_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(st_state::st_mouse_tick),this)); |
| 2205 | m_mouse_timer->adjust(attotime::zero, 0, attotime::from_hz(500)); |
| 2206 | } |
| 2205 | 2207 | |
| 2206 | 2208 | // register for state saving |
| 2207 | 2209 | state_save(); |
trunk/src/mess/drivers/mac.c
| r20793 | r20794 | |
| 126 | 126 | // for portrait display, force monochrome by using the blue channel |
| 127 | 127 | if (m_model != MODEL_MAC_CLASSIC_II) |
| 128 | 128 | { |
| 129 | | // Color Classic has no MONTYPE so the safe read gets us 512x384, which is right |
| 130 | | if (m_montype->read_safe(2) == 1) |
| 129 | // Color Classic has no MONTYPE so the default gets us 512x384, which is right |
| 130 | if ((m_montype ? m_montype->read() : 2) == 1) |
| 131 | 131 | { |
| 132 | 132 | palette_set_color(space.machine(), m_rbv_clutoffs, MAKE_RGB(m_rbv_colors[2], m_rbv_colors[2], m_rbv_colors[2])); |
| 133 | 133 | m_rbv_palette[m_rbv_clutoffs] = MAKE_RGB(m_rbv_colors[2], m_rbv_colors[2], m_rbv_colors[2]); |
| r20793 | r20794 | |
| 162 | 162 | // for portrait display, force monochrome by using the blue channel |
| 163 | 163 | if (m_model != MODEL_MAC_CLASSIC_II) |
| 164 | 164 | { |
| 165 | | // Color Classic has no MONTYPE so the safe read gets us 512x384, which is right |
| 166 | | if (m_montype->read_safe(2) == 1) |
| 165 | // Color Classic has no MONTYPE so the default gets us 512x384, which is right |
| 166 | if ((m_montype ? m_montype->read() : 2) == 1) |
| 167 | 167 | { |
| 168 | 168 | palette_set_color(space.machine(), m_rbv_clutoffs, MAKE_RGB(m_rbv_colors[2], m_rbv_colors[2], m_rbv_colors[2])); |
| 169 | 169 | m_rbv_palette[m_rbv_clutoffs] = MAKE_RGB(m_rbv_colors[2], m_rbv_colors[2], m_rbv_colors[2]); |
| r20793 | r20794 | |
| 251 | 251 | if (offset == 0x10) |
| 252 | 252 | { |
| 253 | 253 | data &= ~0x38; |
| 254 | | data |= (m_montype->read_safe(2)<<3); |
| 254 | data |= ((m_montype ? m_montype->read() : 2)<<3); |
| 255 | 255 | // printf("rbv_r montype: %02x (PC %x)\n", data, space.cpu->safe_pc()); |
| 256 | 256 | } |
| 257 | 257 | |