This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ECALL from C code.

I'm using the Philips 51MX chip (P87C51MB2)
and trying to make sense out of how to
do an extended (23-bit) ECALL or EJMP
using the Keil compiler. I'd very much
like to have this call generated from 'C'
as my emulator will allow me to debug the
code in 'C'. If I use the SRC directive
to generate assembly code from my 'C'
(in order to insert an ASM statement),
then the emulator will only allow debugging in assembler.

I've tried some variations on the example
in the manual for generating a call to
a hard-coded address, but the example is based on the 16-bit addressing of the 8051 and doesn't generate an ECALL.

Can someone give me an example? Or will I
have to wait for a bug fix from Keil?

Thanks,

--Ed