Rev. 1.60
216
August 20, 2019
Rev. 1.60
217
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
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
1
Z, C, AC, OV, SC
ADDM A,[m]
Add ACC to Data Memory
1
Note
Z, C, AC, OV, SC
ADD A,x
Add immediate data to ACC
1
Z, C, AC, OV, SC
ADC A,[m]
Add Data Memory to ACC with Carry
1
Z, C, AC, OV, SC
ADCM A,[m]
Add ACC to Data memory with Carry
1
Note
Z, C, AC, OV, SC
SUB A,x
Subtract immediate data from the ACC
1
Z, C, AC, OV, SC, CZ
SUB A,[m]
Subtract Data Memory from ACC
1
Z, C, AC, OV, SC, CZ
SUBM A,[m]
Subtract Data Memory from ACC with result in Data Memory
1
Note
Z, C, AC, OV, SC, CZ
SBC A,x
Subtract immediate data from ACC with Carry
1
Z, C, AC, OV, SC, CZ
SBC A,[m]
Subtract Data Memory from ACC with Carry
1
Z, C, AC, OV, SC, CZ
SBCM A,[m]
Subtract Data Memory from ACC with Carry, result in Data Memory
1
Note
Z, C, AC, OV, SC, CZ
DAA [m]
Decimal adjust ACC for Addition with result in Data Memory
1
Note
C
Logic Operation
AND A,[m]
Logical AND Data Memory to ACC
1
Z
OR A,[m]
Logical OR Data Memory to ACC
1
Z
XOR A,[m]
Logical XOR Data Memory to ACC
1
Z
ANDM A,[m]
Logical AND ACC to Data Memory
1
Note
Z
ORM A,[m]
Logical OR ACC to Data Memory
1
Note
Z
XORM A,[m]
Logical XOR ACC to Data Memory
1
Note
Z
AND A,x
Logical AND immediate Data to ACC
1
Z
OR A,x
Logical OR immediate Data to ACC
1
Z
XOR A,x
Logical XOR immediate Data to ACC
1
Z
CPL [m]
Complement Data Memory
1
Note
Z
CPLA [m]
Complement Data Memory with result in ACC
1
Z
Increment & Decrement
INCA [m]
Increment Data Memory with result in ACC
1
Z
INC [m]
Increment Data Memory
1
Note
Z
DECA [m]
Decrement Data Memory with result in ACC
1
Z
DEC [m]
Decrement Data Memory
1
Note
Z
Rotate
RRA [m]
Rotate Data Memory right with result in ACC
1
None
RR [m]
Rotate Data Memory right
1
Note
None
RRCA [m]
Rotate Data Memory right through Carry with result in ACC
1
C
RRC [m]
Rotate Data Memory right through Carry
1
Note
C
RLA [m]
Rotate Data Memory left with result in ACC
1
None
RL [m]
Rotate Data Memory left
1
Note
None
RLCA [m]
Rotate Data Memory left through Carry with result in ACC
1
C
RLC [m]
Rotate Data Memory left through Carry
1
Note
C