Skip to content

Commit 27a63fa

Browse files
committed
Add print42 library page
1 parent aaaca4f commit 27a63fa

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

docs/library/print42.bas.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#Print42.bas
2+
3+
The 42 column printing routine allows text to be 6 pixels wide instead of 8.
4+
It is NOT proportional printing, but this is still useful for lining things up in columns.
5+
6+
This routine has been adopted as an included library - so you may include it with
7+
8+
```
9+
#include <print42.bas>
10+
```
11+
12+
##Usage
13+
14+
```
15+
printat42(y,x)
16+
```
17+
18+
Moves the print42 system's print cursor to row Y, column X. Note that `0 <= x <= 41` - that is the range of values
19+
for X can be up to 41. The range of values for Y is the normal 0-23.
20+
21+
```
22+
printat42(STRING)
23+
```
24+
25+
Prints the string to the screen at the current Print42 co-ordinates. It does so in the current permanent colours.
26+
27+
NOTE: The ZX Spectrum's attribute system is encoded into the hardware as a 32 character grid. Print42 does its best,
28+
but changing the `paper`/`bright`/`flash` colour from the background is likely to look imperfect as the attribute blocks
29+
cannot line up well with the pixel blocks.

0 commit comments

Comments
 (0)