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.

OVERVIEW OF THE 80C186 FAMILY ARCHITECTURE<br />

2.2.1.6 Processor Control Instructions<br />

Processor control instructions (see Table 2-11) allow programs to control various CPU functions.<br />

Seven of these instructions update flags, four of them are used to synchronize the microprocessor<br />

with external events, and the remaining instruction causes the CPU to do nothing. Except for flag<br />

operations, processor control instructions do not affect the flags.<br />

Table 2-11. Processor Control Instructions<br />

Flag Operations<br />

STC<br />

CLC<br />

CMC<br />

STD<br />

CLD<br />

STI<br />

CLI<br />

Set Carry flag<br />

Clear Carry flag<br />

Complement Carry flag<br />

Set Direction flag<br />

Clear Direction flag<br />

Set Interrupt Enable flag<br />

Clear Interrupt Enable flag<br />

External Synchronization<br />

HLT<br />

WAIT<br />

ESC<br />

LOCK<br />

Halt until interrupt or reset<br />

Wait for TEST pin active<br />

Escape to external processor<br />

Lock bus during next instruction<br />

No Operation<br />

NOP<br />

No operation<br />

2.2.2 Addressing Modes<br />

The 80C186 Modular Core family members access instruction operands in several ways. Operands<br />

can be contained either in registers, in the instruction itself, in memory or at I/O ports. Addresses<br />

of memory and I/O port operands can be calculated in many ways. These addressing<br />

modes greatly extend the flexibility and convenience of the instruction set. The following paragraphs<br />

briefly describe register and immediate modes of operand addressing. A detailed description<br />

of the memory and I/O addressing modes is also provided.<br />

2.2.2.1 Register and Immediate Operand Addressing Modes<br />

Usually, the fastest, most compact operand addressing forms specify only register operands. This<br />

is because the register operand addresses are encoded in instructions in just a few bits and no bus<br />

cycles are run (the operation occurs within the CPU). Registers can serve as source operands, destination<br />

operands, or both.<br />

2-27

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

Saved successfully!

Ooh no, something went wrong!