INCLUDE Irvine32.inc askForInteger PROTO C showInt PROTO C, value: SDWORD, outWidth: DWORDAssembly language procedures called by the C++ program must use also the C qualifier so the assembler will use a naming convention the linker can recognize. For example,
DisplayFactors PROC C
...
DisplayFactors ENDP
; (do not INCLUDE Irvine32.inc) .586 .model flat, CNow you no longer have to add the C qualifier to the and directives:
askForInteger PROTO
showInt PROTO, value: SDWORD, outWidth: DWORD
DisplayFactors PROC
...
DisplayFactors ENDP
|
“I’m not arguing, I’m just explaining why I’m right.” ― Unknown |