680x0:Condition codes

From Amiga Coding
Revision as of 23:24, 31 October 2007 by Spellcoder (talk | contribs) (added signed/unsigned, mathematical meaning and some more CC's)
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>aHigh0010unsigned
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