Rev. 1.20 160 January 23, 2015 Rev. 1.20 161 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
SDZA [m]
SkipifdecrementDataMemoryiszerowithresultinACC
Description ThecontentsofthespeciedDataMemoryarerstdecrementedby1.Iftheresultis0,the
followinginstructionisskipped.TheresultisstoredintheAccumulatorbutthespecied
DataMemorycontentsremainunchanged.Asthisrequirestheinsertionofadummy
instructionwhilethenextinstructionisfetched,itisatwocycleinstruction.Iftheresultisnot0,
theprogramproceedswiththefollowinginstruction.
Operation ACC←[m]−1
SkipifACC=0
Affectedag(s) None
SET [m]
SetDataMemory
Description EachbitofthespeciedDataMemoryissetto1.
Operation [m]←FFH
Affectedag(s) None
SET [m].i
SetbitofDataMemory
Description BitiofthespeciedDataMemoryissetto1.
Operation [m].i←1
Affectedag(s) None
SIZ [m]
SkipifincrementDataMemoryis0
Description ThecontentsofthespeciedDataMemoryarerstincrementedby1.Iftheresultis0,the
followinginstructionisskipped.Asthisrequirestheinsertionofadummyinstructionwhile
thenextinstructionisfetched,itisatwocycleinstruction.Iftheresultisnot0theprogram
proceedswiththefollowinginstruction.
Operation [m]←[m]+1
Skipif[m]=0
Affectedag(s) None
SIZA [m]
SkipifincrementDataMemoryiszerowithresultinACC
Description ThecontentsofthespeciedDataMemoryarerstincrementedby1.Iftheresultis0,the
followinginstructionisskipped.TheresultisstoredintheAccumulatorbutthespecied
DataMemorycontentsremainunchanged.Asthisrequirestheinsertionofadummy
instructionwhilethenextinstructionisfetched,itisatwocycleinstruction.Iftheresultisnot
0theprogramproceedswiththefollowinginstruction.
Operation ACC←[m]+1
SkipifACC=0
Affectedag(s) None
SNZ [m].i
SkipifbitiofDataMemoryisnot0
Description IfbitiofthespeciedDataMemoryisnot0,thefollowinginstructionisskipped.Asthis
requirestheinsertionofadummyinstructionwhilethenextinstructionisfetched,itisatwo
cycleinstruction.Iftheresultis0theprogramproceedswiththefollowinginstruction.
Operation Skipif[m].i≠0
Affectedag(s) None
SUB A,[m]
SubtractDataMemoryfromACC
Description ThespeciedDataMemoryissubtractedfromthecontentsoftheAccumulator.Theresultis
storedintheAccumulator.Notethatiftheresultofsubtractionisnegative,theCagwillbe
clearedto0,otherwiseiftheresultispositiveorzero,theCagwillbesetto1.
Operation ACC←ACC−[m]
Affectedag(s) OV,Z,AC,C