Commit e6eccb38ebf52bc87c957ff128dc60ea81d3e2d4
1 parent
9da98861
dac write index register is r/w (Volker Ruppert)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@977 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
hw/vga.c
@@ -190,6 +190,9 @@ static uint32_t vga_ioport_read(void *opaque, uint32_t addr) | @@ -190,6 +190,9 @@ static uint32_t vga_ioport_read(void *opaque, uint32_t addr) | ||
190 | case 0x3c7: | 190 | case 0x3c7: |
191 | val = s->dac_state; | 191 | val = s->dac_state; |
192 | break; | 192 | break; |
193 | + case 0x3c8: | ||
194 | + val = s->dac_write_index; | ||
195 | + break; | ||
193 | case 0x3c9: | 196 | case 0x3c9: |
194 | val = s->palette[s->dac_read_index * 3 + s->dac_sub_index]; | 197 | val = s->palette[s->dac_read_index * 3 + s->dac_sub_index]; |
195 | if (++s->dac_sub_index == 3) { | 198 | if (++s->dac_sub_index == 3) { |