home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / intel / 3117 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.3 KB

  1. Xref: sparky comp.sys.intel:3117 comp.arch:12433
  2. Newsgroups: comp.sys.intel,comp.arch
  3. Path: sparky!uunet!indetech!daver!quack!dfox
  4. From: dfox@quack.sac.ca.us (David Fox)
  5. Subject: Re: Clock counts for 8086/88?
  6. Message-ID: <fYyJas4@quack.sac.ca.us>
  7. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  8. References: <PHR.93Jan27005427@napa.telebit.com>
  9. Distribution: usa
  10. Date: 28 Jan 1993 06:48:24 UTC
  11. Lines: 75
  12.  
  13. In article <PHR.93Jan27005427@napa.telebit.com> phr@telebit.com (Paul Rubin) writes:
  14. >I notice that the Intel datasheet for the 8086/88 (Microprocessors
  15. >vol. 2) doesn't give the clock counts for the different instructions,
  16. >unlike the sheets for the 286/386/486.  Is there another reference for
  17. >this info?  In particular I want to know how many clocks it takes to
  18. >do a 16-bit integer multiply, and also a 32->16,16 divide.  Also, does
  19. >anyone know if the NEC V20 does these operations faster than an 8088?
  20. >(Yes, some people still write programs for these processors).  Thanks.
  21.  
  22. You could call Intel and see if they still provide data sheets and/or
  23. programmer's manuals for the 8088/8086.  They may not, since the chip
  24. is so old :) but you may never know.  If they still provide these
  25. documents, they're free, and can be ordered by writing:
  26.  
  27. Intel Literature Sales
  28. P.O. Box 7641
  29. Mt. Prospect, IL 60056-7641
  30.  
  31. Phone number is 800-548-4725.
  32.  
  33. Another reference I have handy gives the information you want.  This is from
  34. _Assembly Language Programming for the IBM PC, by Karen A. Lemone, published
  35. in 1985 by Little Brown and Co., ISBN 0-316-52069-1.
  36.  
  37. As you probably know, there are two types of multiply on the 8088/8086, IMUL,
  38. and MUL, and two kinds of division, DIV and IDIV, for signed and unsigned
  39. multiply/divide respectively.
  40.  
  41. For IMUL:
  42.  
  43. reg16 operand:    128-154
  44. mem16 operand:     98-104 + EA clocks (additional clocks require to do
  45.                                        effective address calculations)
  46.  
  47. For MUL:
  48.  
  49. reg16 operand:   118-133
  50. mem16 operand:   124-139 + EA clocks
  51.  
  52. For IDIV:
  53.  
  54. reg16 operand:   165-184
  55. mem16 operand:   171-190 + EA clocks
  56.  
  57. For DIV:
  58.  
  59. reg16 operand:   144-162
  60. mem16 operand:   150-168 + EA clocks
  61.  
  62. The V20 did speed up MUL/DIV, string, and various other operations
  63. (AAM/AAD) on the 8088.  I don't know how much they speeded it up
  64. though, as I don't have that information.  It also added some
  65. real-mode 80186/80286 instructions like push immed, rotate/shift
  66. immediate, etc.
  67.  
  68. >#include disclaimer.h.
  69. On an 8088?  Naa, that would take too many clocks. :)
  70.  
  71. BTW, while I'm here, can someone point me to timing and architecture
  72. differences between the Cyrix FasMath chip in comparison with the Intel
  73. 387?  I called Intel and got their (nice and complete) data sheet for
  74. the 387, but I have a Cyrix, and when I called Cyrix, they said they don't
  75. publish that information anymore. :(
  76. x
  77.  
  78.  
  79. -- 
  80. ------------------------------------------------------------------------
  81. in real life: david fox            email: dfox@quack.sac.ca.us
  82. 5479 Castle Manor Drive,                  
  83. San Jose, CA 95129                 "Thanks for letting me change some
  84. USA                                 magnetic patterns on your HD" -me
  85. 408-253-7992                        
  86. "You've just won an absolutely FREE trip to the Isles of Langerhans" -me
  87. ------------------------------------------------------------------------
  88.