In this section, we show examples of programs written purely in assembler or alongside other programming languages, including C++ and C#. We assume that the reader is familiar with the coursebook, instructions and directives used to write the assembler programs. We will describe using the integrated development environment (Visual Studio) and methods to assemble programs using the command line only. We will also show how to create static and dynamic libraries written in assembler for use in assembler or in other compilers.
In the following chapter, we explain how to write, assemble, link, and execute assembly-language programs for x64 processors. We assume that the reader is familiar with the most important processor instructions and MASM directives.
To write a program in assembler, it is convenient to use a Visual Studio IDE: either commercial or free (Community Edition). The following section covers installing Visual Studio Community Edition on Windows, along with necessary development packs.
The following sections present three main approaches in assembler development for Windows.
Installation requires the following simple steps: