Intel 80287, 80286 manual Tr E Q, Status Word Record Definition

Models: 80287 80286

1 515
Download 515 pages 45.04 Kb
Page 434
Image 434

PROGRAMMING NUMERIC APPLICATIONS

;RESERVE SPACE FOR STATUS WORD STAT ULW 0RD

;LAY OUT STATUS WORD FIELDS STATUS RECORD

 

BUS Y:

1 ,

6

CoND_CoDE3:

1,

6

STACK_TOP:

3,

6

CoND_CoDE2:

1,

6

CoND_CoDE1:

1,

 

CoND_CoDED:

1,

 

IN T_R EQ :

1 ,

6

RESERVED:

1,

6

P_FLAG:

1,

 

U_FLAG:

1,

 

o_F LAG:

1 ,

 

Z_FLAG:

1,

6

D_FLAG:

1,

6

LF LAG:

1

POLL STATUS WORD UNTIL 80287 IS NOT BUSY

POLL:

FNSTSW STATUS_WORD

 

TEST

STATUS_WORD, MASK_BUSY

 

HZ

POLL

Figure 2-4.Status Word RECORD Definition

SAMPLE

STRUC

 

 

LOBS

DD

SHORT

INTEGER

MEAN

DQ

LONG

REAL

MODE

DW

WORD

INTEGER

STD_DEV

DQ

LONG

REAL

;ARRAY OF OBSERVATIONS -- WORD INTEGER

TEST_SCORES DW 1000 DUP (?>

SAMPLE ENDS

Figure 2-5.Structure Definition

ADDRESSING MODES

80287 memory data can be accessed with any of the CPU's five memory addressing modes. This means that 80287 data types can be incorporated in data aggregates ranging from simple to complex accord- ing to the needs of the application. The addressing modes, and the ASM286 notation used to specify them in instructions, make the accessing of structures, arrays, arrays of structures, and other organi- zations direct and straightforward. Table 2-17 gives several examples of 80287 instructions coded with operands that illustrate different addressing modes.

2-42

Page 434
Image 434
Intel 80287, 80286 manual Tr E Q, Status Word Record Definition