RET
Description
Operation
Affected flag(s)
RET A,x
Description
Operation
Affected flag(s)
RL [m]
Description
Operation
Affected flag(s)
RLA [m]
Description
Operation
Affected flag(s)
RLC [m]
Description
Operation
Affected flag(s)
HT48RA0A
Return from subroutine
The program counter is restored from the stack. This is a 2-cycle instruction.
PC ¬ Stack
TC2 TC1 TO PD OV Z AC C
¾ ¾ ¾¾¾¾¾¾
Return and place immediate data in the accumulator
The program counter is restored from the stack and the accumulator loaded with the speci-
fied 8-bit immediate data.
PC ¬ Stack
ACC ¬ x
TC2 TC1 TO PD OV Z AC C
¾ ¾ ¾¾¾¾¾¾
Rotate data memory left
The contents of the specified data memory are rotated 1 bit left with bit 7 rotated into bit 0.
[m].(i+1) ¬ [m].i; [m].i:bit i of the data memory (i=0~6)
[m].0 ¬ [m].7
TC2 TC1 TO PD OV Z AC C
¾ ¾ ¾¾¾¾¾¾
Rotate data memory left and place result in the accumulator
Data in the specified data memory is rotated 1 bit left with bit 7 rotated into bit 0, leaving the
rotated result in the accumulator. The contents of the data memory remain unchanged.
ACC.(i+1) ¬ [m].i; [m].i:bit i of the data memory (i=0~6)
ACC.0 ¬ [m].7
TC2 TC1 TO PD OV Z AC C
¾ ¾ ¾¾¾¾¾¾
Rotate data memory left through carry
The contents of the specified data memory and the carry flag are rotated 1 bit left. Bit 7 re-
places the carry bit; the original carry flag is rotated into the bit 0 position.
[m].(i+1) ¬ [m].i; [m].i:bit i of the data memory (i=0~6)
[m].0 ¬ C
C ¬ [m].7
TC2 TC1 TO PD OV Z AC C
¾
¾
¾¾¾¾¾
Ö
Rev. 1.70
20
July 16, 2003