Hi, How to move the program counter(PC) to DPTR.Can any one suggest on this. Thanks in advance, Regards, Gopi
.... CALL loadPCtoDPTR loadPCtoDPTR: POP DPH POP DPL PUSH DPL PUSH DPH RET
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!