Infineon Technologies C166S V2 User Manual page 276

16-bit microcontroller
Table of Contents

Advertisement

MOVBS
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
(low byte op1) ← (op2)
IF ((op2[7]) = 1) THEN
ELSE
END IF
Description
Moves and sign-extends the contents of the source byte operand specified by op2 to
the word location specified by the destination operand op1. The contents of the moved
data are examined, and the flags are updated accordingly.
CPU Flags
E
Always cleared.
Z
Set if the value of the source byte 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.
Encoding
Mnemonic
MOVBS
Rw
MOVBS
mem , reg
MOVBS
reg , mem
User Manual
Move Byte Sign Extend
Data Movement Instructions
MOVBS op1, op2
op2 → BYTE
op1 → WORD
(high byte op1) ← FFH
(high byte op1) ← 00H
E
Z
0
*
, Rb
n
m
Detailed Instruction Description
V
C
-
-
Format
D0 mn
D5 RR MM MM
D2 RR MM MM
8-276
User Manual
C166S V2
MOVBS
N
*
Bytes
2
4
4
V 1.7, 2001-01

Advertisement

Table of Contents
loading

Table of Contents