i need to change the starting location of my pgm frm 00h to say,400h..i followed the steps as per mentioned in.... http://www.keil.com/support/docs/189.htm i can see the changed starting location in the memory map file...but when i try to implemnt it on hardware,i get no output probably bcos da execution begins at 00h only...pls help...
Why "probably"?
What tests/investigations/debugging have you done to make certain whether that is or is not the cause?
Only you have your code - nobody else can debug it for you!
Remember the 8051 hardware will always start execution at CODE address zero. This is hard-wired into the physical construction of the chip - there is nothing you can do to change this!
Therefore, as Per says, you must have something at CODE address zero that will cause the CPU to jump to the start of your code.
Have you done that?
See my previous post - how do you expect the processor to find that program at that location...?
wel i thot since main() has changed to a new location,execution of the pgm wud also henceforth begin at the new location...nw wat do i do so that the processor will jump to a the start of my code?
"wel i thot since main() has changed to a new location"
Slow down. Again: Why do you need to move main?
View all questions in Keil forum