AnsweredAssumed Answered

BF506F: How to use LSETUP ?

Question asked by odemirci on Nov 19, 2011
Latest reply on Nov 21, 2011 by Nabeel

Hello,

 

I like to know what is wrong below when I need to use LSETUP for Looping.

 

Thank you,

 

Oman Demirci

 

 

// Example of using LSETUP

  P1.L = 0x000F;
  P1.H = 0x0000;
  LSETUP(startl, endl) LC0 = P1 ;
  startl:
    R1+=1;
    R0.L=W[I0];     // Read first value from dummy vector
    R0+=1;          // Increment R0 by 1
    W[I0++]=R0.L;   // Save R0 back and then increment I0
  endl:

Outcomes