Intel 80286 Computer Accessories User Manual


 
TABLE OF
CONTENTS
Page
Comparison Instructions ............................................................................................ 2-10
Transcendental Instructions ....... ........ ......................... ............................. .................. 2-12
Constant
Instructions ................................................................................................. 2-14
Processor
Control Instructions ......... ........ ....... .................. ....... ....................... ..... ..... 2-15
Instruction Set Reference Information .......................................................................
2-21
Instruction Execution Time ..................................................................................
2-21
Bus Transfers .......... ............... ..................... ........................................................ 2-22
Instruction Length ................................................................................................ 2-23
Programming Facilities ................................................................................................... 2-38
High-Level Languages ................................................................................................ 2-38
PL/M-286 ............ ................................. ....... ................................................................ 2-39
ASM286 ....................................................................................................................... 2-40
Defining Data ........................................................................................................... 2-40
Records and Structures ......................................................... .................................
2-41
Addressing Modes .................................................................................................. 2-42
COlTlparative Programming Example ......................................................................... 2-43
80287
Emulation ..................................... ....................................................... ............. 2-45
Concurrent Processing with the 80287 .......... .................. ........................ ..................... 2-45
Managing Concurrency.......................................................................... .................... 2-48
Instruction Synchronization ........................................................................................ 2-48
Data Synchronization ................................................................................................. 2-49
Error Synchronization ................................................................................................. 2-50
, Incorrect Error Synchronization ............................................................................. 2-52
Proper Error Synchronization ................................................................ ................. 2-52
CHAPTER 3
SYSTEM-LEVEL NUMERIC PROGRAMMING
80287 Architecture ......... ........ ........... ......... ....................................................... .............
3-1
Processor Extension Data Channel ............ ...................... .................... .....................
3-1
Real-Address Mode and Protected Virtual-Address Mode .......................................
3-1
Dedicated and Reserved I/O Locations ........ ................ ........ .................. ................... 3-2
Processor
Initialization and Control.............................................................................. 3-2
System
Initialization .................................................................................................... 3-2
Recognizing the 80287
NPX
....................................................................................... 3-2
Configuring the Numerics Environment .................... ........ .............. ........ .......... ......... 3-4
Initializing the 80287 ................................................................................................... 3-5
80287
Emulation . ............................................................... ....................... ................... 3-5
Handling Numeric Processing Exceptions ................................................................. 3-6
Simultaneous Exception Response . ....... ................................. ...................... ............ 3-7
Exception
Recovery· Examples .................................................................................. 3-7
CHAPTER 4
Conditional Bra,nching Examples ...................................................................................
4-1
Exception Handling Examples ....................................................................................... 4-3
Floating-point to ASCII Conversion Examples ............................................................. 4-7
Function Partitioning ................................................................................................... 4-14
Exception Considerations . ................................. ................. ...................... ................. 4-15
Special Instructions .................................................................................................... 4-15
Description
of
Operation ..... .................. ....... ....... ....................................................... 4-15
Scalin"g
the Value ........................................................................................................ 4-16
Inaccur~cy
in
Scaling .............................................................................................. 4-16
vi