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

PC to DPTR ?

Hi,


How to move the program counter(PC) to DPTR.Can any one suggest on this.

Thanks in advance,

Regards,
Gopi

Parents Reply Children
  • Btw, it was a joke (but it works anyway :)
    In fact, PC counter is that value which command executed from. So it is not a problem just write something like next:

    .... (your code)
    MOV DPTR,#mark_pointer
    mark_pointer:
    .... (your code)

    Here you indicated a label which value is the PC counter exactly when processor executes command located at it.

    Good days!