Previous 15994 Revisions Next

r2186 Monday 31st March, 2008 at 17:40:48 UTC by Wilbert Pol
[PC_CGA] Updated logging.
[src/mess/video]pc_cga.c

src/mess/video/pc_cga.c
r2185r2186
495495   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
496496   int i;
497497
498   if ( y == 0 ) logerror("cga_text_inten_update_row\n");
498   if ( y == 0 ) CGA_LOG(1,"cga_text_inten_update_row",("\n"));
499499   for ( i = 0; i < x_count; i++ ) {
500500      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
501501      UINT8 chr = videoram[ offset ];
r2185r2186
529529   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
530530   int i;
531531
532   if ( y == 0 ) logerror("cga_text_inten_update_row\n");
532   if ( y == 0 ) CGA_LOG(1,"cga_text_inten_update_row",("\n"));
533533   for ( i = 0; i < x_count; i++ ) {
534534      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
535535      UINT8 chr = videoram[ offset ];
r2185r2186
562562   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
563563   int i;
564564
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"));
566566   for ( i = 0; i < x_count; i++ ) {
567567      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
568568      UINT8 chr = videoram[ offset ];
r2185r2186
595595   UINT16   *p = BITMAP_ADDR16(bitmap, y, 0);
596596   int i;
597597
598   if ( y == 0 ) logerror("cga_text_blink_update_row\n" );
598   if ( y == 0 ) CGA_LOG(1,"cga_text_blink_update_row",("\n"));
599599   for ( i = 0; i < x_count; i++ ) {
600600      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
601601      UINT8 chr = videoram[ offset ];
r2185r2186
633633   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
634634   int i;
635635
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"));
637637   for ( i = 0; i < x_count; i++ ) {
638638      UINT16 offset = ( ( ma + i ) << 1 ) & 0x3fff;
639639      UINT8 chr = videoram[ offset ];
r2185r2186
669669   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
670670   int i;
671671
672   if ( y == 0 ) logerror("cga_gfx_4bppl_update_row\n");
672   if ( y == 0 ) CGA_LOG(1,"cga_gfx_4bppl_update_row",("\n"));
673673   for ( i = 0; i < x_count; i++ ) {
674674      UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( y & 1 ) << 13 );
675675      UINT8 data = videoram[ offset ];
r2185r2186
724724   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
725725   int i;
726726
727   if ( y == 0 ) logerror("cga_gfx_4bpph_update_row\n");
727   if ( y == 0 ) CGA_LOG(1,"cga_gfx_4bpph_update_row",("\n"));
728728if ( NTSC_FILTER ) {
729729   ntsc_clear( &ntsc );
730730   memset( ntsc_decoded, 0, sizeof(ntsc_decoded));
r2185r2186
819819   UINT16  *p = BITMAP_ADDR16(bitmap, y, 0);
820820   int i;
821821
822//   if ( y == 0 ) logerror("cga_gfx_2bpp_update_row\n");
822   if ( y == 0 ) CGA_LOG(1,"cga_gfx_2bpp_update_row",("\n"));
823823   for ( i = 0; i < x_count; i++ ) {
824824      UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( y & 1 ) << 13 );
825825      UINT8 data = videoram[ offset ];
r2185r2186
851851   UINT8   fg = cga.color_select & 0x0F;
852852   int i;
853853
854   if ( y == 0 ) logerror("cga_gfx_1bpp_update_row\n");
854   if ( y == 0 ) CGA_LOG(1,"cga_gfx_1bpp_update_row",("\n"));
855855   for ( i = 0; i < x_count; i++ ) {
856856      UINT16 offset = ( ( ( ma + i ) << 1 ) & 0x1fff ) | ( ( ra & 1 ) << 13 );
857857      UINT8 data = videoram[ offset ];
r2185r2186
13301330   UINT16   offset_base = ra << 13;
13311331   int i;
13321332
1333   if ( y == 0 ) logerror("pc1512_gfx_4bpp_update_row\n");
1333   if ( y == 0 ) CGA_LOG(1,"pc1512_gfx_4bpp_update_row",("\n"));
13341334   for ( i = 0; i < x_count; i++ ) {
13351335      UINT16 offset = offset_base | ( ( ma + i ) & 0x1FFF );
13361336      UINT16 i = ( cga.color_select & 8 ) ? videoram[ videoram_offset[3] | offset ] << 3 : 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team