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.
For more information on MASM, see Microsoft Macro Assembler Reference.
In This Section
A pure C project that demonstrates Euclid's algorithm for finding the greatest common divisor.
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.
A pure C project that demonstrates the sieve of Eratosthenes to find prime numbers.
An extension of PRIMESSTEP1 that is a mixed C and ASM project that moves the core algorithm to the .asm 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.