Topic : Why is _ljmp_() declared as returning an unsigned int?

Forum : 8051

Original Post
Post Information Post
February 14, 2019 - 2:51pm
Lloyd Slonim

There is an intrinsic function that does a long jump, called _ljmp_(). It is declared this way in intri51.h:

extern unsigned int  _ljmp_             (unsigned short Addr);

Just curious - why would a jump instruction return a value?


Post Information Post
February 19, 2019 - 6:39pm
Lloyd Slonim

In case anyone is curious, the answer was "no particular reason".