Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.35 KB

File metadata and controls

22 lines (15 loc) · 1.35 KB
description Learn more about: Data Directives and Operators in Inline Assembly
title Data Directives and Operators in Inline Assembly
ms.date 06/03/2022
helpviewer_keywords
data directives [C++]
__asm keyword [C++], referencing limitations
MASM (Microsoft Macro Assembler), directives
directives [C++], MASM
MASM (Microsoft Macro Assembler), structures
operators [MASM]
inline assembly, operators
inline assembly, data directives
MASM (Microsoft Macro Assembler), operators
structures [C++], MASM
ms.assetid fb7410c7-156a-4131-bcfc-211aa70533e3

Data directives and operators in inline assembly

Microsoft Specific

The inline assembler doesn't support all the data directives and operators available in MASM.

Remarks

Although an __asm block can reference C or C++ data types and objects, it can't define data objects with MASM directives or operators. Specifically, you can't use the definition directives DB, DW, DD, DQ, DT, and DF, or the operators DUP or THIS. MASM structures and records are also unavailable. The inline assembler doesn't accept the directives STRUC, RECORD, WIDTH, or MASK.

END Microsoft Specific

See also

Using Assembly Language in __asm blocks