RLF

Rotate Right f through Carry

The contents of register ‘f’ are rotated one bit to the left through the Carry flag. If ‘d’ is ‘0’, the result is placed in the W register. If ‘d’ is ‘1’, the result is placed back in register ‘f’.

[the_ad id=”3059″]

Syntax:

[ label ] RLF f,d

Operation:

Operands:

  • f is from 0 to 127
  • d is either 0 or 1

Status Affected: C

Example:

Before instruction:
After instruction:
[the_ad id=”3059″]

Example:

Before instruction:
After instruction: