src/mess/video/pc_cga.c
| r2185 | r2186 | |
| 495 | 495 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 496 | 496 | int i; |
| 497 | 497 | |
| 498 | | if ( y == 0 ) logerror("cga_text_inten_update_row\n"); |
| 498 | if ( y == 0 ) CGA_LOG(1,"cga_text_inten_update_row",("\n")); |
| 499 | 499 | for ( i = 0; i < x_count; i++ ) { |
| 500 | 500 | UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff; |
| 501 | 501 | UINT8 chr = videoram[ offset ]; |
| r2185 | r2186 | |
| 529 | 529 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 530 | 530 | int i; |
| 531 | 531 | |
| 532 | | if ( y == 0 ) logerror("cga_text_inten_update_row\n"); |
| 532 | if ( y == 0 ) CGA_LOG(1,"cga_text_inten_update_row",("\n")); |
| 533 | 533 | for ( i = 0; i < x_count; i++ ) { |
| 534 | 534 | UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff; |
| 535 | 535 | UINT8 chr = videoram[ offset ]; |
| r2185 | r2186 | |
| 562 | 562 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 563 | 563 | int i; |
| 564 | 564 | |
| 565 | | if ( y == 0 ) logerror("cga_text_inten_alt_update_row\n"); |
| 565 | if ( y == 0 ) CGA_LOG(1,"cga_text_inten_alt_update_row",("\n")); |
| 566 | 566 | for ( i = 0; i < x_count; i++ ) { |
| 567 | 567 | UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff; |
| 568 | 568 | UINT8 chr = videoram[ offset ]; |
| r2185 | r2186 | |
| 595 | 595 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 596 | 596 | int i; |
| 597 | 597 | |
| 598 | | if ( y == 0 ) logerror("cga_text_blink_update_row\n" ); |
| 598 | if ( y == 0 ) CGA_LOG(1,"cga_text_blink_update_row",("\n")); |
| 599 | 599 | for ( i = 0; i < x_count; i++ ) { |
| 600 | 600 | UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff; |
| 601 | 601 | UINT8 chr = videoram[ offset ]; |
| r2185 | r2186 | |
| 633 | 633 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 634 | 634 | int i; |
| 635 | 635 | |
| 636 | | if ( y == 0 ) logerror("cga_text_blink_alt_update_row\n"); |
| 636 | if ( y == 0 ) CGA_LOG(1,"cga_text_blink_alt_update_row",("\n")); |
| 637 | 637 | for ( i = 0; i < x_count; i++ ) { |
| 638 | 638 | UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff; |
| 639 | 639 | UINT8 chr = videoram[ offset ]; |
| r2185 | r2186 | |
| 669 | 669 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 670 | 670 | int i; |
| 671 | 671 | |
| 672 | | if ( y == 0 ) logerror("cga_gfx_4bppl_update_row\n"); |
| 672 | if ( y == 0 ) CGA_LOG(1,"cga_gfx_4bppl_update_row",("\n")); |
| 673 | 673 | for ( i = 0; i < x_count; i++ ) { |
| 674 | 674 | UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( y & 1 ) << 13 ); |
| 675 | 675 | UINT8 data = videoram[ offset ]; |
| r2185 | r2186 | |
| 724 | 724 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 725 | 725 | int i; |
| 726 | 726 | |
| 727 | | if ( y == 0 ) logerror("cga_gfx_4bpph_update_row\n"); |
| 727 | if ( y == 0 ) CGA_LOG(1,"cga_gfx_4bpph_update_row",("\n")); |
| 728 | 728 | if ( NTSC_FILTER ) { |
| 729 | 729 | ntsc_clear( &ntsc ); |
| 730 | 730 | memset( ntsc_decoded, 0, sizeof(ntsc_decoded)); |
| r2185 | r2186 | |
| 819 | 819 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| 820 | 820 | int i; |
| 821 | 821 | |
| 822 | | // if ( y == 0 ) logerror("cga_gfx_2bpp_update_row\n"); |
| 822 | if ( y == 0 ) CGA_LOG(1,"cga_gfx_2bpp_update_row",("\n")); |
| 823 | 823 | for ( i = 0; i < x_count; i++ ) { |
| 824 | 824 | UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( y & 1 ) << 13 ); |
| 825 | 825 | UINT8 data = videoram[ offset ]; |
| r2185 | r2186 | |
| 851 | 851 | UINT8 fg = cga.color_select & 0x0F; |
| 852 | 852 | int i; |
| 853 | 853 | |
| 854 | | if ( y == 0 ) logerror("cga_gfx_1bpp_update_row\n"); |
| 854 | if ( y == 0 ) CGA_LOG(1,"cga_gfx_1bpp_update_row",("\n")); |
| 855 | 855 | for ( i = 0; i < x_count; i++ ) { |
| 856 | 856 | UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( ra & 1 ) << 13 ); |
| 857 | 857 | UINT8 data = videoram[ offset ]; |
| r2185 | r2186 | |
| 1330 | 1330 | UINT16 offset_base = ra << 13; |
| 1331 | 1331 | int i; |
| 1332 | 1332 | |
| 1333 | | if ( y == 0 ) logerror("pc1512_gfx_4bpp_update_row\n"); |
| 1333 | if ( y == 0 ) CGA_LOG(1,"pc1512_gfx_4bpp_update_row",("\n")); |
| 1334 | 1334 | for ( i = 0; i < x_count; i++ ) { |
| 1335 | 1335 | UINT16 offset = offset_base | ( ( ma + i ) & 0x1FFF ); |
| 1336 | 1336 | UINT16 i = ( cga.color_select & 8 ) ? videoram[ videoram_offset[3] | offset ] << 3 : 0; |