home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11571 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.4 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sunic!ugle.unit.no!flipper.pvv.unit.no!venaas
  2. From: venaas@flipper.pvv.unit.no (Stig Venaas)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: SIMPLE assembly question...
  5. Message-ID: <1992Dec22.094718.16178@ugle.unit.no>
  6. Date: 22 Dec 92 09:47:18 GMT
  7. References: <gn#@byu.edu> <rol-221292092834@90.222.1.80>
  8. Sender: news@ugle.unit.no (NetNews Administrator)
  9. Organization: ProgramVareVerkstedet - UNIT
  10. Lines: 25
  11.  
  12. In article <rol-221292092834@90.222.1.80> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes:
  13. >In article <gn#@byu.edu>, $dougn@sasb.byu.edu (Douglas R. Nebeker -
  14. >MIS_SAS) wrote:
  15. >> 
  16. >> is there ANY difference between  MOV ES,AX
  17. >> 
  18. >> and                              PUSH AX
  19. >>                                  POP ES
  20. >>  
  21. >
  22. >I think there are two major differences between the two forms :
  23. >   - Execution time (only important if your program is time critical, and
  24. >     this piece of code is inside a loop) : first solution is faster,
  25. >   - the flags are set in the first case, but not in the second (well, I'm
  26. >     not absolutely sure, but I really think so...)
  27. >
  28. >Paul Rolland
  29. >
  30. >A bug can be changed to a feature by documenting it. Developpers know !
  31.  
  32. The flags will be unchanged in both cases. The only difference between
  33. them is speed. MOV will use only 2 cycles while PUSH-POP uses 7.
  34. That's quite a difference. They both use only 2 bytes.
  35.  
  36. Stig
  37.