trunk/src/mame/drivers/coolridr.c
| r21398 | r21399 | |
| 800 | 800 | { |
| 801 | 801 | // b1colorNumber = space.machine().rand()&0xfff; |
| 802 | 802 | } |
| 803 | | |
| 804 | 803 | |
| 804 | |
| 805 | 805 | // if(b1colorNumber > 0x60 || b2colorNumber) |
| 806 | 806 | // printf("%08x %08x\n",b1colorNumber,b2colorNumber); |
| 807 | 807 | |
| r21398 | r21399 | |
| 1090 | 1090 | // these should be 'cell numbers' (tile numbers) which look up RLE data? |
| 1091 | 1091 | UINT32 spriteNumber = (m_expanded_10bit_gfx[ (b3romoffset) + (lookupnum<<1) +0 ] << 10) | (m_expanded_10bit_gfx[ (b3romoffset) + (lookupnum<<1) + 1 ]); |
| 1092 | 1092 | UINT16 tempshape[16*16]; |
| 1093 | | |
| 1093 | |
| 1094 | 1094 | int color_offs = (0x7b20 + (b1colorNumber & 0x7ff))*0x40 * 5; /* yes, * 5 */ |
| 1095 | 1095 | |
| 1096 | 1096 | // skip the decoding if it's the same tile as last time! |
| r21398 | r21399 | |
| 1581 | 1581 | src = (m_framebuffer_vram[(0+dma_index)/4] & 0x03ffffff); |
| 1582 | 1582 | dst = (m_framebuffer_vram[(4+dma_index)/4]); |
| 1583 | 1583 | size = m_framebuffer_vram[(8+dma_index)/4]; |
| 1584 | | /* |
| 1585 | | special: copy palette RAM to palette RAM (otherwise attract mode tries to read from tile data) |
| 1586 | | */ |
| 1587 | | if((src & 0x03f00000) == 0x03e00000) |
| 1588 | | src &= ~0x00200000; |
| 1584 | /* Note: there are also some reads at 0x3e00000. This tells us that the DMA thing actually mirrors at 0x3c00000 too. */ |
| 1589 | 1585 | if(dst & 0xfff00000) |
| 1590 | 1586 | printf("unk values to %02x dst %08x\n",cmd,dst); |
| 1591 | 1587 | dst &= 0x000fffff; |
| 1592 | | dst |= 0x03c00000; |
| 1588 | dst |= 0x03800000; |
| 1593 | 1589 | is_dma = 1; |
| 1594 | 1590 | //printf("%08x %08x %08x %02x\n",src,dst,size,cmd); |
| 1595 | 1591 | dma_index+=0xc; |
| r21398 | r21399 | |
| 1660 | 1656 | AM_RANGE(0x01000000, 0x01ffffff) AM_ROM AM_REGION("gfx_data",0x0000000) |
| 1661 | 1657 | |
| 1662 | 1658 | AM_RANGE(0x03000000, 0x030fffff) AM_RAM AM_SHARE("h1_vram")//bg vram TODO: fake region |
| 1663 | | AM_RANGE(0x03c00000, 0x03c0ffff) AM_RAM_WRITE(sysh1_pal_w) AM_SHARE("paletteram") |
| 1664 | | AM_RANGE(0x03e00000, 0x03efffff) AM_RAM_WRITE(sysh1_dma_w) AM_SHARE("fb_vram") |
| 1659 | AM_RANGE(0x03800000, 0x0380ffff) AM_RAM_WRITE(sysh1_pal_w) AM_SHARE("paletteram") |
| 1660 | AM_RANGE(0x03c00000, 0x03c1ffff) AM_MIRROR(0x00200000) AM_RAM_WRITE(sysh1_dma_w) AM_SHARE("fb_vram") /* mostly mapped at 0x03e00000 */ |
| 1665 | 1661 | |
| 1666 | 1662 | AM_RANGE(0x03f00000, 0x03f0ffff) AM_RAM AM_SHARE("share3") /*Communication area RAM*/ |
| 1667 | 1663 | AM_RANGE(0x03f40000, 0x03f4ffff) AM_RAM AM_SHARE("txt_vram")//text tilemap + "lineram" |