home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11527 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!uunet.ca!geac!lethe!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: SIMPLE assembly question...
  5. Message-ID: <1992Dec19.123132.14222@druid.uucp>
  6. Date: Sat, 19 Dec 1992 12:31:32 GMT
  7. References: <gn#@byu.edu>
  8. Organization: D'Arcy Cain Consulting
  9. Keywords: assembly mov asm 
  10. Lines: 25
  11.  
  12. $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:
  13. >is there ANY difference between  MOV ES,AX
  14. >
  15. >and                              PUSH AX
  16. >                                 POP ES
  17.  
  18. The biggest difference is that the second form takes two separate
  19. memory accesses while the first takes none.  The "MOV ES, AX" takes
  20. 2 clocks on a 386.  The "PUSH AX" takes 2 clocks and "POP ES" takes
  21. 7.  (The numbers are 18, 2 and 21 under protected mode.)  This doesn't
  22. include wait states for the PUSH/POP if your system adds them.  Wait
  23. states don't apply to the MOV method (I am ignoring the access for
  24. the instructions themselves.)
  25.  
  26. Sorry, I don't have the figures for 8088/86/286.
  27.  
  28. >Does this affect ANY flags?
  29.  
  30. The effect on the flags is the same in both cases - none.
  31.  
  32. -- 
  33. D'Arcy J.M. Cain (darcy@druid.com)  |
  34. D'Arcy Cain Consulting              |   There's no government
  35. Toronto, Ontario, Canada            |   like no government!
  36. +1 416 424 2871          DoD#0082   |
  37.