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

INC<br />

INS<br />

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

Name Description Operation<br />

NOTE:<br />

Increment:<br />

INC dest<br />

Adds one to the destination operand.<br />

The operand may be byte or a word<br />

and is treated as an unsigned binary<br />

number (see AAA and DAA).<br />

Instruction Operands:<br />

INC reg<br />

INC mem<br />

In String:<br />

INS dest-string, port<br />

Performs block input from an I/O port<br />

to memory. The port address is placed<br />

in the DX register. The memory<br />

address is placed in the DI register.<br />

This instruction uses the ES register<br />

(which cannot be overridden). After the<br />

data transfer takes place, the DI<br />

register increments or decrements,<br />

depending on the value of the direction<br />

flag (DF). The DI register changes by 1<br />

for byte transfers or 2 for word<br />

transfers.<br />

Instruction Operands:<br />

INS dest-string, port<br />

INS (repeat) dest-string, port<br />

(dest) ← (dest) + 1<br />

Flags<br />

Affected<br />

AF ü<br />

CF –<br />

DF –<br />

IF –<br />

OF ü<br />

PF ü<br />

SF ü<br />

TF –<br />

ZF ü<br />

(dest) ← (src) 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-18

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

Saved successfully!

Ooh no, something went wrong!