code size

I made a small test program to test the AT89C2051 controller board. Project is created with startup file in keil. program is getting compiled but not running from controller.

hex code is generated beyond 0x7FF location. that is most of the code is located at 0x800 location. but controller memory range is 0-7ff only. how to relocate main function with in 0x7ff range? because first instruction at 0th location is jumping to 800 location

i think due to this controller is not running. but its working in simulation mode. please help to sort out this issue.

code is here:
int main(void)
{

while(1) { P0=0x55; P0=0xAA; }

}

More questions in this forum