ST10 FAMILY PROGRAMMING MANUAL
34/172
2.6 - Instruction conventions
This section details the conventions used in the
individual instruction descriptions. Each individual
instruction description is described in a standard
format in separate sections under the following
headings:
2.6.1 - Instruction name
Specifies the mnemonic opcode of the instruction.
2.6.2 - Syntax
Specifies the mnemonic opcode and the required
formal operands of the instruction. Instructions
can have either none, one, two or three operands
which are separated from each other by commas:
MNEMONIC {op1 {,op2 {,op3 } } }.
The operand syntax depends on the addressing
mode. All of the available addressing modes are
summarized at the end of each single instruction
description.
2.6.3 - Operation
The following symbols are used to represent data
movement, arithmetic or logical operators (see
Table 22).
Missing or existing parentheses signifies that the
operand specifies an immediate constant value,
an address, or a pointer to an address as follows:
opX
Specifies the immediate constant value
of opX.
(opX)
Specifies the contents of opX.
(opX
n
)
Specifies the contents of bit n of opX.
((opX))
Specifies the contents of the contents of
opX (i.e. opX is used as pointer to the
actual operand).
The following abbreviations are used to describe operands:
Table 22 : Instruction operation symbols
Diadic operations
operator (opY)
(opx) <-- (opy)
(opY)
is
MOVED into (opX)
(opx) + (opy)
(opX)
is
ADDED to (opY)
(opx) - (opy)
(opY)
is
SUBTRACTED from (opX)
(opx) * (opy)
(opX)
is
MULTIPLIED by (opY)
(opx) / (opy)
(opX)
is
DIVIDED by (opY)
(opx) ^ (opy)
(opX)
is
logically ANDed with (opY)
(opx) v (opy)
(opX)
is
logically ORed with (opY)
(opx)
⊕
(opy)
(opX)
is
logically EXCLUSIVELY ORed with (opY)
(opx) <--> (opy)
(opX)
is
COMPARED against (opY)
(opx) mod (opy)
(opX)
is
divided MODULO (opY)
Monadic operations
operator (opX)
(opx) ¬
(opX)
is
logically COMPLEMENTED
Table 23 : Operand abbreviations
Abbreviation
Description
CP
Context Pointer register.
CSP
Code Segment Pointer register.
IP
Instruction Pointer.
MD
Multiply/Divide register (32 bits wide, consists of MDH and MDL).
MDL, MDH
Multiply/Divide Low and High registers (each 16 bit wide).
PSW
Program Status Word register.
SP
System Stack Pointer register.
SYSCON
System Configuration register.
C
Carry flag in the PSW register.
V
Overflow flag in the PSW register.
SGTDIS
Segmentation Disable bit in the SYSCON register.
count
Temporary variable for an intermediate storage of the number of shift or rotate cycles which
remain to complete the shift or rotate operation.
tmp
Temporary variable for an intermediate result.
0, 1, 2,...
Constant values due to the data format of the specified operation.
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...