Rev. 1.20
1�2
�an�a�� 2�� 201�
Rev. 1.20
1��
�an�a�� 2�� 201�
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
Instruction Set Summary
The following table depicts a summary of the instruction set categorised according to function and
can be consulted as a basic instruction reference using the following listed conventions.
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 Memo�� to ACC
1
Z� C� AC� OV
ADDM A�[m]
Add ACC to Data Memo��
1
Note
Z� C� AC� OV
ADD A�x
Add immediate data to ACC
1
Z� C� AC� OV
ADC A�[m]
Add Data Memo�� to ACC with Ca���
1
Z� C� AC� OV
ADCM A�[m]
Add ACC to Data memo�� with Ca���
1
Note
Z� C� AC� OV
SUB A�x
S�bt�act immediate data f�om the ACC
1
Z� C� AC� OV
SUB A�[m]
S�bt�act Data Memo�� f�om ACC
1
Z� C� AC� OV
SUBM A�[m]
S�bt�act Data Memo�� f�om ACC with �es�lt in Data Memo��
1
Note
Z� C� AC� OV
SBC A�[m]
S�bt�act Data Memo�� f�om ACC with Ca���
1
Z� C� AC� OV
SBCM A�[m]
S�bt�act Data Memo�� f�om ACC with Ca���� �es�lt in Data Memo��
1
Note
Z� C� AC� OV
DAA [m]
Decimal adj�st ACC fo� Addition with �es�lt in Data Memo��
1
Note
C
Logic Operation
AND A�[m]
Logical AND Data Memo�� to ACC
1
Z
OR A�[m]
Logical OR Data Memo�� to ACC
1
Z
XOR A�[m]
Logical XOR Data Memo�� to ACC
1
Z
ANDM A�[m]
Logical AND ACC to Data Memo��
1
Note
Z
ORM A�[m]
Logical OR ACC to Data Memo��
1
Note
Z
XORM A�[m]
Logical XOR ACC to Data Memo��
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 Memo��
1
Note
Z
CPLA [m]
Complement Data Memo�� with �es�lt in ACC
1
Z
Increment & Decrement
INCA [m]
Inc�ement Data Memo�� with �es�lt in ACC
1
Z
INC [m]
Inc�ement Data Memo��
1
Note
Z
DECA [m]
Dec�ement Data Memo�� with �es�lt in ACC
1
Z
DEC [m]
Dec�ement Data Memo��
1
Note
Z
Rotate
RRA [m]
Rotate Data Memo�� �ight with �es�lt in ACC
1
None
RR [m]
Rotate Data Memo�� �ight
1
Note
None
RRCA [m]
Rotate Data Memo�� �ight th�o�gh Ca��� with �es�lt in ACC
1
C
RRC [m]
Rotate Data Memo�� �ight th�o�gh Ca���
1
Note
C
RLA [m]
Rotate Data Memo�� left with �es�lt in ACC
1
None
RL [m]
Rotate Data Memo�� left
1
Note
None
RLCA [m]
Rotate Data Memo�� left th�o�gh Ca��� with �es�lt in ACC
1
C
RLC [m]
Rotate Data Memo�� left th�o�gh Ca���
1
Note
C
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...