home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmfra!forgeas
- From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680x0 Branch Instructions?
- Message-ID: <+Rwks*3f2@swinjm.adsp.sub.org>
- Date: 21 Jan 93 07:10:54 GMT
- References: <paulk.3a83@terapin.com> <1993Jan18.170409.28526@fcom.cc.utah.edu>
- Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
- Organization: The Software Winery
- Lines: 26
- X-Newsreader: Arn V1.00 alpha rel2
-
- In article <1993Jan18.170409.28526@fcom.cc.utah.edu>, Val Kartchner writes:
-
- > CMP.l D0,D1 ; if(D1 < D0)
- > BLT lt ; goto lt;
- > Is this correct for the 680x0?
-
- Correct: if D1 < D0 then the internal CMP subtraction (D1-D0) gives a
- negative number so you can write "if(D1 < D0)"
-
- > CMP.l D0,D1 ; if(D0 < D1)
- > BLE else ; {
- > ... ; ...
- > BRA endif ; }
- > else: ; else
- > ... ; {
- > endif: ; }
- > Is this also correct?
-
- Yes.
-
- Best regards,
- Jean-Michel
- --
- Jean-Michel Forgeas uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
- 16170 Bordeville __
- France \/
-