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 change program counter in a C program?

Note: This was originally posted on 7th January 2008 at http://forums.arm.com

How to change program counter in a C program?
Parents
  • hi sreenadhs

                      with normal compiler like turbo c you can't change because the compiler designers restricted the access to modify them due to system instability errors,if you are working on controller you can change the Program counter value refer "debug architecture" chapter  in "Definitive guide to cortex-M3" book. hope this might helpful to you.

    Thanks and Regards,

    Harshan

Reply
  • hi sreenadhs

                      with normal compiler like turbo c you can't change because the compiler designers restricted the access to modify them due to system instability errors,if you are working on controller you can change the Program counter value refer "debug architecture" chapter  in "Definitive guide to cortex-M3" book. hope this might helpful to you.

    Thanks and Regards,

    Harshan

Children
No data