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||A pure C project that demonstrates Euclid's algorithm for finding the greatest common denominator.|
|EUCLIDSTEP2||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||A pure C project that demonstrates the sieve of Eratosthenes to find prime numbers.|
|PRIMESSTEP2||An extension of PRIMESSTEP1 that is a mixed C and ASM project that moves the core algorithm to the .asm file.|
|PRIMESSTEP3||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.|
|PRIMESSTEP4||An extension of PRIMESSTEP3 that uses the MASM utility H2INC to create the .asm include file from the C header file.|