Hello Stack Overflowers! 我写了一个asm代码文件,我正在尝试使用ml64(v14.00.23506.0)构建 但汇编程序给了我奇怪的输出..就像第1行有什么不对。 我确定代码没有任何问题,因为它在其他ml64版本上运行良好。它与VS Community 2015中的ml64配合得很好,VC ++ BuildTools Tech-Preview中的当前ml64给出了屏幕截图中的错误。 我从VS Express 2015和VC BuildTools 2015 TP尝试了ml64,两者都给出了相同的错误。 PS。我用我在VIM编写和编码的批处理脚本构建。
任何人都可以指导我如何克服这个问题吗?
- 更新 - 这是我修复了以前的批处理错误后的cmd构建错误。 仍然奇怪的错误,谁能理解? (那是一个测试代码)
includelib kernel32.lib
includelib user32.lib
EXTERN GetModuleHandleExW:PROC
EXTERN MessageBoxW:PROC
EXTERN ExitProcess:PROC
.DATA
ALIGN 4
pwszMessage WORD "H","e","l","l","o",","," ","W","o","r","l","d","!"
WORD 0
pwszCaption WORD "M","e","s","s","a","g","e","B","o","x"
WORD 0
hInstance QWORD 0
.CODE
entry PROC
sub rsp, 28h
xor rcx, rcx
mov rdx, rcx
lea r8, [hInstance]
call GetModuleHandleExW
lea rdx, [pwszMessage]
lea r8, [pwszCaption]
mov r9d, 40h
call MessageBoxW
call ExitProcess ; rcx suppose to hold 0 already
add rsp, 28h
ret
entry ENDP
END