惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Spread Privacy
Spread Privacy
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
腾讯CDC
P
Privacy International News Feed
Webroot Blog
Webroot Blog
J
Java Code Geeks
爱范儿
爱范儿
A
About on SuperTechFans
S
Secure Thoughts
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
DataBreaches.Net
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Latest
Security Latest
Forbes - Security
Forbes - Security
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threatpost
量子位
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
The Exploit Database - CXSecurity.com
Help Net Security
Help Net Security
V
Visual Studio Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 聂微东
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs

博客园 - 和尚释然

AsyncTask原理 Android 模拟器截图 [原创]Android NDK开发之HelloWorld 附源码 Android NDK开发之环境搭建 [原创]深入了解Activity生命周期 附源码 [原创]关于Android Service的示例编程 附源码 [原创]Android Camera 开发之实现一 附源码 [原创]Android Camera 开发之前言 [原创]在Eclipse中手工安装SVN Plugin Android开发环境搭建四:新建一台Android Virtual Device Android开发环境搭建三:在Eclipse配置Android SDK Android开发环境搭建二:安装ADT[新版本ADT15.0] Android开发环境搭建一:安装Android JDK Java开发环境配置图解 用Reflector反编译 Mobile Winform程序 Mobile WiFi的开启和关闭代码实现 VS2005/VS2008英文版应用程序无法显示中文字符 深入讲解main()返回值研究 发布MFC ActiveX控件并实现自动更新
用VisualStudio2008汇编代码
和尚释然 · 2011-06-02 · via 博客园 - 和尚释然

2011-06-02 21:26  和尚释然  阅读(700)  评论()    收藏  举报

1.新建一个空项目名叫"MyFirstAsm"

2.添加一个ASM文件,先添加一个Test.cpp文件,然后通过重命名将Test.cpp改为Test.asm文件.
 


3.修改项目属性"自定义规则"
 


4.添加库文件,例如"C:\Masm615\Include".我这边是装了"Masm for Windows 集成实验环境 2011",所以就用它的Include.

5.因为现在这个汇编程序是Window窗口,所以要将SubSystem设为"Windows(/SUBSYSTEM:WINDOWS)"

6.打开Test.asm文件输入以下代码:

; Test.asm

    .386
    .model flat, stdcall
    option casemap:none
 
include windows.inc
include user32.inc
include kernel32.inc
 
includelib user32.lib
includelib kernel32.lib
 
    .data
szCaption   db 'System Information', 0
szText      db 'Hello World in Visual C++!', 0
 
    .code
start:
    invoke MessageBox,\     ; 调用函数名
        NULL,\              ; 父窗口句柄
        offset szText,\     ; 文字
        offset szCaption,\ ; 标题
        MB_OK               ; 按钮类型
      
    invoke ExitProcess, NULL
end start

7.编译并运行程序.