English
Language : 

BS86B12A-3 Datasheet, PDF (173/195 Pages) Holtek Semiconductor Inc – Touch A/D Flash MCU with LED/LCD Driver
BS86B12A-3/BS86C16A-3/BS86D20A-3
Touch A/D Flash MCU with LED/LCD Driver
Extended Instruction Set
The extended instructions are used to support the full range address access for the data memory.
When the accessed data memory is located in any data memory sections except sector 0, the
extended instruction can be used to access the data memory instead of using the indirect addressing
access to improve the CPU firmware performance.
Mnemonic
Description
Cycles Flag Affected
Arithmetic
LADD A,[m] Add Data Memory to ACC
LADDM A,[m] Add ACC to Data Memory
LADC A,[m] Add Data Memory to ACC with Carry
LADCM A,[m] Add ACC to Data memory with Carry
LSUB A,[m] Subtract Data Memory from ACC
LSUBM A,[m] Subtract Data Memory from ACC with result in Data Memory
LSBC A,[m] Subtract Data Memory from ACC with Carry
LSBCM A,[m] Subtract Data Memory from ACC with Carry, result in Data Memory
LDAA [m]
Decimal adjust ACC for Addition with result in Data Memory
Logic Operation
LAND A,[m]
LOR A,[m]
Logical AND Data Memory to ACC
Logical OR Data Memory to ACC
LXOR A,[m] Logical XOR Data Memory to ACC
LANDM A,[m] Logical AND ACC to Data Memory
LORM A,[m] Logical OR ACC to Data Memory
LXORM A,[m] Logical XOR ACC to Data Memory
LCPL [m]
Complement Data Memory
LCPLA [m]
Complement Data Memory with result in ACC
Increment & Decrement
LINCA [m]
Increment Data Memory with result in ACC
LINC [m]
Increment Data Memory
LDECA [m] Decrement Data Memory with result in ACC
LDEC [m]
Decrement Data Memory
Rotate
LRRA [m]
Rotate Data Memory right with result in ACC
LRR [m]
LRRCA [m]
Rotate Data Memory right
Rotate Data Memory right through Carry with result in ACC
LRRC [m]
Rotate Data Memory right through Carry
LRLA [m]
LRL [m]
Rotate Data Memory left with result in ACC
Rotate Data Memory left
LRLCA [m]
Rotate Data Memory left through Carry with result in ACC
LRLC [m]
Data Move
LMOV A,[m]
Rotate Data Memory left through Carry
Move Data Memory to ACC
LMOV [m],A Move ACC to Data Memory
Bit Operation
LCLR [m].i
Clear bit of Data Memory
LSET [m].i
Set bit of Data Memory
2
Z, C, AC, OV, SC
2Note Z, C, AC, OV, SC
2
Z, C, AC, OV, SC
2Note Z, C, AC, OV, SC
2 Z, C, AC, OV, SC, CZ
2Note Z, C, AC, OV, SC, CZ
2 Z, C, AC, OV, SC, CZ
2Note Z, C, AC, OV, SC, CZ
2Note
C
2
Z
2
Z
2
Z
2Note
Z
2Note
Z
2Note
Z
2Note
Z
2
Z
2
2Note
2
2Note
2
2Note
2
2Note
2
2Note
2
2Note
2
2Note
2Note
2Note
Z
Z
Z
Z
None
None
C
C
None
None
C
C
None
None
None
None
Rev. 1.40
173
December 05, 2016