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