We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all! I need to read out the actuall value of the program counter (PC). How can I do that? I use the Keil uVision environment with an 8051 based controller! Thanks for your help!
This sounds like a class project. So, here's a hint. Lookup the $ operator. Jon
So far, I have a first solution on my own:
mov r0, #high(return_label) mov r1, #low(return_label) ljmp sub_function return_label: ; any code here sub_function: clr a mov DPH, r0 mov DPL, r1 jmp @a+DPTR