Dear IMG,
> Hi all,
> I have a couple of questions about the 563x core instructions, I
hope
> someone could help me:
> 1 - when I get into a DO loop like
> DO #16,LABEL
> The number of iterations it will do is 15 or 16?, I've seen
that
> when it copyes the number 16 to the LC register it decrements this one
so
> that makes the number of iterations one less that the number specify,
does
> that the same happens with the instruction REP .
Both "DO #16,LABEL" and "REP 16" will run the instruction(s) in
the loop 16 times NOT 15 times. The LC gets loaded with the value 16 and
is decremented to zero at which point the loop ends.
Quote:> 2 - I have serious problems using the comand
> CMP
> JCLR #0,X:(Rn)+,LABEL
> Well the problem this time is that this never jumps to the
label
> when the bit 0 is cleared as it should do, I hope someone could have had
the
> same problem before.
If you are using the EVM56K de*, this problem may be related
to stepping through each instruction. I have found that putting break
points at the possible destinations points of the jumps and using "GO"
works while single stepping does not work. I'm not sure why??? Of
course, if you get any interrupts (from the A/D etc..) between the CMP and
the JCLR, then the status register (SR) may be modified.
I hope this helps.
-Swaroop
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Digital Signal Processing Group office: (217) 244-0575
University of Illinois home: (217) 278-3042
Quote:> 2 - I have serious problems using the comand
> CMP
> JCLR #0,X:(Rn)+,LABEL
> Well the problem this time is that this never jumps to the label
> when the bit 0 is cleared as it should do, I hope someone could have had the
> same problem before.
> Thank you very mutch,
> IMG