Performs thebit shift operation on bytes, integers, and longwords.
p2 The scalar containing the number of bit positions and direction of the shift.
a = BYTARR(5)
FOR i = 0, 4 DO a(i) = 4 * i PRINT, a
0 4 8 12 16
PRINT, a, ISHFT(a, -2)
0 4 8 12 16
0 1 2 3 4
A
by 4.
PRINT, a, ISHFT(a, 1)
0 4 8 12 16
0 8 16 24 32