66* @version: 0.5.4
77* @description:
88* Set of procedures to initialize, run, and use special graphics mode 10++.
9+ *
910* Resolution 80x48, 9 colors, square pixel (for lineHeight = 4)
1011*
1112* This library is nota a part of 'blibs' - set of custom Mad-Pascal libraries.
@@ -21,23 +22,23 @@ procedure Gr10Init(DListAddress: word; VRamAddress: word; lines: byte; pixelHeig
2122* Turns on 10++ mode.
2223*
2324* @param: DListAddress - memory address of Display list
24- *
25+ *
2526* @param: VRamAddress - video memory address
26- *
27+ *
2728* @param: lines - number of horizontal lines (vertical resolution)
2829*
2930* @param: pixelHeight - height of a pixel in scanlines (between 2 and 16)
3031*
3132* @param: blanks - number of blanklines (8 x scanline) at top of the screen
32- *
33+ *
3334*)
3435procedure SetPixelHeight (lines: byte);
3536(*
3637* @description:
3738* Sets height of a pixel in a scan lines.
38- *
39+ *
3940* @param: lines - height of a pixel in scanlines (between 2 and 16)
40- *
41+ *
4142*)
4243
4344
@@ -52,24 +53,24 @@ procedure SetPixelHeight(lines: byte);
5253
5354implementation
5455
55- uses graph;
56+ uses graph;
5657
5758
5859var dList : array [0 ..0 ] of byte;
59- dlPtr: word;
60+ dlPtr: word;
6061
6162
6263procedure G10Dli ;interrupt ; assembler;
6364asm
64- dli
65- pha
66- sta WSYNC ;($d40a)
67- lda #13
65+ dli
66+ pha
67+ sta WSYNC ;($d40a)
68+ lda #13
6869.def :VS_Upper = *-1
69- sta VSCROL ;($d405)
70+ sta VSCROL ;($d405)
7071 lda #3
7172.def :VS_Lower = *-1
72- sta VSCROL ;($d405)
73+ sta VSCROL ;($d405)
7374 pla
7475end ;
7576
@@ -138,7 +139,7 @@ procedure BuildDisplayList(DListAddress: word; VRamAddress: word; lines: byte; b
138139procedure Gr10Init (DListAddress: word; VRamAddress: word; lines: byte; pixelHeight:byte; blanks: byte);
139140begin
140141 InitGraph(10 +16 );
141-
142+
142143 BuildDisplayList(DListAddress, VRamAddress, lines, blanks);
143144 SetPixelHeight(pixelHeight);
144145 SDLSTL := DListAddress;
0 commit comments