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
  • Sethu,
    Assuming you're coding in C51, the memcpy function is pretty efficient. Consider using that.

    If you're coding in A51, well...you're already aware of the movc instruction; the rest of the loop you can probably figure out. If you decide to use movx @r0 for the destination, however, beware crossing page boundaries as "inc P2" won't necessarily produce what you expect.

Reply
  • Sethu,
    Assuming you're coding in C51, the memcpy function is pretty efficient. Consider using that.

    If you're coding in A51, well...you're already aware of the movc instruction; the rest of the loop you can probably figure out. If you decide to use movx @r0 for the destination, however, beware crossing page boundaries as "inc P2" won't necessarily produce what you expect.

Children