src/mess/machine/wangpc_lvc.c
| r15326 | r15327 | |
| 43 | 43 | { |
| 44 | 44 | const rgb_t *palette = palette_entry_list_raw(bitmap.palette()); |
| 45 | 45 | |
| 46 | | offs_t scroll_y = (((m_scroll >> 8) + 0x15) & 0xff) * 0x140; |
| 46 | offs_t scroll_y = (((m_scroll >> 8) + 0x15) & 0xff) * 0x100; |
| 47 | 47 | |
| 48 | 48 | if (OPTION_80_COL) |
| 49 | 49 | { |
| 50 | 50 | for (int column = 0; column < x_count; column++) |
| 51 | 51 | { |
| 52 | | offs_t addr = scroll_y + ((m_scroll & 0x3f) << 1) + ((ma / 80) * 0x140) + (((ra & 0x0f) << 8) | ((column & 0x7f) << 1)); |
| 52 | offs_t addr = scroll_y + (m_scroll & 0x3f) + ((ma / 80) * 0x480) + (((ra & 0x0f) << 7) | (column & 0x7f)); |
| 53 | 53 | UINT16 data = m_video_ram[addr & 0x7fff]; |
| 54 | 54 | |
| 55 | 55 | for (int bit = 0; bit < 8; bit++) |
| r15326 | r15327 | |
| 65 | 65 | } |
| 66 | 66 | else |
| 67 | 67 | { |
| 68 | offs_t addr = scroll_y + ((m_scroll & 0x3f) << 1) + ((ma / 40) * 0x480) + (((ra & 0x0f) << 7)); |
| 69 | |
| 68 | 70 | for (int column = 0; column < x_count; column++) |
| 69 | 71 | { |
| 70 | | offs_t addr = scroll_y + ((m_scroll & 0x3f) << 2) + ((ma / 40) * 0x140) + (((ra & 0x0f) << 8) | ((column & 0x3f) << 2)); |
| 71 | 72 | UINT32 data = (m_video_ram[(addr + 1) & 0x7fff] << 16) | m_video_ram[addr & 0x7fff]; |
| 72 | 73 | |
| 73 | 74 | for (int bit = 0; bit < 8; bit++) |
| r15326 | r15327 | |
| 79 | 80 | |
| 80 | 81 | data <<= 1; |
| 81 | 82 | } |
| 83 | |
| 84 | addr += 2; |
| 82 | 85 | } |
| 83 | 86 | } |
| 84 | 87 | } |