64-Bit MASM Compile Error (language type must be specified)

I am receiving an error when compiling the assembly files which I have been unable to fix and am hoping that somebody will be able to tell me how to fix. The ML64.EXE compiler will not accept .586p or .model. I believe the language type needs to be in the PROC statement.

ml64.exe /c /Cx ".\asm\MD4_asm.asm"

Microsoft (R) Macro Assembler (AMD64) Version 8.00.40121

Copyright (C) Microsoft Corporation.All rights reserved.

Assembling: .\asm\MD4_asm.asm

.\asm\MD4_asm.asm(1) : error A2008: syntax error : .

.\asm\MD4_asm.asm(2) : error A2008: syntax error : .model

.\asm\MD4_asm.asm(178) : error A2119: language type must be specified

.\asm\MD4_asm.asm(180) : error A2008: syntax error : pusha

.\asm\MD4_asm.asm(238) : error A2008: syntax error : popa

NMAKE : fatal error U1077: 'ml64.exe' : return code '0x1'

Stop.

Line 1-2

.586p

.modelflat, C

Lines 178-183

MD4_Add_p5PROCPUBLIC, _this:DWORD, _Data:DWORD, _nLength:DWORD

pusha

__thistextequ<[esp+36]>; different offset due to pusha

__Datatextequ<[esp+40]>

__nLengthtextequ<[esp+44]>

[4559 byte] By [CyberGuy] at [2008-2-8]
# 1
See http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=67960

I'll close this one.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

KangSuGatlin at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....

.NET Development

Site Classified