
Rev. 1.00
60
��ne 1�� �01�
Rev. 1.00
61
��ne 1�� �01�
HT46R003B
Cost-Effective A/D 8-bit OTP MCU
HT46R003B
Cost-Effective A/D 8-bit OTP MCU
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 Memory to ACC
1
Z� C� AC� OV
ADDM A�[m]
Add ACC to Data Memory
1
Note
Z� C� AC� OV
ADD A�x
Add immediate data to ACC
1
Z� C� AC� OV
ADC A�[m]
Add Data Memory to ACC with Carry
1
Z� C� AC� OV
ADCM A�[m]
Add ACC to Data memory with Carry
1
Note
Z� C� AC� OV
SUB A�x
S�btract immediate data from the ACC
1
Z� C� AC� OV
SUB A�[m]
S�btract Data Memory from ACC
1
Z� C� AC� OV
SUBM A�[m]
S�btract Data Memory from ACC with res�lt in Data Memory
1
Note
Z� C� AC� OV
SBC A�[m]
S�btract Data Memory from ACC with Carry
1
Z� C� AC� OV
SBCM A�[m]
S�btract Data Memory from ACC with Carry� res�lt in Data Memory
1
Note
Z� C� AC� OV
DAA [m]
Decimal adj�st ACC for Addition with res�lt 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 res�lt in ACC
1
Z
Increment & Decrement
INCA [m]
Increment Data Memory with res�lt in ACC
1
Z
INC [m]
Increment Data Memory
1
Note
Z
DECA [m]
Decrement Data Memory with res�lt in ACC
1
Z
DEC [m]
Decrement Data Memory
1
Note
Z
Rotate
RRA [m]
Rotate Data Memory right with res�lt in ACC
1
None
RR [m]
Rotate Data Memory right
1
Note
None
RRCA [m]
Rotate Data Memory right thro�gh Carry with res�lt in ACC
1
C
RRC [m]
Rotate Data Memory right thro�gh Carry
1
Note
C
RLA [m]
Rotate Data Memory left with res�lt in ACC
1
None
RL [m]
Rotate Data Memory left
1
Note
None
RLCA [m]
Rotate Data Memory left thro�gh Carry with res�lt in ACC
1
C
RLC [m]
Rotate Data Memory left thro�gh Carry
1
Note
C