home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter63 / l63-1.asm next >
Assembly Source File  |  1997-06-18  |  541b  |  11 lines

  1. ; Listing 1: use of fxch to allow addition of first two
  2. ; products to start while third multiplication finishes
  3.         fld     [vec0+0]        ;starts & ends on cycle 0
  4.         fmul    [vec1+0]        ;starts on cycle 1
  5.         fld     [vec0+4]        ;starts & ends on cycle 2
  6.         fmul    [vec1+4]        ;starts on cycle 3
  7.         fld     [vec0+8]        ;starts & ends on cycle 4
  8.         fmul    [vec1+8]        ;starts on cycle 5
  9.         fxch    st(1)           ;no cost
  10.         faddp   st(2),st(0)     ;starts on cycle 6
  11.