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

JUMP FROM BOOT PROGRAM TO APPLICATION PROGRAM

I want to jump from a boot program to another program saved in another address with C166, What are the steps I must follow?

Parents
  • It depends on the program you are jumping to. It can be as simple as this:

    ( (void (far*)(void)) 0x123456L )();
    This way the target program will not be able to modify SYSCON since the EINIT instruction will have been executed by your boot program (unless you removed EINIT.)
    If it is important that the target program gets control before EINIT is executed then you will have to either remove EINIT from the boot program if possible or put the jump to second program before EINIT and use software reset and flags (tricky.)

    - mike

Reply
  • It depends on the program you are jumping to. It can be as simple as this:

    ( (void (far*)(void)) 0x123456L )();
    This way the target program will not be able to modify SYSCON since the EINIT instruction will have been executed by your boot program (unless you removed EINIT.)
    If it is important that the target program gets control before EINIT is executed then you will have to either remove EINIT from the boot program if possible or put the jump to second program before EINIT and use software reset and flags (tricky.)

    - mike

Children
No data