src/mess/drivers/pc8801.c
| r10121 | r10122 | |
| 38 | 38 | - Bokosuka Wars |
| 39 | 39 | - Bouken Roman |
| 40 | 40 | - Bruce Lee |
| 41 | - Bubblegum Crisis (after the logo) |
| 41 | 42 | - Castle Excellent |
| 42 | 43 | - Tobira wo Akete (random crashes in parent pc8801 only) |
| 43 | 44 | |
| r10121 | r10122 | |
| 227 | 228 | |
| 228 | 229 | pen = 0; |
| 229 | 230 | |
| 230 | | if(!(layer_mask & 2)) { pen |= ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; } |
| 231 | | if(!(layer_mask & 4)) { pen |= ((gvram[count+0x4000] >> (7-xi)) & 1) << 1; } |
| 232 | | if(!(layer_mask & 8)) { pen |= ((gvram[count+0x8000] >> (7-xi)) & 1) << 2; } |
| 231 | /* note: layer masking doesn't occur in 3bpp mode, Bug Attack relies on this */ |
| 232 | pen |= ((gvram[count+0x0000] >> (7-xi)) & 1) << 0; |
| 233 | pen |= ((gvram[count+0x4000] >> (7-xi)) & 1) << 1; |
| 234 | pen |= ((gvram[count+0x8000] >> (7-xi)) & 1) << 2; |
| 233 | 235 | |
| 234 | 236 | *BITMAP_ADDR16(bitmap, y, x+xi) = machine->pens[pen & 7]; |
| 235 | 237 | } |
| r10121 | r10122 | |
| 289 | 291 | } |
| 290 | 292 | } |
| 291 | 293 | } |
| 294 | else |
| 295 | popmessage("200 lines B/W mode selected, check me"); |
| 292 | 296 | } |
| 293 | 297 | |
| 294 | 298 | static UINT8 calc_cursor_pos(running_machine *machine,int x,int y,int yi) |
| r10121 | r10122 | |
| 493 | 497 | draw_bitmap_1bpp(screen->machine,bitmap); |
| 494 | 498 | } |
| 495 | 499 | |
| 496 | | //popmessage("%02x %02x %02x %02x",layer_mask,dmac_mode,crtc.status,crtc.irq_mask); |
| 500 | popmessage("%02x %02x %02x %02x %02x",layer_mask,dmac_mode,crtc.status,crtc.irq_mask,gfx_ctrl); |
| 497 | 501 | |
| 498 | 502 | if(!(layer_mask & 1) && dmac_mode & 4 && crtc.status & 0x10 && crtc.irq_mask == 3) |
| 499 | 503 | { |