trunk/src/mess/video/upd7220.c
| r19498 | r19499 | |
| 412 | 412 | |
| 413 | 413 | if (LOG) |
| 414 | 414 | { |
| 415 | | logerror("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh)); |
| 416 | | logerror("uPD7220 '%s' Visible Area: (%u, %u) - (%u, %u)\n", tag(), visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y); |
| 415 | printf("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh)); |
| 416 | printf("Visible Area: (%u, %u) - (%u, %u)\n", visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y); |
| 417 | printf("%d %d %d %d\n",m_vs,m_vbp,m_al,m_vfp); |
| 417 | 418 | } |
| 418 | 419 | |
| 419 | 420 | if (m_m) |
| r19498 | r19499 | |
| 1570 | 1571 | addr = sad + (y * m_pitch); |
| 1571 | 1572 | |
| 1572 | 1573 | if (m_draw_text_cb) |
| 1573 | | m_draw_text_cb(this, bitmap, addr, y, wd, m_pitch, 0, 0, m_aw * 8 - 1, m_al - 1, m_lr, m_dc, m_ead); |
| 1574 | m_draw_text_cb(this, bitmap, addr, y, wd, m_pitch, m_lr, m_dc, m_ead); |
| 1574 | 1575 | } |
| 1575 | 1576 | |
| 1576 | 1577 | sy = y + 1; |
| r19498 | r19499 | |
| 1637 | 1638 | addr = (sad & 0x3ffff) + ((y / m_lr) * m_pitch); |
| 1638 | 1639 | |
| 1639 | 1640 | if (m_draw_text_cb) |
| 1640 | | m_draw_text_cb(this, bitmap, addr, (y + tsy) / m_lr, wd, m_pitch, 0, 0, m_aw * 8 - 1, len + bsy - 1, m_lr, m_dc, m_ead); |
| 1641 | m_draw_text_cb(this, bitmap, addr, (y + tsy) / m_lr, wd, m_pitch, m_lr, m_dc, m_ead); |
| 1641 | 1642 | } |
| 1642 | 1643 | } |
| 1643 | 1644 | } |
trunk/src/mess/video/upd7220.h
| r19498 | r19499 | |
| 67 | 67 | typedef void (*upd7220_display_pixels_func)(device_t *device, bitmap_rgb32 &bitmap, int y, int x, UINT32 address); |
| 68 | 68 | #define UPD7220_DISPLAY_PIXELS(name) void name(device_t *device, bitmap_rgb32 &bitmap, int y, int x, UINT32 address) |
| 69 | 69 | |
| 70 | | typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y,int lr, int cursor_on, int cursor_addr); |
| 71 | | #define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y,int lr, int cursor_on, int cursor_addr) |
| 70 | typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch, int lr, int cursor_on, int cursor_addr); |
| 71 | #define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch, int lr, int cursor_on, int cursor_addr) |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | // ======================> upd7220_interface |
trunk/src/mess/drivers/pc9801.c
| r19498 | r19499 | |
| 59 | 59 | - Apple Club 1: how to pass an hand? |
| 60 | 60 | (Applesauce Pirates) |
| 61 | 61 | |
| 62 | | - Brandish 2: Intro needs some window masking effects; |
| 63 | | - Dragon Buster: missing bitplanes for the PCG (or not?), slight issue with window masking; |
| 62 | - Brandish 2: Intro needs some window masking effects (or not?); |
| 63 | - Dragon Buster: slight issue with window masking; |
| 64 | 64 | - Far Side Moon: doesn't detect sound board (tied to 0x00ec ports) |
| 65 | 65 | - Jan Borg Suzume: gets stuck at a pic8259 read; |
| 66 | 66 | - Jump Hero: right status display isn't shown during gameplay (changes the mode dynamically?) |
| r19498 | r19499 | |
| 2855 | 2855 | PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y ) PORT_RESET PORT_SENSITIVITY(30) PORT_KEYDELTA(30) |
| 2856 | 2856 | |
| 2857 | 2857 | PORT_START("MOUSE_B") |
| 2858 | | PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2858 | PORT_BIT(0x0f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2859 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 2859 | 2860 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_CODE(MOUSECODE_BUTTON3) PORT_NAME("Mouse Middle Button") |
| 2860 | 2861 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_NAME("Mouse Right Button") |
| 2861 | 2862 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_NAME("Mouse Left Button") |
| r19498 | r19499 | |
| 3234 | 3235 | UINT8 isporthi; |
| 3235 | 3236 | const char *const mousenames[] = { "MOUSE_X", "MOUSE_Y" }; |
| 3236 | 3237 | |
| 3237 | | res = ioport("MOUSE_B")->read() & 0xe0; |
| 3238 | res = ioport("MOUSE_B")->read() & 0xf0; |
| 3238 | 3239 | isporthi = ((m_mouse.control & 0x20) >> 5)*4; |
| 3239 | 3240 | |
| 3240 | 3241 | if((m_mouse.control & 0x80) == 0) |