Copy a range of bits from the input to the output
[sim, out] = ld_GetBitsInt32(sim, events, in, BitNrStart, NumBits)
in *(INT32) - input
out *(INT32) - output
BitNrStart - position in the input at which to start copying bits. Counting starts at zero
NUmBits - number of bits to copy