Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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.