This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I get an efficient loop?

I have written the following code to perform a copy procedure between RAM and FLASH Memory:

unsigned char i;
i = 0x00;
do{
i --;
*(&FLASHADDRESS + j + i) = DataBuffer[i];
}while(i != 0x00);

Is there any better way to generate efficient(like DJNZ in assembler) code? :)
THS.

0