User`s guide
Rev. 1.10 144 November 14, 2014 Rev. 1.10 145 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
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