_rom_call_addr Function (Macro)

default.h

#define _rom_call_addr(index) (_rom_call_addr_concat (0x##index, _ROM_CALL_##index))

Returns a void pointer to a TIOS ROM call.

_rom_call_addr returns a void pointer to a TIOS ROM call, which you can cast to any other pointer type. After this cast, you can dereference it and handle it like any other variable.

Note that index is the index of the ROM Call in hexadecimal form, but without the '0x' prefix. The reason for this unusual convention is that kernel programs use ROM calls by referring to _ROM_CALL_xxx, where xxx is the hexadecimal index of the ROM call.

See _rom_call_addr_concat for info about the reason why _rom_call_addr_concat is used.