win32 asm Hello World Demo
2011-06-21 22:01
381 查看
编译和链接选项
ml.exe /c /coff /nologo /Fo
link.exe /SUBSYSTEM:WINDOWS /nologo /OUT
Hello World Demo Compiled with MASMPlus
此段反汇编结果:程序入口点在0x401000,先是4个push,然后是call MessageBoxA
返回值到EAX,为ID_OK=1,从图中寄存器可见。
ml.exe /c /coff /nologo /Fo
link.exe /SUBSYSTEM:WINDOWS /nologo /OUT
Hello World Demo Compiled with MASMPlus
.386 .model flat, stdcall option casemap :none include windows.inc include user32.inc include kernel32.inc include masm32.inc include gdi32.inc includelib gdi32.lib includelib user32.lib includelib kernel32.lib includelib masm32.lib include macro.asm .data szTitle db 'Title',0 szMessage db 'Hello World',0 .code START: ;1.push and call push MB_OK or MB_ICONINFORMATION push offset szTitle push offset szMessage push NULL call MessageBox ;2.invoke伪指令 ;invoke MessageBox,NULL,offset szMessage,offset szTitle,MB_OK or MB_ICONINFORMATION invoke ExitProcess,0 end START
此段反汇编结果:程序入口点在0x401000,先是4个push,然后是call MessageBoxA
返回值到EAX,为ID_OK=1,从图中寄存器可见。
相关文章推荐
- win32 asm Hello World Demo
- win32SDK的hello,world程序(二)
- React(antd和react-bootstrap)的HelloWorld Demo
- Api demo源码学习(6)--App/Activity/Hello World
- ASM linux helloworld
- mina推送场景小hello world demo
- HelloWorld CMake Demo 03:CMake中构建静态库与动态库及其使用
- prjHelloWorld - Win32 Application Hello World 代码解析 - VC++6 - HackerJLY
- 用汇编写的第一个程序---helloworld.asm
- HelloWorld CMake Demo 03:CMake中构建静态库与动态库及其使用
- Spring Data JPA helloworld 最简单的demo
- minigui demo helloworld在arm目标板子上的运行
- win32SDK的hello,world程序
- 在android真机上运行cocos2d-html5-2.2自带的HelloHTML5World和其它demo
- JFinal First Demo "Hello World"
- coco2dHelloWorld学习《learn helloworld demo》
- unable to open input file:helloworld.asm
- PacMan开发-Win32的"HelloWorld"&WinMain()函数
- 输出"HELLO WORLD" ASM
- "hello,world!"win32汇编小程序