C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
__asm Keyword Statement Format
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     Since the __asm keyword is a statement separator, you can put
     assembly instructions on the same line. The following statements
     are equivalent:
 
          __asm                  // __asm block
          {
             mov ax, 01h
             int 10h
          }
 
          __asm mov ax, 01h      // Separate __asm lines
          __asm int 10h
 
          // Multiple __asm statements on a line
          __asm mov ax, 01h   __asm int 10h
                                    -♦-