《WindowsPE权威指南》附书源代码
http://www.hzcourse.com/web/refbook/detail/4372/215
Masm32下载:http://masm32.com/
helloword源码
- .386
- .model flat,stdcall
- option casemap:none
-
- include windows.inc
- include user32.inc
- includelib user32.lib
- include kernel32.inc
- includelib kernel32.lib\
- ;数据段
- .data
- szText db 'HelloWorld',0
- ;代码段
- .code
- start:
- invoke MessageBox,NULL,offset szText,NULL,MB_OK
- invoke ExitProcess,NULL
- end start
编译源码asm生成obj对象
ml -c -coff 1.asm
链接obj对象生成exe
link subsystem:windows 1.obj