Incbits command

This command increments a bit-pattern into 16 channels of a 1D spectrum commencing at the offset specified, where bit-pattern is an expression. It may be optionally indexed. The least significant bit will be incremented at the channel given by integer-offset and successive bits in subsequent channels.

E.g. to obtain a spectrum of 4 bit-pattern sortwords, the command would be used as follows:

Example

INCBITS MULT(MB1) OFFSET 0
INCBITS MULT(MB2) OFFSET 16
INCBITS MULT(MB3) OFFSET 32
INCBITS MULT(MB4) OFFSET 48

where MB1, MB2, MB3 and MB4 are 4 adc pattern words and MULT is a 1D spectrum 64 channels long. The bit-pattern of MB1 will be incremented into spectrum MULT starting at the first channel (offset 0), that of MB2 incremented starting at the 17th channel, etc.