We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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)
Can you show the code that generates the function call? The ERET instruction should be used. It sounds like the standard 8051 library is getting used (instead of the MX library). Jon