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 to use movc in keil?

Hi,
Using at89c51 i want some data to copy from program memory to external Data memory..
without using memcopy()...
any idea ?

Parents
  • Hint: If you make the two variables structs, you can simply do the assignment, and the compiler will implement the copy in an effiecient manner!

    You will find that C51 uses memcpy() to implement the assignment leaving you no better off.

    I can think of few reasons to aviod using memcpy() other than avoiding the significant memory space that memcpy() takes up. However, almost all non-trivial programs will have memcpy() in them already.

Reply
  • Hint: If you make the two variables structs, you can simply do the assignment, and the compiler will implement the copy in an effiecient manner!

    You will find that C51 uses memcpy() to implement the assignment leaving you no better off.

    I can think of few reasons to aviod using memcpy() other than avoiding the significant memory space that memcpy() takes up. However, almost all non-trivial programs will have memcpy() in them already.

Children