03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INSTRUCTION SET DESCRIPTIONS<br />

Table C-4. Instruction Set (Continued)<br />

Name Description Operation<br />

Flags<br />

Affected<br />

WAIT Wait:<br />

WAIT<br />

Causes the CPU to enter the wait state<br />

while its test line is not active.<br />

Instruction Operands:<br />

none<br />

XCHG<br />

NOTE:<br />

Exchange:<br />

XCHG dest, src<br />

Switches the contents of the source<br />

and destination operands (bytes or<br />

words). When used in conjunction with<br />

the LOCK prefix, XCHG can test and<br />

set a semaphore that controls access<br />

to a resource shared by multiple<br />

processors.<br />

Instruction Operands:<br />

XCHG accum, reg<br />

XCHG mem, reg<br />

XCHG reg, reg<br />

None AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

(temp) ← (dest)<br />

(dest) ← (src)<br />

(src) ← (temp)<br />

The three symbols used in the Flags Affected column are defined as follows:<br />

– the contents of the flag remain unchanged after the instruction is executed<br />

the contents of the flag is undefined after the instruction is executed<br />

üthe flag is updated after the instruction is executed<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

C-46

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!