EasyManua.ls Logo

Sinclair ZX Series - POSITION OF ARRAY ELEMENTS ON PRINT OUT

Sinclair ZX Series
12 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
elements at a time and hand it over to the print routine.
POSITION OF ARRAY ELEMENTS ON PRINT OUT
Each element of the array, e.g. A$(1,256) contains one byte of information. A byte has eight bits
which have the following values:
Each bit in each byte in the array represents one dot on the high resolution printout. Hence each
element of the array represent eight successive dots, the left-most dot corresponding to bit 7 whose
value is 2
7
and the right-most dot bit 0.
Hence:
Hence dots (0,0) through to (7,0) are represented by bits 7 through to 0 of Array Element A$(1,256).
If you wish to print all of those dtos, then use the command:
LET
A$(1,256)=
CHR$
(2**7+2**6+2**5+2**4+2**3+2**2+2**1)
If you only wish to print the first three dots then use the command:
LET
A$(1,256)=
CHR$
(2**7+2**6+2**5)
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Dot(0,0) corresponds to bit 7 of array element A$(1,256)
Dot(1,0) corresponds to bit 6 of array element A$(1,256)
Dot(255,255) corresponds to bit 0 of array element A$(32,1)

Related product manuals