trunk/src/emu/video/scn2674.c
| r243820 | r243821 | |
| 694 | 694 | |
| 695 | 695 | for(int i = 0; i < m_IR5_character_per_row; i++) |
| 696 | 696 | { |
| 697 | | if((address & 0x3fff) == ((m_cursor_h << 8) | m_cursor_l)) |
| 698 | | m_cursor_on = true; |
| 697 | bool cursor_on = ((address & 0x3fff) == ((m_cursor_h << 8) | m_cursor_l)); |
| 699 | 698 | |
| 700 | 699 | if (!m_display_cb.isnull()) |
| 701 | 700 | m_display_cb(m_bitmap, |
| r243820 | r243821 | |
| 704 | 703 | tilerow, |
| 705 | 704 | space().read_byte(address), |
| 706 | 705 | address, |
| 707 | | (charrow >= m_IR6_cursor_first_scanline) && m_cursor_on, |
| 706 | (charrow >= m_IR6_cursor_first_scanline) && (charrow <= m_IR6_cursor_last_scanline) && cursor_on, |
| 708 | 707 | dw != 0, |
| 709 | 708 | m_gfx_enabled != 0, |
| 710 | 709 | charrow == m_IR7_cursor_underline_position, |
| r243820 | r243821 | |
| 715 | 714 | address = (m_IR9_display_buffer_first_address_MSB << 8) | m_IR8_display_buffer_first_address_LSB; |
| 716 | 715 | } |
| 717 | 716 | |
| 718 | | if(charrow == m_IR6_cursor_last_scanline) |
| 719 | | m_cursor_on = false; |
| 720 | | |
| 721 | 717 | if(m_gfx_enabled || (charrow == (m_IR0_scanline_per_char_row - 1))) |
| 722 | 718 | m_address = address; |
| 723 | 719 | } |
trunk/src/mess/drivers/pcd.c
| r243820 | r243821 | |
| 250 | 250 | |
| 251 | 251 | if((m_dskctl & 1) && floppy0) |
| 252 | 252 | m_fdc->set_floppy(floppy0); |
| 253 | if((m_dskctl & 2) && floppy1) |
| 254 | m_fdc->set_floppy(floppy1); |
| 253 | 255 | |
| 254 | 256 | if(floppy0) |
| 255 | 257 | { |
| r243820 | r243821 | |
| 292 | 294 | else |
| 293 | 295 | { |
| 294 | 296 | UINT8 data = m_charram[(m_vram[address] & 0xff) * 16 + linecount]; |
| 297 | if(cursor && blink) |
| 298 | data = 0xff; |
| 295 | 299 | for(int i = 0; i < 8; i++) |
| 296 | 300 | bitmap.pix32(y, x + i) = m_palette->pen((data & (1 << (7 - i))) ? 1 : 0); |
| 297 | 301 | } |
| r243820 | r243821 | |
| 397 | 401 | //************************************************************************** |
| 398 | 402 | |
| 399 | 403 | static ADDRESS_MAP_START( pcd_map, AS_PROGRAM, 16, pcd_state ) |
| 400 | | AM_RANGE(0x00000, 0x3ffff) AM_RAM // fixed 256k for now |
| 404 | AM_RANGE(0x00000, 0x7ffff) AM_RAM // fixed 512k for now |
| 401 | 405 | AM_RANGE(0xf0000, 0xf7fff) AM_READONLY AM_WRITE(vram_w) AM_SHARE("vram") |
| 402 | 406 | AM_RANGE(0xfc000, 0xfffff) AM_ROM AM_REGION("bios", 0) |
| 403 | 407 | AM_RANGE(0x00000, 0xfffff) AM_READWRITE8(nmi_io_r, nmi_io_w, 0xffff) |
| r243820 | r243821 | |
| 449 | 453 | MCFG_80186_TMROUT1_HANDLER(WRITELINE(pcd_state, i186_timer1_w)) |
| 450 | 454 | MCFG_80186_IRQ_SLAVE_ACK(READ8(pcd_state, irq_callback)) |
| 451 | 455 | |
| 456 | MCFG_CPU_ADD("graphics", I8741, XTAL_16MHz/2) |
| 457 | MCFG_DEVICE_DISABLE() |
| 458 | |
| 452 | 459 | MCFG_TIMER_DRIVER_ADD_PERIODIC("timer0_tick", pcd_state, timer0_tick, attotime::from_hz(XTAL_16MHz / 24)) // adjusted to pass post |
| 453 | 460 | |
| 454 | 461 | MCFG_PIC8259_ADD("pic1", DEVWRITELINE("maincpu", i80186_cpu_device, int0_w), VCC, NULL) |