User's Manual

PROGRAMMING NUMERIC APPLICATIONS
;
RESERVE
SPACE
FOR
STATUS
WORD
STAT
U
LW
0 R D
;
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 E Q : 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
SAMPLE
LOBS
MEAN
MODE
STD_DEV
STRUC
Figure 2-4. Status Word RECORD Definition
DD
SHORT
INTEGER
DQ
LONG
REAL
DW
WORD
INTEGER
DQ
LONG
REAL
;
ARRAY
OF
TEST_SCORES
OBSERVATIONS
--
WORD
INTEGER
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