src/emu/video/pc_vga.c
| r14304 | r14305 | |
| 1000 | 1000 | break; |
| 1001 | 1001 | |
| 1002 | 1002 | case 2: |
| 1003 | | data = 0; |
| 1003 | // TODO: in VGA bit 4 is actually always on? |
| 1004 | data = 0x60; // is VGA |
| 1004 | 1005 | switch ((vga.miscellaneous_output>>2)&3) |
| 1005 | 1006 | { |
| 1006 | 1007 | case 3: |
| r14304 | r14305 | |
| 1040 | 1041 | break; |
| 1041 | 1042 | |
| 1042 | 1043 | case 7: |
| 1043 | | if (vga.dac.read) |
| 1044 | | data = 0; |
| 1045 | | else |
| 1046 | | data = 3; |
| 1044 | data = (vga.dac.read) ? 3 : 0; |
| 1047 | 1045 | break; |
| 1048 | 1046 | |
| 1049 | 1047 | case 8: |
| r14304 | r14305 | |
| 1154 | 1152 | } |
| 1155 | 1153 | vga.attribute.state=!vga.attribute.state; |
| 1156 | 1154 | 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 |
| 1172 | 1155 | case 2: |
| 1173 | 1156 | vga.miscellaneous_output=data; |
| 1174 | 1157 | recompute_params(space->machine()); |
| r14304 | r14305 | |
| 1225 | 1208 | vga.dac.dirty=1; |
| 1226 | 1209 | if (vga.dac.state==3) { |
| 1227 | 1210 | 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 |
| 1240 | 1211 | } |
| 1241 | 1212 | } |
| 1242 | 1213 | break; |