13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GraphicsWhen it comes to displaying information on the screen, a program generated by<strong>Turbo</strong> <strong>Basic</strong> must work within the constraints of the display hardware available toit. <strong>Turbo</strong> <strong>Basic</strong> supports three main class~s of video interfaces on PCs and compatibles:the Monochrome Display Adapter, which is only capable of monochrometext, and the Color/Graphics Adapter (CGA) and the Enhanced GraphicsAdapter (EGA), both of which can produce text and graphics in color and in blackand white (see Table 4-5).AdapterMonochromeTable 4-5Screen ModeoCGA 0,1,2EGA 0, 1, 2, 7, 8, 9, 10CGA = Color/Graphics AdapterEGA = Enhanced Graphics AdapterGraphics Adapter CharacteristicsText Format80 column40/80 col.40/80 col.Comments80 x 25 characters, with 4attributes (normal, highlight,blinking, underline)Up to 16 colors (in text modeonly); up to 4 colors ingraphics mode. Screen resolution:640 x 200 pixels.Screen resolution: up to 640X 350 pixels. Up to 16 colorsout of a 64-color palette(depending on EGA memory)Corresponding to the talents of these video boards, <strong>Turbo</strong> <strong>Basic</strong> can select any ofthe supported text or graphics modes with the SCREEN and/or WIDTH statements.The Text ModesIn 80 column text mode (the only mode available with the Monochrome DisplayAdapter), the screen consists of 25 lines of 80 character positions each, numbered 1to 25 (top to bottom) and 1 to 80 (left to right). (See Figure 4-2.) In 40 column textmode (available with the CGA/EGA adapters), the screen consists of 25 lines of 40characters. Each position on each line can contain any of the characters listed inthe character set chart in Appendix F.110 <strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!