Include a prototype for the function you are implementing in Asm
Declare your procedure for use by the C program using keyword PROC
; repeatedly subtracting the smaller number from the larger number
; until zero is reached. The number remaining is the greatest common
Both C and Asm code must be part of the link step – see Debug/Build.htm in the EuclidStep2 example below.
(I hope it will work in 2005 as well …)
This example is one of the examples that ships with VisualStudio 2003
View | Solution Explorer | expand Source Files folder
Project | Properties | Debugging | Command Arguments
Debug | Windows | Registers
Debug | Windows | Disassembly (this is nice)
I didn’t see a way to display the flags register.