Rev. 2.50 268 June 22, 2017 Rev. 2.50 269 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
RRA [m]
RotateDataMemoryrightwithresultinACC
Description DatainthespeciedDataMemoryandthecarryagarerotatedrightby1bitwithbit0
rotatedintobit7.TherotatedresultisstoredintheAccumulatorandthecontentsofthe
DataMemoryremainunchanged.
Operation ACC.i←[m].(i+1);(i=0~6)
ACC.7←[m].0
Affectedag(s) None
RRC [m]
RotateDataMemoryrightthroughCarry
Description ThecontentsofthespeciedDataMemoryandthecarryagarerotatedrightby1bit.Bit0
replacestheCarrybitandtheoriginalcarryagisrotatedintobit7.
Operation [m].i←[m].(i+1);(i=0~6)
[m].7←C
C←[m].0
Affectedag(s) C
RRCA [m]
RotateDataMemoryrightthroughCarrywithresultinACC
Description DatainthespeciedDataMemoryandthecarryagarerotatedrightby1bit.Bit0replaces
theCarrybitandtheoriginalcarryagisrotatedintobit7.Therotatedresultisstoredinthe
AccumulatorandthecontentsoftheDataMemoryremainunchanged.
Operation ACC.i←[m].(i+1);(i=0~6)
ACC.7←C
C←[m].0
Affectedag(s) C
SBC A,[m]
SubtractDataMemoryfromACCwithCarry
Description ThecontentsofthespeciedDataMemoryandthecomplementofthecarryagare
subtractedfromtheAccumulator.TheresultisstoredintheAccumulator.Notethatifthe
resultofsubtractionisnegative,theCagwillbeclearedto0,otherwiseiftheresultis
positiveorzero,theCagwillbesetto1.
Operation ACC←ACC−[m]−C
Affectedag(s) OV,Z,AC,C
SBCM A,[m]
SubtractDataMemoryfromACCwithCarryandresultinDataMemory
Description ThecontentsofthespeciedDataMemoryandthecomplementofthecarryagare
subtractedfromtheAccumulator.TheresultisstoredintheDataMemory.Notethatifthe
resultofsubtractionisnegative,theCagwillbeclearedto0,otherwiseiftheresultis
positiveorzero,theCagwillbesetto1.
Operation [m]←ACC−[m]−C
Affectedag(s) OV,Z,AC,C
SDZ [m]
SkipifdecrementDataMemoryis0
Description ThecontentsofthespeciedDataMemoryarerstdecrementedby1.Iftheresultis0the
followinginstructionisskipped.Asthisrequirestheinsertionofadummyinstructionwhile
thenextinstructionisfetched,itisatwocycleinstruction.Iftheresultisnot0theprogram
proceedswiththefollowinginstruction.
Operation [m]←[m]−1
Skipif[m]=0
Affectedag(s) None