Previous 15994 Revisions Next

r10122 Friday 21st January, 2011 at 16:06:22 UTC by Angelo Salese
[PC-8801]: 3bpp graphics mode doesn't actually want layer masking, fixes missing graphics in Bug Attack
[src/mess/drivers]pc8801.c

src/mess/drivers/pc8801.c
r10121r10122
3838   - Bokosuka Wars
3939   - Bouken Roman
4040   - Bruce Lee
41   - Bubblegum Crisis (after the logo)
4142   - Castle Excellent
4243   - Tobira wo Akete (random crashes in parent pc8801 only)
4344
r10121r10122
227228
228229            pen = 0;
229230
230            if(!(layer_mask & 2)) { pen |= ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; }
231            if(!(layer_mask & 4)) { pen |= ((gvram[count+0x4000] >> (7-xi)) & 1) << 1; }
232            if(!(layer_mask & 8)) { pen |= ((gvram[count+0x8000] >> (7-xi)) & 1) << 2; }
231            /* note: layer masking doesn't occur in 3bpp mode, Bug Attack relies on this */
232            pen |= ((gvram[count+0x0000] >> (7-xi)) & 1) << 0;
233            pen |= ((gvram[count+0x4000] >> (7-xi)) & 1) << 1;
234            pen |= ((gvram[count+0x8000] >> (7-xi)) & 1) << 2;
233235
234236            *BITMAP_ADDR16(bitmap, y, x+xi) = machine->pens[pen & 7];
235237         }
r10121r10122
289291         }
290292      }
291293   }
294   else
295      popmessage("200 lines B/W mode selected, check me");
292296}
293297
294298static UINT8 calc_cursor_pos(running_machine *machine,int x,int y,int yi)
r10121r10122
493497         draw_bitmap_1bpp(screen->machine,bitmap);
494498   }
495499
496   //popmessage("%02x %02x %02x %02x",layer_mask,dmac_mode,crtc.status,crtc.irq_mask);
500   popmessage("%02x %02x %02x %02x %02x",layer_mask,dmac_mode,crtc.status,crtc.irq_mask,gfx_ctrl);
497501
498502   if(!(layer_mask & 1) && dmac_mode & 4 && crtc.status & 0x10 && crtc.irq_mask == 3)
499503   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team