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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INSTRUCTION SET DESCRIPTIONS<br />

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

Name Description Operation<br />

Flags<br />

Affected<br />

JO<br />

JP<br />

JPE<br />

JS<br />

LAHF<br />

NOTE:<br />

Jump on Overflow:<br />

JO disp8<br />

Transfers control to the target location<br />

if the tested condition (OF = 1) is true.<br />

Instruction Operands:<br />

JO short-label<br />

Jump on Parity:<br />

Jump on Parity Equal:<br />

JP disp8<br />

JPE disp8<br />

Transfers control to the target location<br />

if the tested condition (PF = 1) is true.<br />

Instruction Format:<br />

JP short-label<br />

JPE short-label<br />

Jump on Sign:<br />

JS disp8<br />

Transfers control to the target location<br />

if the tested condition (SF = 1) is true.<br />

Instruction Format:<br />

JS short-label<br />

Load Register AH From Flags:<br />

LAHF<br />

Copies SF, ZF, AF, PF and CF (the<br />

8080/8085 flags) into bits 7, 6, 4, 2 and<br />

0, respectively, of register AH. The<br />

content of bits 5, 3, and 1 are<br />

undefined. LAHF is provided primarily<br />

for converting 8080/8085 assembly<br />

language programs to run on an 8086<br />

or 8088.<br />

Instruction Operands:<br />

none<br />

if<br />

(OF) = 1<br />

then<br />

(IP) ← (IP) + disp8 (sign-ext to 16 bits)<br />

if<br />

(PF) = 1<br />

then<br />

(IP) ← (IP) + disp8 (sign-ext to 16 bits)<br />

if<br />

(SF) = 1<br />

then<br />

(IP) ← (IP) + disp8 (sign-ext to 16 bits)<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<br />

(AH) ← (SF):(ZF):X:(AF):X:(PF):X:(CF) AF –<br />

CF –<br />

DF –<br />

IF –<br />

OF –<br />

PF –<br />

SF –<br />

TF –<br />

ZF –<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 />

C-25

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

Saved successfully!

Ooh no, something went wrong!