680x0:Condition codes

From Amiga Coding
Revision as of 23:27, 31 October 2007 by Spellcoder (talk | contribs)
Jump to: navigation, search

Condition codes are used in branch instructions Bcc and DBcc.
Replace the cc with any of the following codes:


ccmathematicalmeaningbitcodesignedcomment
NEb<>aNot equal0110
EQb==aEqual0111
HIb>aHIgher0010unsigned
LOb<aLOwerunsigned
HSb>=aHigher or Sameunsigned
LSb<=aLower or same0011unsigned
GTb>aGreater Then1110signed
LTb<aLess Then1101signed
GEb>=aGreater then or Equal1100signed
LEb<=aLess then or Equal1111signed
MIb<0Minus1011
PLb>0Plus1010
CCCarry clear0100
CSCarry set0101
VCNo overflow1000
VSOverflow1001

(the next 2 are not known by all assemblers, because they aren't really usefull) (Seka does know them)
TTrue0000allways branch, same as bra
FFalse0001never branch