Changeset 97621 in vbox for trunk/src/VBox
- Timestamp:
- Nov 21, 2022 10:27:52 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154667
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r96407 r97621 1391 1391 } 1392 1392 } else if (!(pThis->sr[4] & 0x04)) { /* Host access is controlled by SR4, not GR5! */ 1393 /* odd/even mode (aka text mode mapping) */1394 plane = (pThis->gr[4] & 2) | (addr & 1);1393 /* odd/even mode (aka text mode mapping); GR4 does not affect writes! */ 1394 plane = addr & 1; 1395 1395 mask = (1 << plane); 1396 1396 if (pThis->sr[2] & mask) { … … 3516 3516 for (i = 0; i < cbItem; i++) 3517 3517 { 3518 unsigned plane = (pThis->gr[4] & 2) | (GCPhysAddr & 1);3518 unsigned plane = GCPhysAddr & 1; 3519 3519 if (pThis->sr[2] & (1 << plane)) { 3520 3520 RTGCPHYS PhysAddr2 = ((GCPhysAddr & ~1) * 4) | plane; … … 4348 4348 vga_retrace_s *r = &pThis->retrace_state; 4349 4349 const char *clocks[] = { "25.175 MHz", "28.322 MHz", "External", "Reserved?!" }; 4350 const char *mem_map[] = { "A000-BFFF", "A000-AFFF", "B000-B7FF", "B800-BFFF" }; 4350 4351 NOREF(pszArgs); 4351 4352 … … 4353 4354 char_dots = (pThis->sr[0x01] & 1) ? 8 : 9; 4354 4355 double_scan = pThis->cr[9] >> 7; 4356 pHlp->pfnPrintf(pHlp, "decoding memory at %s\n", mem_map[(pThis->gr[6] >> 2) & 3]); 4355 4357 pHlp->pfnPrintf(pHlp, "Misc status reg. MSR:%02X\n", pThis->msr); 4356 4358 pHlp->pfnPrintf(pHlp, "pixel clock: %s\n", clocks[(pThis->msr >> 2) & 3]);
Note:
See TracChangeset
for help on using the changeset viewer.