I'm developing for the Philip 8xC51MB2 using the latest Keil tools but when I use the uVision debugger (simulator) I get the following problem:- In "Extended Call Return Mode" ECRM = 1, the simulator appears to handle a RET instruction incorrectly. The disassembly calls the following library function and pushes a 3-byte address onto the stack:
ECALL C?OFFXADD(0x8002C6)