This example demonstrate how to handle memory extension in XC878. It includes examples for
1) Read and write array to XRAM using xdata/pdata keyword
2) Call BROM routine from Flash(Bank 0)
3) Jump from Flash (Bank 0) to XRAM to execute code
4) Jump from on-chip XRAM to routine residing in Flash
5) Call BROM routine out of XRAM

The KEIL project has two target
XC878_64K : For XC878-16FF variant i.e. 64K flash
XC878_52K : For any other XC878 variant with less than 64K flash

Please take note:
- Linker setting is important for proper operation.
- For code running in XRAM, check that it does not call any C-library code

Reference:
C51: IN-SYSTEM FLASH PROGRAMMING (PART 1)
http://www.keil.com/support/docs/2364.htm