Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/01
WORD seRotateByteLeft(BYTE val, BYTE bits)
Description:
Rotates the bits in "val" left as many times as stated in "bits".
Parameter:
val - value to rotate
bits - how many bits to rotate
Return Value: bits 15-8: non-zero if carry flag set
bits 7-0: rotated byte
WORD seRotateByteRight(BYTE val, BYTE bits)
Description:
Rotates the bits in "val" right as many times as stated in "bits".
Parameter:
val - value to rotate bits - how many bits to rotate
Return Value: bits 15-8: non-zero if carry flag set
bits 7-0: rotated byte
Page 53
S1D13504
X19A-G-002-07