src/mess/video/fmtowns.c
| r7920 | r7921 | |
| 1004 | 1004 | if(!(towns_video_reg[0] & 0x10)) |
| 1005 | 1005 | return; |
| 1006 | 1006 | if(!(towns_crtc_reg[28] & 0x10)) |
| 1007 | | off += towns_crtc_reg[21]; // initial offset |
| 1007 | off += towns_crtc_reg[21] << 3; // initial offset |
| 1008 | 1008 | else |
| 1009 | 1009 | { |
| 1010 | | scroll = ((towns_crtc_reg[21] & 0xfc00) << 2) | (((towns_crtc_reg[21] & 0x3ff) << 2)); |
| 1010 | scroll = ((towns_crtc_reg[21] & 0xfc00) << 3) | (((towns_crtc_reg[21] & 0x3ff) << 3)); |
| 1011 | 1011 | off += scroll; |
| 1012 | 1012 | } |
| 1013 | 1013 | off += (towns_crtc_reg[11] - towns_crtc_reg[22]); |
| r7920 | r7921 | |
| 1017 | 1017 | else |
| 1018 | 1018 | { |
| 1019 | 1019 | if(!(towns_crtc_reg[28] & 0x20)) |
| 1020 | | off += towns_crtc_reg[17]; // initial offset |
| 1020 | off += towns_crtc_reg[17] << 3; // initial offset |
| 1021 | 1021 | else |
| 1022 | 1022 | { |
| 1023 | | scroll = ((towns_crtc_reg[17] & 0xfc00) << 2) | (((towns_crtc_reg[17] & 0x3ff) << 2)); |
| 1023 | scroll = ((towns_crtc_reg[17] & 0xfc00) << 3) | (((towns_crtc_reg[17] & 0x3ff) << 3)); |
| 1024 | 1024 | off += scroll; |
| 1025 | 1025 | } |
| 1026 | 1026 | off += (towns_crtc_reg[9] - towns_crtc_reg[18]); |