Hi, I used to work with the AVcase compiler, and it had the exit(0) command to reset the microcontroller. That command doesn't work in Keil. Is there another command in Keil that resets the 8051. Best regards, Eduardo Kluas Barg.
You could try my simple C function that will reset an 8051. Get it at: http://www.embeddedfw.com