MASM Samples
The samples in this section demonstrate support for Microsoft Macro Assembler (MASM) source files in Visual C++. They are not meant to teach assembly language programming or to present an optimal coding solution.
Note
When building a sample application, first verify that the platform is set to your current platform in the Solution's Configuration property page. For example, you may need to change the platform from Itanium to Win32.
For more information on MASM, see Microsoft Macro Assembler Reference.
In This Section
EUCLIDSTEP1 Sample: Provides a Baseline for the EUCLIDSTEP2 Sample
A pure C project that demonstrates Euclid's algorithm for finding the greatest common divisor.EUCLIDSTEP2 Sample: Demonstrates a Mixed C and ASM Project
An extension of EUCLIDSTEP1 that is a mixed C and ASM project. The core of Euclid's algorithm is moved from the .c file to an .asm file, with the .c file calling into the .asm file.PRIMESSTEP1 Sample: Provides a Baseline for the PRIMESSTEP Sample Series
A pure C project that demonstrates the sieve of Eratosthenes to find prime numbers.PRIMESSTEP2 Sample: Demonstrates a Mixed C and ASM Project
An extension of PRIMESSTEP1 that is a mixed C and ASM project that moves the core algorithm to the .asm file.PRIMESSTEP3 Sample: Demonstrates a Mixed C and ASM Project with a C Header File
An extension of PRIMESSTEP2 that adds a separate C header file and an .asm include file to declare the extern function and global data structure.