
30Mar98@15:00h
Semiconductor Group
84
Version 1.2, 12.97
C166 Family Instruction Set
Instruction Description
MOVBS
Move Byte Sign Extend
MOVBS
Syntax
MOVBS op1,
op2
Operation
(low byte op1)
←
(op2)
IF (op2
7
) = 1 THEN
(high byte op1)
←
FF
H
ELSE
(high byte op1)
←
00
H
END IF
Data Types
WORD, BYTE
Description
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.
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.
Addressing Modes
Mnemonic
Format
Bytes
MOVBS
Rw
n
, Rb
m
D0 mn
2
MOVBS
reg, mem
D2 RR MM MM
4
MOVBS
mem, reg
D5 RR MM MM
4
Condition Flags
E
Z
V
C
N
0
*
-
-
*