Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AA7

Opcode Database

0AA7

Description0AA7 work similar to the 0AA5 except that additionally there is a variable to keep the result of called function. It means that the last parameter here is always a variable. Thus the num_params does not include this one. We call the function at address 0x569660 and pass two parameters X and Y to it in this example. The function result will be stored to the 2@.

Parameters:
1 - address of called function. It may be the address inside the gta_sa.exe or inside a loaded dll.
2 - number of parameters to pass to the function
3 - number of parameters that must be removed from the stack after the function execution. See the 0AA5 for explanation.
Parameters (v2)1) Memory address (Integer) (INT)
2) Integer (INT)
3) Integer (INT)
4) Call arguments (...)
5) (Returned) Any value (ANY)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0AA7=-1,call_function_return %1d% num_params %2h% pop %3h%
Example0AA7: call_function_return 0x569660 num_params 2 pop 2 0@ 1@ store_to 2@
Command NameCALL_FUNCTION_RETURN

<< 0AA6

0AA8 >>