Rev. 1.20 158 January 23, 2015 Rev. 1.20 159 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
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