Condition Tests on Flags
E-3C2xLP Instruction Set Compatibility
E.2 C2xLP vs. C28x Mnemonics
Table E−2 lists the C2xLP instructions with the C28x equivalent syntax. The
C28x assembler will accept either the C2xLP syntax or the equivalent C28x
syntax. The disassembler will decode and display the C28x syntax.
The C2xLP cycle count numbers shown are for zero wait-state internal
memory, where n equals the number of repetitions (i.e., if an instruction is re-
peated, using the RPT instruction for repeatable instructions, n times it is exe-
cuted n+1 times).
Table E−2. C2xLP Instructions and C28x Equivalent Instructions
C2xLP C28x
Instruc-
tion
Mnemonic Cycles Size Instruc-
tion
Mnemonic Cycles Size
ABS n+1 16 ABS ACC 1 16
ADD loc16[,0] n+1 16 ADD ACC,loc16 {<<0} n+1 16
ADD loc16,1..15 n+1 16 ADD
ACC,loc16 << 1..15 n+1 32
ADD loc16,16 n+1 16 ADD
ACC,loc16 << 16 n+1 16
ADD #8bit 1 16 ADDB
ACC,#8bit 1 16
ADD #16bit[,0..15] 2 32 ADD
ACC,#16bit {<<0..15} 1 32
ADDC loc16 n+1 16 ADDCU
ACC,loc16 1 16
ADDS loc16 n+1 16 ADDU
ACC,loc16 n+1 16
ADDT loc16 n+1 16 ADD
ACC,loc16 << T n+1 32
ADRK #8bit 1 16 ADRK
#8bit 1 16
AND loc16 n+1 16 AND
ACC,loc16 n+1 16
AND #16bit,16 2 32 AND
ACC,#16bit<<16 1 32
AND #16bit[,0..15] 2 32 AND
ACC,loc16 {<< 0..15} 1 32
APAC n+1 16 ADDL
ACC,P<<PM n+1 16
B pma 4 32 XB
pma,UNC 7 32
B pma,*,ARn 4 32 XB
pma,*,ARPn 4 32
B pma,*ind 4 32 NOP
XB
*ind
pma, UNC
832
B
pma,*ind,ARn 4 32 NOP
XB
*ind
pma,*,ARPn
5 48
†
True/False