1 / 10

The 8087 math coprocessor

The 8087 math coprocessor. 8087 Data Types. 3 Types 1. Binary integer 2. Packed Decimal 3. Real. Binary Integers. Assembler Directive Word integer 16 bitsDW (Define Word) Short integer 32 bitsDD (Define DoubleWord ) Long Integer 64 bitsDQ (Define Quadword ).

albany
Download Presentation

The 8087 math coprocessor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The 8087 math coprocessor

  2. 8087 Data Types • 3 Types 1. Binary integer 2. Packed Decimal 3. Real

  3. Binary Integers Assembler Directive • Word integer16 bitsDW(Define Word) • Short integer 32 bitsDD(Define DoubleWord) • Long Integer 64 bitsDQ(Define Quadword)

  4. Packed Decimal Numbers Assembler Directive Packed Decimal80 bitsDT(Define TenBytes)

  5. Real Numbers Assembler Directive • Short real32 bitsDD(Define DoubleWord) • Long Real 64 bitsDD(Define QuadWord) • Temporary Real 80 bitsDT(Define TenBytes)

  6. The 8087 Internal Architecture

  7. Control word format

  8. Status word format

  9. 8087 stack operation

  10. Pythagoras Theorem Data segment word public Side_add 3.0 Side_bdd 4.0 Result dd 0 Ctrl_worddw 0 Status_worddw 0 Data ends Code segment word puplic Assume cs: code, ds:data Start: movax,data movds,ax FINIT mov ctrl_word,03ffh FLDCW ctrl_word FLD side_a FMUL ST,ST(0) FLD side_b FMUL ST,ST(0) FADD St,ST(1) FSQRT FSTSW status_word Movax,status_word AND al,0BFH JNZ stop FSTP result Stop: NOP Code ends End start

More Related