trunk/src/mame/drivers/gunpey.c
| r21513 | r21514 | |
| 262 | 262 | |
| 263 | 263 | //UINT32 col = 0xffffff; |
| 264 | 264 | |
| 265 | | UINT32 val = (m_wram[count+1] << 16) | ((m_wram[count+2])); |
| 266 | | |
| 265 | // UINT32 val = (m_wram[count+1] << 16) | ((m_wram[count+2])); |
| 266 | |
| 267 | 267 | #ifdef USE_FAKE_ROM |
| 268 | 268 | int letter = -1; |
| 269 | 269 | |
| r21513 | r21514 | |
| 318 | 318 | if (val == 0xa080e03a) { letter = 'Z'; } |
| 319 | 319 | |
| 320 | 320 | #endif |
| 321 | | int xsource = ((val & 0x000000ff) << 4) | ((val & 0xf0000000) >> 28); |
| 322 | | int ysource = ((val & 0x0000f000) >> 10); |
| 321 | int xsource = ((m_wram[count+2] & 0x00ff) << 4) | ((m_wram[count+1] & 0xf000) >> 12); |
| 322 | int ysource = ((m_wram[count+2] & 0xf000) >> 12)| ((m_wram[count+3] & 0x00ff) << 4); |
| 323 | 323 | |
| 324 | //printf("%08x %04x %04x\n", val, m_wram[count+1],m_wram[count+2] ); |
| 325 | |
| 326 | // UINT16 xsource = (m_wram[count+2] & 0x00ff << 4) | (m_wram[count+1] & 0xf000 >> 12); |
| 327 | // UINT16 ysource = (m_wram[count+2] & 0xff00 >>8) | (m_wram[count+3] & 0x000f <<8); |
| 328 | |
| 329 | //xsource<<=1; |
| 330 | |
| 331 | |
| 324 | 332 | xsource<<=1; |
| 333 | ysource <<=2; |
| 325 | 334 | |
| 335 | |
| 336 | |
| 337 | |
| 326 | 338 | #ifdef USE_FAKE_ROM |
| 327 | 339 | if (letter != -1) |
| 328 | 340 | drawgfx_opaque(bitmap,cliprect,machine().gfx[1],letter,1,0,0,x,y); |