home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12886 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  897 b 

  1. Path: sparky!uunet!olivea!decwrl!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Yet Another SAS/C thread
  5. Message-ID: <paulk.1b5e@terapin.com>
  6. Date: 31 Aug 92 03:41:51 GMT
  7. References: <la2ipoINNsk6@pollux.usc.edu>
  8. Organization: BBS
  9. Lines: 15
  10.  
  11. > Does the builtin memcmp() work in all cases?  It generally creates code
  12. > like this:
  13. >       bra.s   $2
  14. > $1:   cmp.b   (A0)+,(A1)+
  15. > $2:   dbeqD    0,$1
  16. > The problem that could occur is that the Zero condition flag could be
  17. > true before the branch instruction.  This would cause memcmp() to
  18. > report that the two regions of memory as being equal regardless of
  19. > reality.
  20.  
  21. One would expect that the instruction immediately before those would
  22. be the one putting the countdown value in d0, which would also set
  23. the Z flag correctly.  Is this not what it does?
  24.