Rev. 1.71 132 April 11, 2017 Rev. 1.71 133 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
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