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
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