Previous 15994 Revisions Next

r14305 Wednesday 1st February, 2012 at 22:19:21 UTC by Angelo Salese
Fixed a bunch of errors as seen in vgatest.exe
[src/emu/video]pc_vga.c

src/emu/video/pc_vga.c
r14304r14305
10001000         break;
10011001
10021002      case 2:
1003         data = 0;
1003         // TODO: in VGA bit 4 is actually always on?
1004         data = 0x60; // is VGA
10041005         switch ((vga.miscellaneous_output>>2)&3)
10051006         {
10061007            case 3:
r14304r14305
10401041         break;
10411042
10421043      case 7:
1043         if (vga.dac.read)
1044            data = 0;
1045         else
1046            data = 3;
1044         data = (vga.dac.read) ? 3 : 0;
10471045         break;
10481046
10491047      case 8:
r14304r14305
11541152      }
11551153      vga.attribute.state=!vga.attribute.state;
11561154      break;
1157   #if 0
1158   case 0:
1159      if (vga.attribute.state==0)
1160      {
1161         vga.attribute.index=data & 0x1f;
1162         vga.attribute.prot_bit = data & 0x20;
1163      }
1164      else
1165      {
1166         attribute_reg_write(vga.attribute.index,data);
1167         printf("%02x %d %02x\n",vga.attribute.index,vga.attribute.prot_bit,data);
1168      }
1169      vga.attribute.state=!vga.attribute.state;
1170      break;
1171   #endif
11721155   case 2:
11731156      vga.miscellaneous_output=data;
11741157      recompute_params(space->machine());
r14304r14305
12251208         vga.dac.dirty=1;
12261209         if (vga.dac.state==3) {
12271210            vga.dac.state=0; vga.dac.write_index++;
1228#if 0
1229            if (vga.dac.write_index==64) {
1230               int i;
1231               mame_printf_debug("start palette\n");
1232               for (i=0;i<64;i++) {
1233                  mame_printf_debug(" 0x%.2x, 0x%.2x, 0x%.2x,\n",
1234                        vga.dac.color[i].red*4,
1235                        vga.dac.color[i].green*4,
1236                        vga.dac.color[i].blue*4);
1237               }
1238            }
1239#endif
12401211         }
12411212      }
12421213      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team