Description:
Questions have been asked as to why we are selecting a landscape handle in multiples of four while installing Spectrum. Here is a brief explanation on this.
Solution:
A Spectrum Landscape handle is represented by a 32 bit binary number. However a Spectrum developer only uses the 14 highest significant bits. Also the last 2 digits within those 14 bits are masked (ignored). So basically Spectrum looks only at the 12 highest significant bits. It is because the last 2 digits are masked that you need to specify a landscape handle as a multiple of 4 (within the range of 4 - 16276).
So for example, if the landscape handle is decimal 4, the 14 bit binary is 0000 0000 0001 00. Here it is broken down into octets:
a, b, and c, are the 12 highest significant bits. These 14 highest significant bits should be converted to decimal 4.
In case your landscape handle is decimal 400 (14 bit binary is 0000 0110 0100 00), it will be:
This conversion can be done easily using $SPECROOT/SS-Tools/lh_set with -c option. For example:
lh_set.exe -c 400
Landscape number 400 is equivalent to handle 0x6400000.