trunk/src/mame/drivers/coolridr.c
| r21263 | r21264 | |
| 507 | 507 | UINT32 coolridr_state::screen_update_coolridr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int which) |
| 508 | 508 | { |
| 509 | 509 | /* planes seems to basically be at 0x8000 and 0x28000... */ |
| 510 | | gfx_element *gfx = machine().gfx[2]; |
| 510 | gfx_element *gfx = machine().gfx[0]; |
| 511 | 511 | UINT32 count; |
| 512 | 512 | int y,x; |
| 513 | 513 | int color; |
| r21263 | r21264 | |
| 1501 | 1501 | gfx[offset*4+2] = (m_h1_charram[offset] & 0x0000ff00) >> 8; |
| 1502 | 1502 | gfx[offset*4+3] = (m_h1_charram[offset] & 0x000000ff) >> 0; |
| 1503 | 1503 | |
| 1504 | | machine().gfx[2]->mark_dirty(offset/64); //*4/256 |
| 1504 | machine().gfx[0]->mark_dirty(offset/64); //*4/256 |
| 1505 | 1505 | } |
| 1506 | 1506 | } |
| 1507 | 1507 | |
| r21263 | r21264 | |
| 1711 | 1711 | }; |
| 1712 | 1712 | |
| 1713 | 1713 | |
| 1714 | | #if 0 |
| 1715 | | static const gfx_layout test = |
| 1716 | | { |
| 1717 | | 8,8, |
| 1718 | | RGN_FRAC(1,1), |
| 1719 | | 4, |
| 1720 | | { 0,1,2,3 }, |
| 1721 | | { 0*4,1*4,2*4,3*4,4*4,5*4,6*4, 7*4 }, |
| 1722 | | { 0*8*4, 1*8*4, 2*8*4, 3*8*4, 4*8*4, 5*8*4, 6*8*4, 7*8*4 }, |
| 1723 | | 8*8*4 |
| 1724 | | }; |
| 1725 | | #endif |
| 1726 | | |
| 1727 | | |
| 1728 | | |
| 1729 | | |
| 1730 | 1714 | static GFXDECODE_START( coolridr ) |
| 1731 | | // GFXDECODE_ENTRY( "maincpu_data", 0, tiles16x16_layout, 0, 16 ) |
| 1732 | | GFXDECODE_ENTRY( "gfx_data", 0, tiles16x16_layout, 0, 0x100 ) |
| 1733 | | GFXDECODE_ENTRY( "gfx5", 0, tiles16x16_layout, 0, 0x100 ) |
| 1734 | 1715 | GFXDECODE_ENTRY( "ram_gfx", 0, tiles16x16_layout, 0, 0x100 ) |
| 1735 | 1716 | GFXDECODE_END |
| 1736 | 1717 | |
| r21263 | r21264 | |
| 2152 | 2133 | |
| 2153 | 2134 | // memcpy(memregion("soundcpu")->base(), memregion("maincpu")->base()+0x100000, 0x80000); |
| 2154 | 2135 | // m_soundcpu->reset(); |
| 2155 | | m_compressedgfx = memregion( "gfx5" )->base(); |
| 2156 | | size_t size = memregion( "gfx5" )->bytes(); |
| 2136 | m_compressedgfx = memregion( "compressedgfx" )->base(); |
| 2137 | size_t size = memregion( "compressedgfx" )->bytes(); |
| 2157 | 2138 | |
| 2158 | 2139 | // we're expanding 10bit packed data to 16bits(10 used) |
| 2159 | 2140 | m_expanded_10bit_gfx = auto_alloc_array(machine(), UINT16, ((size/10)*16)/2); |
| r21263 | r21264 | |
| 2322 | 2303 | ROM_LOAD16_WORD_SWAP( "ep17662.12", 0x000000, 0x020000, CRC(50d66b1f) SHA1(f7b7f2f5b403a13b162f941c338a3e1207762a0b) ) |
| 2323 | 2304 | |
| 2324 | 2305 | /* these are compressed sprite data */ |
| 2325 | | ROM_REGION( 0x2800000, "gfx5", ROMREGION_ERASEFF ) |
| 2306 | ROM_REGION( 0x2800000, "compressedgfx", ROMREGION_ERASEFF ) |
| 2326 | 2307 | ROM_LOAD16_WORD_SWAP( "mpr-17644.ic5", 0x0000000, 0x0400000, CRC(80199c79) SHA1(e525d8ee9f9176101629853e50cca73b02b16a38) ) // 0004 |
| 2327 | 2308 | ROM_LOAD16_WORD_SWAP( "mpr-17643.ic4", 0x0400000, 0x0400000, CRC(5100f23b) SHA1(659c2300399ff1cbd24fb1eb18cfd6c26e06fd96) ) // 9000 |
| 2328 | 2309 | ROM_LOAD16_WORD_SWAP( "mpr-17642.ic3", 0x0800000, 0x0400000, CRC(1a5bcc73) SHA1(a7df04c0a326323ea185db5f55b3e0449d76c535) ) // 4900 |
| r21263 | r21264 | |
| 2368 | 2349 | machine().device("maincpu")->memory().space(AS_PROGRAM).install_read_handler(0x60d8894, 0x060d8897, read32_delegate(FUNC(coolridr_state::coolridr_hack2_r), this)); |
| 2369 | 2350 | } |
| 2370 | 2351 | |
| 2371 | | GAME( 1995, coolridr, 0, coolridr, coolridr, coolridr_state, coolridr, ROT0, "Sega", "Cool Riders",GAME_NOT_WORKING|GAME_NO_SOUND ) // region is set in test mode |
| 2352 | GAME( 1995, coolridr, 0, coolridr, coolridr, coolridr_state, coolridr, ROT0, "Sega", "Cool Riders",GAME_NOT_WORKING|GAME_NO_SOUND ) // region is set in test mode, this set is for Japan, USA and Export (all regions) |
| 2353 | |