trunk/src/emu/video/mb_vcu.c
| r26257 | r26258 | |
| 278 | 278 | UINT8 pen = 0; |
| 279 | 279 | UINT8 cur_layer; |
| 280 | 280 | |
| 281 | | cur_layer = 0;//(m_mode & 0x3) << 16; |
| 281 | cur_layer = (m_mode & 0x3); |
| 282 | 282 | |
| 283 | 283 | switch(m_mode >> 2) |
| 284 | 284 | { |
| r26257 | r26258 | |
| 295 | 295 | dot = m_cpu->space(AS_PROGRAM).read_byte(((offset + (bits >> 3)) & 0x1fff) + 0x4000) >> (4-(bits & 7)); |
| 296 | 296 | dot&= 0xf; |
| 297 | 297 | |
| 298 | | //if(dot != 0xf) |
| 298 | //if(dot != 0xf || m_mode & 2) |
| 299 | 299 | write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, dot); |
| 300 | 300 | } |
| 301 | 301 | bits += 4; |
| r26257 | r26258 | |
| 317 | 317 | dot&= 1; |
| 318 | 318 | |
| 319 | 319 | pen = dot ? (m_color1 >> 4) : (m_color1 & 0xf); |
| 320 | | //if(pen != 0xf) |
| 321 | | write_byte(dstx|dsty<<8|cur_layer|m_vbank<<18, pen); |
| 320 | //if(pen != 0xf || m_mode & 2) |
| 321 | write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, pen); |
| 322 | 322 | } |
| 323 | 323 | bits++; |
| 324 | 324 | } |
| r26257 | r26258 | |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | //if(pen != 0xf) |
| 356 | | write_byte(dstx|dsty<<8|cur_layer|m_vbank<<18, pen); |
| 357 | | |
| 356 | write_byte(dstx|dsty<<8|cur_layer<<16|m_vbank<<18, pen); |
| 358 | 357 | } |
| 359 | 358 | |
| 360 | 359 | bits+=2; |
| r26257 | r26258 | |
| 494 | 493 | { |
| 495 | 494 | int x,y; |
| 496 | 495 | UINT8 dot; |
| 496 | static UINT8 test; |
| 497 | 497 | |
| 498 | if(machine().input().code_pressed_once(KEYCODE_Z)) |
| 499 | test++; |
| 500 | |
| 501 | if(machine().input().code_pressed_once(KEYCODE_X)) |
| 502 | test--; |
| 503 | |
| 504 | popmessage("%02x",test); |
| 505 | |
| 498 | 506 | bitmap.fill(0x100,cliprect); |
| 499 | 507 | |
| 500 | 508 | for(y=0;y<256;y++) |
| 501 | 509 | { |
| 502 | 510 | for(x=0;x<256;x++) |
| 503 | 511 | { |
| 504 | | dot = read_byte((x >> 0)|(y<<8)|0<<16|(m_vbank ^ 1)<<18); |
| 512 | dot = read_byte((x >> 0)|(y<<8)|test<<16|(m_vbank ^ 1)<<18); |
| 505 | 513 | //if(dot != 0xf) |
| 506 | 514 | { |
| 507 | 515 | dot|= m_vregs[1] << 4; |