Intel 80286 Arithmetic Instructions, Previous Push Instructions LOW Address After Before Popa

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 61
Image 61

BASIC INSTRUCTION SET

 

 

 

'r

SS LIMIT

OPERANDS FROM

 

,~y\

m ,~~~

 

 

PREVIOUS PUSH

 

 

 

 

INSTRUCTIONS

 

""

 

SP

 

 

 

 

AX

 

 

 

CX

 

 

 

 

DX

 

 

 

 

BX

 

 

 

 

SP

 

 

 

 

BP

 

 

 

 

SI

 

 

 

SP _

DI

 

 

 

~

 

~

~r

 

1 ------- 4

 

 

 

LOW ADDRESS

 

 

,

SS

 

"AFTER

 

 

BEFORE

 

 

 

POPA

POPA

 

 

POPA copies the contents of seven stack locations to the corresponding general regl.ters. POPA discards the .tored value of SP.

G30108

Figure 3-4.POPA

Setting DF (direction flag) causes string instructions to auto-decrement; that is, to process strings from high addresses to low addresses, or from "right-to-Ieft." Clearing DF causes string instructions to auto- increment, or to process strings from "left-to-right."

Setting IF (interrupt flag) allows the CPU to recognize external (maskable) interrupt requests. Clear- ing IF disables these interrupts. IF has no effect on either internally generated interrupts, nonmaskable external interrupts, or processor extension segment overrun interrupts.

Setting TF (trap flag) puts the processor into single-step mode for debugging. In this mode, the CPU automatically generates an internal interrupt after each instruction, allowing a program to be inspected as it executes each instruction, instruction by instruction.

3.3 ARITHMETIC INSTRUCTIONS

The arithmetic instructions of the 8086-family processors simplify the manipulation of numerical data. Multiplication and division instructions ease the handling of signed and unsigned binary integers as well as unpacked decimal integers.

3-5

Page 61
Image 61
Intel 80286, 80287 manual Arithmetic Instructions, Previous Push Instructions LOW Address After Before Popa