Ldes – Zilog Z16F2810 User Manual
Page 137

UM018809-0611
LDES Instruction
ZNEO
®
CPU Core
User Manual
121
LDES
Definition
Load and Extend Sign
Syntax
LDES dst
Operation
dst[31:0]
S
Description
This instruction loads the destination register with FFFF_FFFFH if the
S
flag is 1. Otherwise, it
clears the destination register to 0000_0000H. This instruction can be used in multiprecision
arithmetic to extend the sign of a low-order result into a register used for high-order values.
Flags
Flags are not affected by this instruction.
Syntax and Opcodes
Examples
Before:
S=1
LDES R13
;Object Code: 453D
After:
R13=FFFF_FFFFH
Before:
S=0
LDES R13
;Object Code: 453D
After:
R13=0000_0000H
Instruction, Operands
Word 0
Word 1
Word 2
LDES Rd
{453H, Rd}