I relocate the program to starting from 0x1000, by using BL51 MYPROG.OBJ CODE(1000h) It reloactes the code to 1000h successfully, but there is always a ljmp 1000h remains in 0000h. I have some code there, at 0000h already, before loading MYPROG. So the redundent ljmp code will make the loading failed. How to get rid of this ljmp 1000h without manualy erase the machine code?
You need to include your own Startup.A51 with a CSEG at 1000h instead of CSEG at 0000h Thomas
Refer to the following knowledgebase article: http://www.keil.com/support/docs/189.htm Jon
It solved my problem. Thank you!