Technical Support

C51: PERFORMING A SOFTWARE RESET


Information in this article applies to:

  • C51 Version 5.50

QUESTION

How can I force the C compiler to generate a jump to 0000H in order to perform a software reset?

ANSWER

The following line of code will do the trick:

((void (code *)(void)) 0) ();

This generates:

LCALL   0000h

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Monday, December 02, 2002


Did this article provide the answer you needed?
 
Yes
No
Not Sure