
ST52F510/F513/F514
59/106
9 INSTRUCTION SET
ST52F510/F513/F514 supplies107 (98 + 9 Fuzzy)
instructions that perform computations and control
the device. Computational time required for each
instruction consists of one clock pulse for each
Cycle plus 2 clock pulses for the decoding phase.
Total computation time for each instruction is
reported in Table 9.1
The ALU of ST52F510/F513/F514 can perform
multiplication
(MULT)
Multiplication is performed by using 8 bit operands
storing the result in 2 registers (16 bit values), see
Figure 2.3.
Division is performed between a 16 bit dividend
and an 8 bit divider, the result and the remainder
are stored in two 8-bit registers (see Figure 2.4).
and
division
(DIV).
9.1 Addressing Modes
ST52F510/F513/F514
following addressing modes:
I
Inherent: this instruction type does not require
an operandbecause theopcode specifiesall the
information necessary to carry out the
instruction. Examples: NOP, SCF.
I
Immediate: these instructions have an operand
as a source immediate value. Examples:LDRC,
ADDI.
I
Direct: the operands of these instructions are
specified with the direct addresses. The
instructions
allow
the
operands can refer (according to the opcode) to
addresses belonging to the different addressing
spaces. Example: SUB, LDRE.
I
Indirect: data addresses that are required are
found in the locations specified as operands.
Both source and/ordestination operands canbe
addressed indirectly. The operands can refer,
(according to the opcode) to addresses
belonging to different addressing spaces.
Examples: LDRR(reg1),(reg2);
LDER mem_addr,(reg1).
I
Bit Direct: operands ofthese instructionsdirectly
address the bits of the specified Register File
locations. Examples: BSET, BTEST.
9.2 Instruction Types
ST52F510/F513/F514
instruction types:
I
Load Instructions
supplies
the
following
I
Arithmetic and Logic Instructions
I
Bitwise instructions
I
Jump Instructions
I
Interrupt Management Instructions
I
Control Instructions
The instructions are listed in Table 9.1
Table 9.1 Instruction Set
Load Instructions
Mnemonic
Instruction
Bytes
Cycles
Z
S
C
BLKSET
BLKSET const
2
(*)
-
-
-
GETPG
GETPG regx
2
7
-
-
-
LDCE
LDCE confx,memy
3
8/9
-
-
-
LDCI
LDCI confx, const
3
7
-
-
-
LDCNF
LDCNF regx, conf
3
7
-
-
-
LDCR
LDCR confx, regy
3
8
-
-
-
LDER
LDER memx, regy
3
10
-
-
-
LDER
LDER (regx),(regy)
3
11
-
-
-
LDER
LDER (regx), regy
3
10
-
-
-
LDER
LDER memx,(regy)
3
11
-
-
-
LDFR
LDFR fuzzyx, regy
3
8
-
-
-