ST10 FAMILY PROGRAMMING MANUAL
91/172
MOVBS
Move Byte Sign Extend
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 contents of the moved data is examined, and the flags are updated
accordingly.
Flags
Addressing Modes
E
Z
V
C
N
0
*
-
-
*
E
Always cleared.
Z
Set if the value of the source operand op2 equals zero. Cleared otherwise.
V
Not affected.
C
Not affected.
N
Set if the most significant bit of the source operand op2 is set. Cleared otherwise.
Mnemonic
Format
Bytes
MOVBS
Rb
n
, Rb
m
D0 mn
2
MOVBS
reg, mem
D2 RR MM MM
4
MOVBS
mem, reg
D5 RR MM MM
4
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...