English
Language : 

BS87B12A-3 Datasheet, PDF (199/224 Pages) Holtek Semiconductor Inc – Touch A/D Flash MCU with OCVP
BS87B12A-3/BS87C16A-3/BS87D20A-3
Touch A/D Flash MCU with OCVP
Instruction Set Summary
The instructions related to the data memory access in the following table can be used when the
desired data memory is located in Data Memory sector 0.
Table Conventions
x: Bits immediate data
m: Data Memory address
A: Accumulator
i: 0~7 number of bits
addr: Program memory address
Mnemonic
Description
Cycles Flag Affected
Arithmetic
ADD A,[m]
Add Data Memory to ACC
ADDM A,[m] Add ACC to Data Memory
ADD A,x
Add immediate data to ACC
ADC A,[m]
Add Data Memory to ACC with Carry
ADCM A,[m] Add ACC to Data memory with Carry
SUB A,x
Subtract immediate data from the ACC
SUB A,[m]
Subtract Data Memory from ACC
SUBM A,[m] Subtract Data Memory from ACC with result in Data Memory
SBC A,x
Subtract immediate data from ACC with Carry
SBC A,[m]
Subtract Data Memory from ACC with Carry
SBCM A,[m] Subtract Data Memory from ACC with Carry, result in Data Memory
DAA [m]
Decimal adjust ACC for Addition with result in Data Memory
Logic Operation
1
Z, C, AC, OV, SC
1Note Z, C, AC, OV, SC
1
Z, C, AC, OV, SC
1
Z, C, AC, OV, SC
1Note Z, C, AC, OV, SC
1 Z, C, AC, OV, SC, CZ
1 Z, C, AC, OV, SC, CZ
1Note Z, C, AC, OV, SC, CZ
1 Z, C, AC, OV, SC, CZ
1 Z, C, AC, OV, SC, CZ
1Note Z, C, AC, OV, SC, CZ
1Note
C
AND A,[m]
Logical AND Data Memory to ACC
OR A,[m]
Logical OR Data Memory to ACC
XOR A,[m]
Logical XOR Data Memory to ACC
ANDM A,[m] Logical AND ACC to Data Memory
ORM A,[m]
Logical OR ACC to Data Memory
XORM A,[m] Logical XOR ACC to Data Memory
AND A,x
Logical AND immediate Data to ACC
OR A,x
Logical OR immediate Data to ACC
XOR A,x
Logical XOR immediate Data to ACC
CPL [m]
Complement Data Memory
CPLA [m]
Complement Data Memory with result in ACC
Increment & Decrement
1
Z
1
Z
1
Z
1Note
Z
1Note
Z
1Note
Z
1
Z
1
Z
1
Z
1Note
Z
1
Z
INCA [m]
INC [m]
DECA [m]
DEC [m]
Rotate
RRA [m]
RR [m]
RRCA [m]
RRC [m]
RLA [m]
RL [m]
RLCA [m]
RLC [m]
Increment Data Memory with result in ACC
Increment Data Memory
Decrement Data Memory with result in ACC
Decrement Data Memory
Rotate Data Memory right with result in ACC
Rotate Data Memory right
Rotate Data Memory right through Carry with result in ACC
Rotate Data Memory right through Carry
Rotate Data Memory left with result in ACC
Rotate Data Memory left
Rotate Data Memory left through Carry with result in ACC
Rotate Data Memory left through Carry
1
1Note
1
1Note
1
1Note
1
1Note
1
1Note
1
1Note
Z
Z
Z
Z
None
None
C
C
None
None
C
C
Rev. 1.20
199
December 05, 2016