Hercules Page Support for SCREEN 0 and SCREEN 3 (44237)



The information in this article applies to:

  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0

This article was previously published under Q44237

SUMMARY

The following information summarizes the use of screen pages in Microsoft QuickBasic for MS-DOS with a Hercules monochrome graphics adapter.

SCREEN mode 3 supports two screen pages, page 0 and page 1. However, SCREEN 3 has only one screen page if there is another graphics adapter installed.

SCREEN mode 0 with a Hercules adapter has only one screen page, even though other adapters support up to eight pages in text mode. This is not a problem with QuickBasic or a limitation of the adapter. QuickBasic was designed to conform to the behavior of other IBM monochrome adapters.

MORE INFORMATION

All IBM monochrome adapters assume that there is enough memory to support only one screen page in text mode, SCREEN 0. QuickBasic, being a well-behaved application, makes this assumption so that its applications can run correctly on both IBM and Hercules monochrome systems in text mode without any detectable difference to you.

The ROM BIOS function, Interrupt 10 hex with function 5 hex, "Set Display Page," cannot be used to work around this problem. This BIOS function correctly changes to another display page, but QuickBasic does not utilize the BIOS and continues to write text directly to video memory to the first display page. Therefore, calling this BIOS function results only in a blank screen, which may appear to hang the machine. Setting the page back to page 0 restores the screen.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB44237