Rev. 1.71 130 April 11, 2017 Rev. 1.71 131 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
RET A,x
ReturnfromsubroutineandloadimmediatedatatoACC
Description TheProgramCounterisrestoredfromthestackandtheAccumulatorloadedwiththespecied
immediatedata.Programexecutioncontinuesattherestoredaddress.
Operation ProgramCounter←Stack
ACC←x
Affectedag(s) None
RETI
Returnfrominterrupt
Description TheProgramCounterisrestoredfromthestackandtheinterruptsarere-enabledbysettingthe
EMIbit.EMIisthemasterinterruptglobalenablebit.Ifaninterruptwaspendingwhenthe
RETIinstructionisexecuted,thependingInterruptroutinewillbeprocessedbeforereturning
tothemainprogram.
Operation ProgramCounter←Stack
EMI←1
Affectedag(s) None
RL [m]
RotateDataMemoryleft
Description ThecontentsofthespeciedDataMemoryarerotatedleftby1bitwithbit7rotatedintobit0.
Operation [m].(i+1)←[m].i;(i=0~6)
[m].0←[m].7
Affectedag(s) None
RLA [m]
RotateDataMemoryleftwithresultinACC
Description ThecontentsofthespeciedDataMemoryarerotatedleftby1bitwithbit7rotatedintobit0.
TherotatedresultisstoredintheAccumulatorandthecontentsoftheDataMemoryremain
u
nchanged.
Operation ACC.(i+1)←[m].i;(i=0~6)
ACC.0←[m].7
Affectedag(s) None
RLC [m]
RotateDataMemoryleftthroughCarry
Description ThecontentsofthespeciedDataMemoryandthecarryagarerotatedleftby1bit.Bit7
replacestheCarrybitandtheoriginalcarryagisrotatedintobit0.
Operation [m].(i+1)←[m].i;(i=0~6)
[m].0←C
C←[m].7
Affectedag(s) C
RLCA [m]
RotateDataMemoryleftthroughCarrywithresultinACC
Description DatainthespeciedDataMemoryandthecarryagarerotatedleftby1bit.Bit7replacesthe
Carrybitandtheoriginalcarryagisrotatedintothebit0.Therotatedresultisstoredinthe
AccumulatorandthecontentsoftheDataMemoryremainunchanged.
Operation ACC.(i+1)←[m].i;(i=0~6)
ACC.0←C
C←[m].7
Affectedag(s) C
RR [m]
RotateDataMemoryright
Description ThecontentsofthespeciedDataMemoryarerotatedrightby1bitwithbit0rotatedintobit7.
Operation [m].i←[m].(i+1);(i=0~6)
[m].7←[m].0
Affectedag(s) None