home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19192 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.3 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmfra!forgeas
  2. From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680x0 Branch Instructions?
  5. Message-ID: <+Rwks*3f2@swinjm.adsp.sub.org>
  6. Date: 21 Jan 93 07:10:54 GMT
  7. References: <paulk.3a83@terapin.com> <1993Jan18.170409.28526@fcom.cc.utah.edu>
  8. Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
  9. Organization: The Software Winery
  10. Lines: 26
  11. X-Newsreader: Arn V1.00 alpha rel2
  12.  
  13. In article <1993Jan18.170409.28526@fcom.cc.utah.edu>, Val Kartchner writes:
  14.  
  15. >       CMP.l   D0,D1           ; if(D1 < D0)
  16. >       BLT     lt              ;   goto lt;
  17. > Is this correct for the 680x0?
  18.  
  19. Correct: if D1 < D0 then the internal CMP subtraction (D1-D0) gives a
  20. negative number so you can write "if(D1 < D0)"
  21.  
  22. >       CMP.l   D0,D1           ; if(D0 < D1)
  23. >       BLE     else            ; {
  24. >       ...                     ;   ...
  25. >       BRA     endif           ; }
  26. >     else:                     ; else
  27. >       ...                     ; {
  28. >     endif:                    ; }
  29. > Is this also correct?
  30.  
  31. Yes.
  32.  
  33. Best regards,
  34.     Jean-Michel
  35. --
  36.  Jean-Michel Forgeas      uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
  37.  16170 Bordeville                            __
  38.  France                                      \/
  39.