Using the __asm statement

For the complete __asm statement syntax, see Inline assembly statements in z/OS XL C/C++ Language Reference.

Within the __asm statement, the code format string specifies the assembly statement to be embedded in the compiler-generated HLASM source file. Figure 1 provides an example of a simple code format string, enclosed in double quotation marks, in an __asm statement.
Figure 1. Simple code format string
   void foo() {
        __asm ( " AR 1,2" );
   }