src/mess/video/fmtowns.c
| r7744 | r7745 | |
| 116 | 116 | static UINT8 towns_display_plane; |
| 117 | 117 | static UINT8 towns_display_page_sel; |
| 118 | 118 | static UINT8 towns_vblank_flag; |
| 119 | static UINT8 towns_layer_ctrl; |
| 119 | 120 | |
| 120 | 121 | extern UINT32* towns_vram; |
| 121 | 122 | extern UINT8* towns_gfxvram; |
| r7744 | r7745 | |
| 561 | 562 | towns_degipal[offset-0x08] = data; |
| 562 | 563 | towns_dpmd_flag = 1; |
| 563 | 564 | break; |
| 565 | case 0x10: |
| 566 | towns_layer_ctrl = data; |
| 567 | break; |
| 564 | 568 | } |
| 565 | 569 | logerror("VID: wrote 0x%02x to port %04x\n",data,offset+0xfd90); |
| 566 | 570 | } |
| r7744 | r7745 | |
| 1389 | 1393 | if(!(towns_video_reg[1] & 0x01)) |
| 1390 | 1394 | { |
| 1391 | 1395 | if(!input_code_pressed(screen->machine,KEYCODE_Q)) |
| 1392 | | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1); |
| 1396 | { |
| 1397 | if((towns_layer_ctrl & 0x03) != 0) |
| 1398 | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1); |
| 1399 | } |
| 1393 | 1400 | if(!input_code_pressed(screen->machine,KEYCODE_W)) |
| 1394 | | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0); |
| 1401 | { |
| 1402 | if((towns_layer_ctrl & 0x0c) != 0) |
| 1403 | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0); |
| 1404 | } |
| 1395 | 1405 | } |
| 1396 | 1406 | else |
| 1397 | 1407 | { |
| 1398 | 1408 | if(!input_code_pressed(screen->machine,KEYCODE_Q)) |
| 1399 | | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0); |
| 1409 | { |
| 1410 | if((towns_layer_ctrl & 0x0c) != 0) |
| 1411 | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[0],0); |
| 1412 | } |
| 1400 | 1413 | if(!input_code_pressed(screen->machine,KEYCODE_W)) |
| 1401 | | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1); |
| 1414 | { |
| 1415 | if((towns_layer_ctrl & 0x03) != 0) |
| 1416 | towns_crtc_draw_layer(screen->machine,bitmap,&towns_crtc_layerscr[1],1); |
| 1417 | } |
| 1402 | 1418 | } |
| 1403 | 1419 | |
| 1404 | 1420 | /*#ifdef SPR_DEBUG |