Previous 15994 Revisions Next

r7921 Wednesday 28th April, 2010 at 08:50:59 UTC by Barry Rodewald
[FMTOWNS] Improved address offsets for 256-colour layers, Flashback is now playable.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r7920r7921
10041004      if(!(towns_video_reg[0] & 0x10))
10051005         return;
10061006      if(!(towns_crtc_reg[28] & 0x10))
1007         off += towns_crtc_reg[21];  // initial offset
1007         off += towns_crtc_reg[21] << 3;  // initial offset
10081008      else
10091009      {
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));
10111011         off += scroll;
10121012      }
10131013      off += (towns_crtc_reg[11] - towns_crtc_reg[22]);
r7920r7921
10171017   else
10181018   {
10191019      if(!(towns_crtc_reg[28] & 0x20))
1020         off += towns_crtc_reg[17];  // initial offset
1020         off += towns_crtc_reg[17] << 3;  // initial offset
10211021      else
10221022      {
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));
10241024         off += scroll;
10251025      }
10261026      off += (towns_crtc_reg[9] - towns_crtc_reg[18]);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team