Intel 80C186XL, 80C188XL Instruction Set Descriptions, Table C-4.Instruction Set Continued, C-26

Models: 80C186XL 80C188XL

1 405
Download 405 pages 42.62 Kb
Page 349
Image 349
LDS dest, src

INSTRUCTION SET DESCRIPTIONS

Table C-4. Instruction Set (Continued)

Name

Description

Operation

Flags

Affected

 

 

 

 

 

 

 

LDS

Load Pointer Using DS:

(dest) (EA)

AF –

 

LDS dest, src

(DS) (EA + 2)

CF –

 

 

DF –

 

Transfers a 32-bit pointer variable from

 

 

 

IF –

 

the source operand, which must be a

 

 

 

OF –

 

memory operand, to the destination

 

 

 

PF –

 

operand and register DS. The offset

 

 

 

SF –

 

word of the pointer is transferred to the

 

 

 

TF –

 

destination operand, which may be

 

 

 

ZF –

 

any 16-bit general register. The

 

 

 

 

 

segment word of the pointer is

 

 

 

transferred to register DS.

 

 

 

Instruction Operands:

 

 

 

LDS reg16, mem32

 

 

 

 

 

 

LEA

Load Effective Address:

(dest) EA

AF –

 

LEA dest, src

 

CF –

 

 

DF –

 

Transfers the offset of the source

 

 

 

IF –

 

operand (rather than its value) to the

 

 

 

OF –

 

destination operand.

 

 

 

PF –

 

Instruction Operands:

 

 

 

SF –

 

LEA reg16, mem16

 

TF –

 

 

 

ZF –

 

 

 

 

LEAVE

Leave:

(SP) (BP)

AF –

 

LEAVE

(BP) ((SP) + 1:(SP))

CF –

 

(SP) (SP) + 2

DF –

 

Reverses the action of the most recent

 

 

IF –

 

ENTER instruction. Collapses the last

 

 

 

OF –

 

stack frame created. First, LEAVE

 

 

 

PF –

 

copies the current BP to the stack

 

 

 

SF –

 

pointer releasing the stack space

 

 

 

TF –

 

allocated to the current procedure.

 

 

 

ZF –

 

Second, LEAVE pops the old value of

 

 

 

 

 

BP from the stack, to return to the

 

 

 

calling procedure's stack frame. A

 

 

 

return (RET) instruction will remove

 

 

 

arguments stacked by the calling

 

 

 

procedure for use by the called

 

 

 

procedure.

 

 

 

Instruction Operands:

 

 

 

none

 

 

 

 

 

 

NOTE: The three symbols used in the Flags Affected column are defined as follows:

the contents of the flag remain unchanged after the instruction is executed ¸? the contents of the flag is undefined after the instruction is executed

the flag is updated after the instruction is executed

C-26

Page 349
Image 349
Intel 80C186XL Instruction Set Descriptions, Table C-4.Instruction Set Continued, C-26, LDS dest, src, LEA dest, src