KS57C2308/P2308/C2316/P2316 SAM47 INSTRUCTION SET
5-1
5SAM47 INSTRUCTION SET
OVERVIEW
The SAM47 instruction set is specifically designed to support the large register files that are typical of most
KS57-series microcontrollers.
The SAM47 instruction set includes 1-bit, 4-bit, and 8-bit instructions for data manipulation, logical and arithmetic
operations, program control, and CPU control. I/O instructions for peripheral hardware devices are flexible and
easy to use. Symbolic hardware names can be substituted as the instruction operand in place of the actual
address. Other important features of the SAM47 instruction set include:
1-byte referencing of long instructions (REF instruction)
Redundant instruction reduction (string effect)
Skip feature for ADC and SBC instructions
Instruction operands conform to the operand format defined for each instruction. Several instructions have
multiple operand formats.
Predefined values or labels can be used as instruction operands when addressing immediate data. Many of the
symbols for specific registers and flags may also be substituted as labels for operations such DA, mema, memb,
b, and so on. Using instruction labels can greatly simplify programming and debugging tasks.
INSTRUCTION SET FEATURES
In this section, the following SAM47 instruction set features are described in detail:
Instruction reference area
Instruction redundancy reduction
Flexible bit manipulation
ADC and SBC instruction skip condition
NOTE
1. The ROM size accessed by instruction may change for different devices in the SAM47 product.
2. The number of memory bank selected by SMB may change for different devices in the SAM47 product
family.
3. The port names used instruction set may change for different devices in SAM47 product family.
4. The interrupt names and the interrupt numbers used in the instruction set may change for different
devices in the SAM47 product family.