Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/19/01 07:27
Read: times


 
#9456 - RE: program counter
Hi Michael,

you can read the PC with calling a subroutine. Then the PC was pushed on the stack:

call get_pc ;after return: DPTR = PC

get_pc:
pop dph
pop dpl
clr a
jmp @a+dptr


A practical usage you can found on my web:

http://www.specs.de/~danni/ap.../index.htm



Peter


List of 8 messages in thread
TopicAuthorDate
program counter            01/01/70 00:00      
RE: program counter            01/01/70 00:00      
RE: program counter            01/01/70 00:00      
RE: program counter            01/01/70 00:00      
TABLE LOOK-UP METHEOD            01/01/70 00:00      
TABLE LOOK-UP METHEOD            01/01/70 00:00      
TABLE LOOK-UP METHEOD            01/01/70 00:00      
More than 64KB Prog Memory ??            01/01/70 00:00      

Back to Subject List