You copied the Doc URL to your clipboard.

Behavior of BL and SVC without optional lists in C and C++ code

The BL and SVC instructions of the inline assembler have the following format:

SVC{cond} svc_num, {input_param_list}, {output_value_list}, {corrupt_reg_list}
BL{cond} function, {input_param_list}, {output_value_list}, {corrupt_reg_list}

If you do not specify any lists, then:

  • r0-r3 are used as input parameters

  • r0 is used for the output value and can be corrupted

  • r0-r3, r14, and the PSR can be corrupted.