Rev. 1.10
148
November 04, 2019
Rev. 1.10
149
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash 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
Subtract immediate data from the ACC
1
Z, C, AC, OV
SUB A,[m]
Subtract Data Memory from ACC
1
Z, C, AC, OV
SUBM A,[m]
Subtract Data Memory from ACC with result in Data Memory
1
Note
Z, C, AC, OV
SBC A,[m]
Subtract Data Memory from ACC with Carry
1
Z, C, AC, OV
SBCM A,[m]
Subtract Data Memory from ACC with Carry, result in Data Memory
1
Note
Z, C, AC, OV
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