
Table Read Operations
Data storage is normally implemented by using registers. However, when working with large
amounts of fixed data, the volume involved often makes it inconvenient to store the fixed data in in-
dividual memory. To overcome this problem, Holtek microcontrollers allow an area of Program
Memory to be setup as a table where data can be directly stored. A set of easy to use instructions
provides the means by which this fixed data can be referenced and retrieved from the Program
Memory.
Other Operations
In addition to the above functional instructions, a range of other instructions also exist such as
²
HALT
²
instruction for power-down operation and instructions to control the operation of the
Watchdog Timer for reliable program operations under extreme electric or electromagnetic envi-
ronment. For their relevant operations, refer to the functional related sections.
Instruction Set Summary
Convention
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]
ADDM A,[m]
ADD A,x
ADC A,[m]
ADCM A,[m]
SUB A,x
SUB A,[m]
SUBM A,[m]
SBC A,[m]
SBCM A,[m]
DAA [m]
Add Data Memory to ACC
Add ACC to Data Memory
Add immediate data to ACC
Add Data Memory to ACC with Carry
Add ACC to Data Memory with Carry
Subtract immediate data from the ACC
Subtract Data Memory from ACC
Subtract Data Memory from ACC with result in Data Memory
Subtract Data Memory from ACC with Carry
Subtract Data Memory from ACC with Carry, result in Data Memory
Decimal adjust ACC for addition with result in Data Memory
1
1
Note
1
1
1
Note
1
1
1
Note
1
1
Note
1
Note
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
Z, C, AC, OV
C
Chapter 2 Instruction Set Introduction
49
Summary of Contents for HT48R05A-1
Page 7: ...vi Cost Effective I O Type MCU...
Page 8: ...P a r t I Microcontroller Profile Part I Microcontroller Profile 1...
Page 9: ...2 Cost Effective I O Type MCU...
Page 52: ...P a r t I I Programming Language Part II Programming Language 45...
Page 53: ...46 Cost Effective I O Type MCU...
Page 59: ...52 Cost Effective I O Type MCU...
Page 90: ...P a r t I I I Development Tools Part III Development Tools 83...
Page 91: ...84 Cost Effective I O Type MCU...
Page 101: ...94 Cost Effective I O Type MCU...
Page 104: ...Appendix Appendix 97...
Page 105: ...98 Cost Effective I O Type MCU...
Page 115: ...108 Cost Effective I O Type MCU...
Page 116: ...A p p e n d i x B Package Information Appendix B Package Information 109 B...
Page 123: ...116 Cost Effective I O Type MCU...
Page 125: ...Amendments...