Previous 15994 Revisions Next

r5528 Saturday 29th August, 2009 at 15:33:33 UTC by Angelo Salese
[X1]: Fixed a bug with PCG display
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5527r5528
191191            {
192192               for(xi=0;xi<8*(width+1);xi+=(width+1))
193193               {
194                  pen[0] = PCG_RAM[((tile*8)+yi)+0x0000]>>(7-xi) & (pen_mask & 1)>>0;
195                  pen[1] = PCG_RAM[((tile*8)+yi)+0x0800]>>(7-xi) & (pen_mask & 2)>>1;
196                  pen[2] = PCG_RAM[((tile*8)+yi)+0x1000]>>(7-xi) & (pen_mask & 4)>>2;
194                  pen[0] = PCG_RAM[((tile*8)+yi/(height+1))+0x0000]>>(7-xi/(width+1)) & (pen_mask & 1)>>0;
195                  pen[1] = PCG_RAM[((tile*8)+yi/(height+1))+0x0800]>>(7-xi/(width+1)) & (pen_mask & 2)>>1;
196                  pen[2] = PCG_RAM[((tile*8)+yi/(height+1))+0x1000]>>(7-xi/(width+1)) & (pen_mask & 4)>>2;
197197
198198                  pcg_pen = pen[2]<<2|pen[1]<<1|pen[0]<<0;
199199
r5527r5528
550550   }
551551}
552552
553static READ8_HANDLER( x1_clr_r )
554{
555   //memset(gfx_bitmap_ram,0x00,0xc000);
556
557   return 0xff;
558}
559
553560static READ8_HANDLER( x1_io_r )
554561{
555562   io_bank_mode = 0; //any read disables the extended mode.
556563
557   if(offset >= 0x0704 && offset <= 0x0707)   { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x0704); }
564   if(offset >= 0x0704 && offset <= 0x0707)       { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x0704); }
565   else if(offset == 0x07d0)                       { return x1_clr_r(space, 0); }
558566   else if(offset == 0x0e03)                       { return x1_rom_r(space, 0); }
559567   else if(offset >= 0x0ff8 && offset <= 0x0fff)   { return x1_fdc_r(space, offset-0xff8); }
560568   else if(offset >= 0x1900 && offset <= 0x19ff)   { return sub_io_r(space, 0); }
r5527r5528
674682{
675683   8,8,
676684   RGN_FRAC(1,3),
677   1,
685   3,
678686   { RGN_FRAC(2,3),RGN_FRAC(1,3),RGN_FRAC(0,3) },
679687   { 0, 1, 2, 3, 4, 5, 6, 7 },
680688   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },

Previous 15994 Revisions Next


© 1998-2018 The MESS Team