src/mess/drivers/x1.c
| r5527 | r5528 | |
| 191 | 191 | { |
| 192 | 192 | for(xi=0;xi<8*(width+1);xi+=(width+1)) |
| 193 | 193 | { |
| 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; |
| 197 | 197 | |
| 198 | 198 | pcg_pen = pen[2]<<2|pen[1]<<1|pen[0]<<0; |
| 199 | 199 | |
| r5527 | r5528 | |
| 550 | 550 | } |
| 551 | 551 | } |
| 552 | 552 | |
| 553 | static READ8_HANDLER( x1_clr_r ) |
| 554 | { |
| 555 | //memset(gfx_bitmap_ram,0x00,0xc000); |
| 556 | |
| 557 | return 0xff; |
| 558 | } |
| 559 | |
| 553 | 560 | static READ8_HANDLER( x1_io_r ) |
| 554 | 561 | { |
| 555 | 562 | io_bank_mode = 0; //any read disables the extended mode. |
| 556 | 563 | |
| 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); } |
| 558 | 566 | else if(offset == 0x0e03) { return x1_rom_r(space, 0); } |
| 559 | 567 | else if(offset >= 0x0ff8 && offset <= 0x0fff) { return x1_fdc_r(space, offset-0xff8); } |
| 560 | 568 | else if(offset >= 0x1900 && offset <= 0x19ff) { return sub_io_r(space, 0); } |
| r5527 | r5528 | |
| 674 | 682 | { |
| 675 | 683 | 8,8, |
| 676 | 684 | RGN_FRAC(1,3), |
| 677 | | 1, |
| 685 | 3, |
| 678 | 686 | { RGN_FRAC(2,3),RGN_FRAC(1,3),RGN_FRAC(0,3) }, |
| 679 | 687 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 680 | 688 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |