src/mess/video/x68k.c
| r15048 | r15049 | |
| 731 | 731 | switch(offset) |
| 732 | 732 | { |
| 733 | 733 | case 0x400: |
| 734 | | state->m_bg0_8->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff); |
| 735 | | state->m_bg0_16->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff); |
| 734 | state->m_bg0_8->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 735 | state->m_bg0_16->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 736 | 736 | break; |
| 737 | 737 | case 0x401: |
| 738 | 738 | state->m_bg0_8->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff); |
| 739 | 739 | state->m_bg0_16->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff); |
| 740 | 740 | break; |
| 741 | 741 | case 0x402: |
| 742 | | state->m_bg1_8->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff); |
| 743 | | state->m_bg1_16->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff); |
| 742 | state->m_bg1_8->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 743 | state->m_bg1_16->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 744 | 744 | break; |
| 745 | 745 | case 0x403: |
| 746 | 746 | state->m_bg1_8->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff); |
| r15048 | r15049 | |
| 1224 | 1224 | { |
| 1225 | 1225 | if((state->m_spritereg[0x404] & 0x0030) == 0x10) // BG1 TXSEL |
| 1226 | 1226 | { |
| 1227 | | x68k_bg0->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin) & 0x3ff); |
| 1227 | x68k_bg0->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 1228 | 1228 | x68k_bg0->set_scrolly(0,(state->m_spritereg[0x403] - state->m_crtc.vbegin) & 0x3ff); |
| 1229 | 1229 | x68k_bg0->draw(bitmap,rect,0,0); |
| 1230 | 1230 | } |
| 1231 | 1231 | else |
| 1232 | 1232 | { |
| 1233 | | x68k_bg1->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin) & 0x3ff); |
| 1233 | x68k_bg1->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 1234 | 1234 | x68k_bg1->set_scrolly(0,(state->m_spritereg[0x403] - state->m_crtc.vbegin) & 0x3ff); |
| 1235 | 1235 | x68k_bg1->draw(bitmap,rect,0,0); |
| 1236 | 1236 | } |
| r15048 | r15049 | |
| 1240 | 1240 | { |
| 1241 | 1241 | if((state->m_spritereg[0x404] & 0x0006) == 0x02) // BG0 TXSEL |
| 1242 | 1242 | { |
| 1243 | | x68k_bg0->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin) & 0x3ff); |
| 1243 | x68k_bg0->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 1244 | 1244 | x68k_bg0->set_scrolly(0,(state->m_spritereg[0x401] - state->m_crtc.vbegin) & 0x3ff); |
| 1245 | 1245 | x68k_bg0->draw(bitmap,rect,0,0); |
| 1246 | 1246 | } |
| 1247 | 1247 | else |
| 1248 | 1248 | { |
| 1249 | | x68k_bg1->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin) & 0x3ff); |
| 1249 | x68k_bg1->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff); |
| 1250 | 1250 | x68k_bg1->set_scrolly(0,(state->m_spritereg[0x401] - state->m_crtc.vbegin) & 0x3ff); |
| 1251 | 1251 | x68k_bg1->draw(bitmap,rect,0,0); |
| 1252 | 1252 | } |