Previous 15994 Revisions Next

r4167 Monday 19th January, 2009 at 01:07:41 UTC by Barry Rodewald
[X68000] Implemented text layer mask enable/disable.
[src/mess/video]x68k.c

src/mess/video/x68k.c
r4166r4167
561561   for(l=0;l<16;l++)
562562   {
563563      // apply text layer access mask
564      if((sys.crtc.reg[23] & (1<<l)) == 0)
564      if(sys.crtc.reg[21] & 0x0200)
565      {
566         if((sys.crtc.reg[23] & (1<<l)) == 0)
567            x68k_plot_pixel(x68k_text_bitmap,x+(15-l),y,0x100+x68k_get_text_pixel(offset,l));
568      }
569      else
565570         x68k_plot_pixel(x68k_text_bitmap,x+(15-l),y,0x100+x68k_get_text_pixel(offset,l));
566571   }
567572}
r4166r4167
620625   UINT16 text_mask;
621626
622627   text_mask = ~(sys.crtc.reg[23]) & mem_mask;
628
629   if(!(sys.crtc.reg[21] & 0x0200)) // text access mask enable
630      text_mask = 0xffff & mem_mask;
631
623632   mem_mask = text_mask;
624633
625634   if(sys.crtc.reg[21] & 0x0100)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team