EasyManua.ls Logo

Holtek BS82B12A-3 - Page 158

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
RET A,x
ReturnfromsubroutineandloadimmediatedatatoACC
Description TheProgramCounterisrestoredfromthestackandtheAccumulatorloadedwiththespecied
immediatedata.Programexecutioncontinuesattherestoredaddress.
Operation ProgramCounter←Stack
ACC←x
Affectedag(s) None
RETI
Returnfrominterrupt
Description TheProgramCounterisrestoredfromthestackandtheinterruptsarere-enabledbysettingthe
EMIbit.EMIisthemasterinterruptglobalenablebit.Ifaninterruptwaspendingwhenthe
RETIinstructionisexecuted,thependingInterruptroutinewillbeprocessedbeforereturning
tothemainprogram.
Operation ProgramCounter←Stack
EMI←1
Affectedag(s) None
RL [m]
RotateDataMemoryleft
Description ThecontentsofthespeciedDataMemoryarerotatedleftby1bitwithbit7rotatedintobit0.
Operation [m].(i+1)←[m].i;(i=0~6)
[m].0←[m].7
Affectedag(s) None
RLA [m]
RotateDataMemoryleftwithresultinACC
Description ThecontentsofthespeciedDataMemoryarerotatedleftby1bitwithbit7rotatedintobit0.
TherotatedresultisstoredintheAccumulatorandthecontentsoftheDataMemoryremain
u
nchanged.
Operation ACC.(i+1)←[m].i;(i=0~6)
ACC.0←[m].7
Affectedag(s) None
RLC [m]
RotateDataMemoryleftthroughCarry
Description ThecontentsofthespeciedDataMemoryandthecarryagarerotatedleftby1bit.Bit7
replacestheCarrybitandtheoriginalcarryagisrotatedintobit0.
Operation [m].(i+1)←[m].i;(i=0~6)
[m].0←C
C←[m].7
Affectedag(s) C
RLCA [m]
RotateDataMemoryleftthroughCarrywithresultinACC
Description DatainthespeciedDataMemoryandthecarryagarerotatedleftby1bit.Bit7replacesthe
Carrybitandtheoriginalcarryagisrotatedintothebit0.Therotatedresultisstoredinthe
AccumulatorandthecontentsoftheDataMemoryremainunchanged.
Operation ACC.(i+1)←[m].i;(i=0~6)
ACC.0←C
C←[m].7
Affectedag(s) C
RR [m]
RotateDataMemoryright
Description ThecontentsofthespeciedDataMemoryarerotatedrightby1bitwithbit0rotatedintobit7.
Operation [m].i←[m].(i+1);(i=0~6)
[m].7←[m].0
Affectedag(s) None

Table of Contents

Related product manuals