Keil Logo

C166: JUMPING TO A SECOND PROGRAM FROM A BOOT LOADER


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03

QUESTION

I have an application that is separated into two parts that are compiled and linked separately. Part 1 is a "Bootstrap Program" that checks to see if Part 2 "The Application" is present at address 0x10000. After execution of Part 1 my program should jump to address 0x10000.

How do I do this?

ANSWER

Modify Start167.A66 so that it contains a CALL instruction to 'main', rather than a JMP to 'main'. If you return from the 'main' function, your application executes the next instruction which is a JMPS to address 0x10000.

Changes in START167.A66:

$IF TINY
                CALL    main
$ELSE
                CALL    FAR main
$ENDIF
                JMPS    1,0000H

?C_RESET        ENDP

Last Reviewed: Wednesday, March 29, 2000


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.