Epson Research and Development

Page 53

Vancouver Design Center

 

 

 

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

Programming Notes and Examples

S1D13504

Issue Date: 01/02/01

X19A-G-002-07

Page 191
Image 191
Epson S1D13504 manual Word seRotateByteLeftBYTE val, Byte bits, Word seRotateByteRightBYTE val, Byte bits