Revision 42fc925e hw/vga.c
b/hw/vga.c | ||
---|---|---|
447 | 447 |
} |
448 | 448 |
break; |
449 | 449 |
case VBE_DISPI_INDEX_BANK: |
450 |
val &= s->vbe_bank_mask; |
|
450 |
if (s->vbe_regs[VBE_DISPI_INDEX_BPP] == 4) { |
|
451 |
val &= (s->vbe_bank_mask >> 2); |
|
452 |
} else { |
|
453 |
val &= s->vbe_bank_mask; |
|
454 |
} |
|
451 | 455 |
s->vbe_regs[s->vbe_index] = val; |
452 | 456 |
s->bank_offset = (val << 16); |
453 | 457 |
break; |
Also available in: Unified diff