AnsweredAssumed Answered

Question about DSP 56K Assembly Syntax

Question asked by Keith Smith on Apr 3, 2015
Latest reply on Apr 7, 2015 by xiangjun.rong

I am coming up to speed on a project that uses a DSP 56303. The project is written completely in assembly, an old project.

 

I am looking at code that has to do with testing and branching. The DSP Family Manual is a bit unclear to me on a few instructions.

 

If I have

 

btst    #M_PD5,X:<<M_PDRC

bcc     _elsewhere

 

What value does bit M_PD5 have for the code to branch to '_elsewhere', 0 or 1?

 

If I have the following

 

btst    #M_PD5,X:<<M_PDRC

bcs     _elsewhere

 

this is branching on the opposite state of bit M_PD5 as the code above, correct?

Outcomes