Restrictions on inline assembly statements
The assembler instructions must be self-contained within
an asm statement. The asm statement can only be used
to generate instructions. All connections to the rest of the program must
be established through the output and input operand list. In particular:
- No more than 10 operands can be used in the assembly instructions
within one inline assembly statement (operands that are listed but not used
do not count).
- Branching to a label in another asm statement is not supported.
- Referencing an external symbol directly, without going through the operand
list, is not supported.
- Pseudo-operators and directives, such as instructions with the suffix .section, .text, or .data, are not supported.
- The total number of instructions in one asm statement cannot
exceed 63. The instruction count must also include the instructions generated
by the compiler to handle the operands in the operand list.
Related information
End of IBM extension