Table of Contents


NAME

bits - convert integer to bits in array V and return list of bits (Decida Procedure)

USAGE

          bits int V {nbits 8}

ARGUMENTS

int integer to convert
V array to fill
nbits number of bits to return (default=8)

RESULTS

LSB in V(0), ..., MSB in V($nbits)
returns list of bits: LSB in [lindex $bitlist 0], etc.

EXAMPLE-CALL

            set byte [bits 23 V]

NOTES

V is over-written if it already exists (as an array).
if V already exists as a scalar, an error results.

AUTHOR

Richard Booth

Table of Contents