Then go to Build Dependencies -> Build Customizations and make sure to check masm(.targets. Right-click on the project name in the Solution Explorer, Let's start from adding the Microsoft Macro Assembler into the build.Create a C++ project using Visual Studio.Thus, the only means of adding our Assembly language code is to include it in its own separate file(s).Įach file also has to be included in the correct build configuration to ensure that it adheres to the correct syntax, depending on the selected CPU bitness of the C++ project. Microsoft compiler no longer allows inline inclusion of the Assembly code with the _asm keyword. Tutorialīefore we can begin adding some Assembly language code into our Visual Studio C++ project, I need to point out, that since introduction of the 圆4 CPUs, This blog post will be a step-by-step tutorial for inserting the 圆4 and x86 Assembly Languageįor the purpose of this example I will be using Visual Studio 2019, community edition.įor brevity I will assume that the reader is familiar with both 圆4 and x86 Assembly language instructions and with the Windows calling conventions.Īnd, if you don't like reading blog posts, make sure to check my video recap at the end.