unit gr10pp

Graphics 10 mode ++ (GTIA) library

author: bocianu bocianu@gmail.com


Set of procedures to initialize, run, and use special graphics mode 10++. Resolution 80x48, 9 colors, square pixel (for lineHeight = 4)
This library is a part of 'blibs' - set of custom Mad-Pascal libraries.
https://gitlab.com/bocianu/blibs

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:
Gr10Init

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


Turns on 10++ 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 16)
  • 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)