unit gr4pp

Graphics 4++ library

author: bocianu bocianu@gmail.com, tebe tebe6502@gmail.com


Set of procedures to initialize, run, and use special graphics mode 4++. Resolution 160x240 / 80x60, 5 colors

Constants:

name:value:description:
DL_BLANK8%011100008 blank lines
DL_DLI%10000000Order to run DLI
DL_LMS%01000000Order to set new memory address
DL_VSCROLL%00100000Turn on vertical scroll on this line
DL_MODE_320x192G2$F
DL_JVB%01000001Jump to begining

Interface:

name:description:
Gr4Init

procedure Gr4Init(DListAddress: word; VRamAddress: word; lines: byte; pixelHeight:byte; blanks: byte);


Turns on 4++ mode.
    parameters:
  • DListAddress - memory address of Display list
  • VRamAddress - video memory address
  • lines - number of horizontal lines (vertical resolution)
  • pixelHeight - height of a pixel in scanlines (between 2 and 6)
  • blanks - number of blanklines (8 x scanline) at top of the screen
SetPixelHeight

procedure SetPixelHeight(lines: byte);


Sets height of a pixel in a scan lines.
    parameters:
  • lines - height of a pixel in scanlines (between 2 and 16)