RET
Return from subroutine
Description
The program counter is restored from the stack. This is a 2-cycle instruction.
Operation
Program Counter
Stack
Affected flag(s)
TO
PDF
OV
Z
AC
C
RET A,x
Return and place immediate data in the accumulator
Description
The program counter is restored from the stack and the accumulator loaded with the speci-
fied 8-bit immediate data.
Operation
Program Counter
Stack
ACC
x
Affected flag(s)
TO
PDF
OV
Z
AC
C
RETI
Return from interrupt
Description
The program counter is restored from the stack, and interrupts are enabled by setting the
EMI bit. EMI is the enable master (global) interrupt bit.
Operation
Program Counter
Stack
EMI
1
Affected flag(s)
TO
PDF
OV
Z
AC
C
RL [m]
Rotate data memory left
Description
Thecontentsofthespecifieddatamemoryarerotated1bitleftwithbit7rotatedintobit0.
Operation
[m].(i+1)
[m].i; [m].i:bit i of the data memory (i=0~6)
[m].0
[m].7
Affected flag(s)
TO
PDF
OV
Z
AC
C
RLA [m]
Rotate data memory left and place result in the accumulator
Description
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.
Operation
ACC.(i+1)
[m].i; [m].i:bit i of the data memory (i=0~6)
ACC.0
[m].7
Affected flag(s)
TO
PDF
OV
Z
AC
C
HT83R074
Rev. 1.00
28
May 17, 2007