English
Language : 

M166 Datasheet, PDF (30/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
•Addressing Modes• This part specifies which combinations of different addressing modes are
available for the required operands. Mostly, the selected addressing mode combination is specified
by the opcode of the corresponding instruction. However, there are some arithmetic and logical
instructions where the addressing mode combination is not specified by the (identical) opcodes but
by particular bits within the operand field.
The addressing mode entries are made up of three elements:
Mnemonic Shows an example of what operands the respective instruction will accept.
Format This part specifies the format of the instructions as it is represented in the assembler listing.
The figure below shows the reference between the instruction format representation of the
assembler and the corresponding internal organization of such an instruction format (N = nibble =
4 bits).
The following symbols are used to describe the instruction formats:
00H through FFH : Instruction Opcodes
0, 1
: Constant Values
:....
: Each of the 4 characters immediately following a colon represents a single bit
:..ii
: 2-bit short GPR address (Rwi)
SS
: Code segment number (seg). 8-bit for C165/7, 2-bit (:..ss) for SAB8xC166
:..##
: 2-bit immediate constant (#irang2)
:.###
: 3-bit immediate constant (#data3)
c
: 4-bit condition code specification (cc)
n
: 4-bit short GPR address (Rwn or Rbn)
m
: 4-bit short GPR address (Rwm or Rbm)
q
: 4-bit position of the source bit within the word specified by QQ
z
: 4-bit position of the destination bit within the word specified by ZZ
#
: 4-bit immediate constant (#data4)
t:ttt0
: 7-bit trap number (#trap7)
QQ
: 8-bit word address of the source bit (bitoff)
rr
: 8-bit relative target address word offset (rel)
RR
: 8-bit word address reg
ZZ
: 8-bit word address of the destination bit (bitoff)
##
: 8-bit immediate constant (#data8)
## xx
: 8-bit immediate constant (represented by #data16, byte xx is not significant)
@@
: 8-bit immediate constant (#mask8)
MM MM
: 16-bit address (mem or caddr; low byte, high byte)
## ##
: 16-bit immediate constant (#data16; low byte, high byte)
Number of Bytes Specifies the size of an instruction in bytes. All C166 Family instructions consist
of either 2 or 4 bytes. Regarding the instruction size, all instructions can be classified as either single
word or double word instructions.
Semiconductor Group
30
Version 1.2, 12.97