English
Language : 

M166 Datasheet, PDF (84/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
MOVBS
Move Byte Sign Extend
MOVBS
Syntax
Operation
Data Types
Description
MOVBS op1, op2
(low byte op1) ← (op2)
IF (op27) = 1 THEN
(high byte op1) ← FFH
ELSE
(high byte op1) ← 00H
END IF
WORD, BYTE
Moves and sign extends the contents of the source byte specified by op2
to the word location specified by the destination operand op1. The con-
tents of the moved data is examined, and the condition codes are updated
accordingly.
Condition Flags
E
Z
V
C
N
0
*
-
-
*
Addressing Modes
E Always cleared.
Z Set if the value of the source operand op2 equals zero. Cleared other-
wise.
V Not affected.
C Not affected.
N Set if the most significant bit of the source operand op2 is set. Cleared
otherwise.
Mnemonic
MOVBS
MOVBS
Rwn, Rbm
reg, mem
MOVBS mem, reg
Format
D0 mn
D2 RR MM MM
D5 RR MM MM
Bytes
2
4
4
Semiconductor Group
84
Version 1.2, 12.97