trunk/src/mame/drivers/coolridr.c
| r21390 | r21391 | |
| 484 | 484 | }; |
| 485 | 485 | |
| 486 | 486 | #define PRINT_BLIT_STUFF \ |
| 487 | | printf("type blit %08x %08x(%d, %03x) %08x(%02x, %03x) %08x(%06x) %08x(%08x, %d, %d, %d) %08x(%d,%d) %04x %04x %04x %04x %08x %08x %d %d\n", blit0, blit1_unused,b1mode,b1colorNumber, blit2_unused,b2tpen,b2colorNumber, blit3_unused,b3romoffset, blit4_unused, blit4, blit_flipy,blit_rotate, blit_flipx, blit5_unused, indirect_tile_enable, indirect_zoom_enable, vCellCount, hCellCount, vZoom, hZoom, blit10, data, vPosition, hPosition); \ |
| 487 | printf("type blit %08x %08x(%d, %03x) %08x(%02x, %03x) %08x(%06x) %08x(%08x, %d, %d, %d) %08x(%d,%d) %04x %04x %04x %04x %08x %08x %d %d\n", blit0, blit1_unused,b1mode,b1colorNumber, blit2_unused,b2tpen,b2colorNumber, blit3_unused,b3romoffset, blit4_unused, blit4, blit_flipy,blit_rotate, blit_flipx, blit5_unused, indirect_tile_enable, indirect_zoom_enable, vCellCount, hCellCount, vZoom, hZoom, blit10, textlookup, vPosition, hPosition); \ |
| 488 | 488 | |
| 489 | 489 | |
| 490 | 490 | /* video */ |
| r21390 | r21391 | |
| 794 | 794 | // seems to be more complex than just transparency |
| 795 | 795 | UINT32 blit2_unused = m_spriteblit[2]&0xff80f800; |
| 796 | 796 | UINT32 b2tpen = (m_spriteblit[2] & 0x007f0000)>>16; |
| 797 | | // UINT32 b2colorNumber = (m_spriteblit[2] & 0x000001ff); |
| 797 | //UINT32 b2colorNumber = (m_spriteblit[2] & 0x000001ff); |
| 798 | 798 | |
| 799 | 799 | // if(b1colorNumber > 0x60 || b2colorNumber) |
| 800 | 800 | // printf("%08x %08x\n",b1colorNumber,b2colorNumber); |
| r21390 | r21391 | |
| 1026 | 1026 | |
| 1027 | 1027 | } |
| 1028 | 1028 | // printf("%08x %08x %08x %04x %04x\n",textlookup,m_spriteblit[3],b3romoffset,b1colorNumber,b2colorNumber); |
| 1029 | //PRINT_BLIT_STUFF |
| 1029 | 1030 | |
| 1030 | | |
| 1031 | 1031 | for (int h = 0; h < used_hCellCount; h++) |
| 1032 | 1032 | { |
| 1033 | 1033 | |
| r21390 | r21391 | |
| 1126 | 1126 | |
| 1127 | 1127 | while (data_written<256 && encodelength >=0) |
| 1128 | 1128 | { |
| 1129 | | tempshape[data_written] = m_rearranged_16bit_gfx[color_offs + rledata]; |
| 1129 | tempshape[data_written] = m_rearranged_16bit_gfx[color_offs + rledata + 8]; |
| 1130 | 1130 | encodelength--; |
| 1131 | 1131 | data_written++; |
| 1132 | 1132 | } |
| r21390 | r21391 | |
| 1136 | 1136 | { |
| 1137 | 1137 | int rledata = (compdata & 0x0ff); |
| 1138 | 1138 | // mm cccc cccc |
| 1139 | | tempshape[data_written] = m_rearranged_16bit_gfx[color_offs + rledata]; |
| 1139 | tempshape[data_written] = m_rearranged_16bit_gfx[color_offs + rledata + 0x48]; // +0x48 crt test end of blue, start of white |
| 1140 | 1140 | data_written++; |
| 1141 | 1141 | } |
| 1142 | 1142 | |