ulong Isretaddr(ulong retaddr,ulong *procaddr);
Checks whether address retaddr is a possible return address. If command preceding retaddr is a CALL, sets procaddr to the address of the subroutine called by this command and returns address of the CALL command. In all other cases returns 0.
Parameters:
retaddr
(in) Address of the suspected return destination. This value is usually taken from the stack
procaddr
(out)
Optional pointer to the variable that receievs address of the
subroutine, may be NULL. If address is not known (for example, CALL
that uses registers), address is set to 0
Return values:
If retaddr is the return destination, returns address of the CALL command. In all other cases returns 0
See also: