17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PreProcessor<br />

ASR.B f,W W0 = f >> 1arithmetic (byte)<br />

ASR.B Wa,Wd Wd = Wa >> 1arithmetic (byte)<br />

BCLR f,B f.bit = 0<br />

BCLR Wd,B Wa.bit = 0<br />

BCLR.B Wd,B Wa.bit = 0 (byte)<br />

BRA a Branch unconditionally<br />

BRA Wd Branch PC+Wa<br />

BRA BZ a Branch if Zero<br />

BRA C a Branch if Carry (no borrow)<br />

BRA GE a Branch if greater than or equal<br />

BRA GEU a Branch if unsigned greater than or equal<br />

BRA GT a Branch if greater than<br />

BRA GTU a Branch if unsigned greater than<br />

BRA LE a Branch if less than or equal<br />

BRA LEU a Branch if unsigned less than or equal<br />

BRA LT a Branch if less than<br />

BRA LTU a Branch if unsigned less than<br />

BRA N a Branch if negative<br />

BRA NC a Branch if not carry (Borrow)<br />

BRA NN a Branch if not negative<br />

BRA NOV a Branch if not Overflow<br />

BRA NZ a Branch if not Zero<br />

BRA OA a Branch if Accumulator A overflow<br />

BRA OB a Branch if Accumulator B overflow<br />

BRA OV a Branch if Overflow<br />

BRA SA a Branch if Accumulator A Saturate<br />

BRA SB a Branch if Accumulator B Saturate<br />

BRA Z a Branch if Zero<br />

BREAK<br />

ICD Break<br />

BSET Wd,B Wa.bit = 1<br />

BSET f,B f.bit = 1<br />

BSET.B Wd,B Wa.bit = 1 (byte)<br />

BSW.C Wa,Wd Wa.Wb = C<br />

BSW.Z Wa,Wd Wa.Wb = Z<br />

BTG Wd,B Wa.bit = ~Wa.bit<br />

BTG f,B f.bit = ~f.bit<br />

BTG.B Wd,B Wa.bit = ~Wa.bit (byte)<br />

BTSC f,B Skip if f.bit = 0<br />

BTSC Wd,B Skip if Wa.bit4 = 0<br />

BTSS f,B Skip if f.bit = 1<br />

BTSS Wd,B Skip if Wa.bit = 1<br />

BTST f,B Z = f.bit<br />

BTST.C Wa,Wd C = Wa.Wb<br />

BTST.C Wd,B C = Wa.bit<br />

BTST.Z Wd,B Z = Wa.bit<br />

87

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!