home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!val
- From: val@news.ccutah.edu (Val Kartchner)
- Subject: 680x0 Branch Instructions?
- Message-ID: <1993Jan7.184445.25823@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Organization: University of Utah Computer Center
- X-Newsreader: Tin 1.1 PL3
- Date: Thu, 7 Jan 93 18:44:45 GMT
- Lines: 24
-
- I program in 680x0 assembly language from time to time. I will soon be
- programming some routines in assembly language again soon. I need help
- on the meaning and practical usage of the less common branch instructions.
- I know what the eight common ones do. (BRA, BSB, BLS, BLE, BEQ, BNE, BGE,
- BGT) I think that four of the others are used for branches based on
- unsigned compares, but I'm not sure which ones. (BCS, BCC, BPL, BMI?)
- What practical use are the other four branch instructions?
-
- Would an assembly guru be willing to confirm this usage and/or correct it
- as well as provide practical examples (short) of using all of the branch
- instructions? (C-like pseudo-code is prefered, but Pascal-like would be
- fine.)
-
- Thanks in advance,
- -=:[ VAL ]:=-
-
- P.S.: I can figure it out (as I usually do), but I would like confirmation.
-
- P.P.S.: I probably got several of the mneumonics wrong. Please correct.
- --
- |================== #include <disclaimer.h> ==================///=============|
- | "AMIGA: The computer for the creative mind" (tm) Commodore /// Weber State |
- | "Macintosh: The computer for the rest of us"(tm) Apple \\\/// University |
- |== "I think, therefore I AMiga" -- val@csulx.weber.edu ==\///= Ogden UT USA =|
-