Download Print this page

Siemens C16 Series Instruction Set Manual page 84

16-bit cmos single-chip microcontrollers

Advertisement

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

Hide quick links:

Advertisement

loading