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
SUBM A,[m]
SubtractDataMemoryfromACCwithresultinDataMemory
Description ThespeciedDataMemoryissubtractedfromthecontentsoftheAccumulator.Theresultis
storedintheDataMemory.Notethatiftheresultofsubtractionisnegative,theCagwillbe
clearedto0,otherwiseiftheresultispositiveorzero,theCagwillbesetto1.
Operation [m]←ACC−[m]
Affectedag(s) OV,Z,AC,C
SUB A,x
SubtractimmediatedatafromACC
Description TheimmediatedataspeciedbythecodeissubtractedfromthecontentsoftheAccumulator.
TheresultisstoredintheAccumulator.Notethatiftheresultofsubtractionisnegative,theC
agwillbeclearedto0,otherwiseiftheresultispositiveorzero,theCagwillbesetto1.
Operation ACC←ACC−x
Affectedag(s) OV,Z,AC,C
SWAP [m]
SwapnibblesofDataMemory
Description Thelow-orderandhigh-ordernibblesofthespeciedDataMemoryareinterchanged.
Operation [m].3~[m].0↔[m].7~[m].4
Affectedag(s) None
SWAPA [m]
SwapnibblesofDataMemorywithresultinACC
Description Thelow-orderandhigh-ordernibblesofthespeciedDataMemoryareinterchanged.The
resultisstoredintheAccumulator.ThecontentsoftheDataMemoryremainunchanged.
Operation ACC.3~ACC.0←[m].7~[m].4
ACC.7~ACC.4←[m].3~[m].0
Affectedag(s) None
SZ [m]
SkipifDataMemoryis0
Description IfthecontentsofthespeciedDataMemoryis0,thefollowinginstructionisskipped.Asthis
requirestheinsertionofadummyinstructionwhilethenextinstructionisfetched,itisatwo
cycleinstruction.Iftheresultisnot0theprogramproceedswiththefollowinginstruction.
Operation Skipif[m]=0
Affectedag(s) None
SZA [m]
SkipifDataMemoryis0withdatamovementtoACC
Description ThecontentsofthespeciedDataMemoryarecopiedtotheAccumulator.Ifthevalueiszero,
thefollowinginstructionisskipped.Asthisrequirestheinsertionofadummyinstruction
whilethenextinstructionisfetched,itisatwocycleinstruction.Iftheresultisnot0the
programproceedswiththefollowinginstruction.
Operation ACC←[m]
Skipif[m]=0
Affectedag(s) None
SZ [m].i
SkipifbitiofDataMemoryis0
Description IfbitiofthespeciedDataMemoryis0,thefollowinginstructionisskipped.Asthisrequires
theinsertionofadummyinstructionwhilethenextinstructionisfetched,itisatwocycle
instruction.Iftheresultisnot0,theprogramproceedswiththefollowinginstruction.
Operation Skipif[m].i=0
Affectedag(s) None