vs2010 ASM

转载 2013年12月04日 23:02:49

MASM in VisualStudio 2010

 

First step:

 

Create an empty project in Visual C++:


Second, right-click project in solutionexplorer, Build customizations, tick "masm",

 


Then tap the right of mouse, select Add


Now, select C++ File(.cpp), enter the sourcefile name with .asm as extend file name.


Tap right of mouse, choose Properties:


Expand the entry under ConfigurationProperties. Then expand the entry named Microsoft Macro Assembler.


Notice that the Include Paths option hasbeen set to the x:\file directory\include directory.

In this example, include directory isc:\Irvine.


Next, select the Listing File entry, also in theMicrosoft Macro Assembler group. Notice that the Assembled Code Listing Fileentry (shown below) has been assigned a macro name (starting with $) thatidentifies the name of the source input file, with a file extension of .lst.So, if your program were named main.asm, the listing file would be namedmain.lst:


Find the Linker entry under ConfigurationProperties. Select the Input entry, and notice that two filenameshave been added to the Additional Dependencies entry. The user32.libfile is a standard MS-Windows file. The irvine32.lib file is the linklibrary file supplied with this book. There must be at least one spaceseparating the file names:


Next, select Linker underConfiguration Properties, and then select General. The AdditionalLibrary Directories option equals c:\Irvine, so the linker can findthe Irvine32.lib library file:


Select Linker under the ConfigurationProperties and select Debugging. Notice that the Generate DebugInfo option is set to Yes:


Select System under the Linkerentry. Notice that the SubSystem option has been set to Console:


We use the Console settingbecause it is easy for assembly language programs to write output to a textconsole (Command) window. This is the window you see when running cmd.exe fromthe Start > Run menu in Windows.

Click the OK button to close theProject Property Pages window.

 

VS嵌入汇编ASM

1.嵌入汇编语言的格式  C++语言是C语言的超集,它是在C语言的基础上扩展形成的面向对象程序设计语言。微软Visual C++ 5.0∕6.0则是Windows 9.x平台上广泛应用的开发系统。本...
  • whatday
  • whatday
  • 2012年09月18日 20:48
  • 9840

[汇编]_[初级]_[VS2010搭建汇编开发环境win32和x64]

场景: 1. 虽然使用MASM32也可以编译运行汇编程序,但是既然装了VS2010,它也能支持编译运行汇编吧.不然微软的开发人员难道还不用vs写汇编程序了? http://www.masm32.com...

VC编译生成asm文件设置

在VC6.0中如下操作可生成扩展名为COD的文件即为ASM文件 Project->Settings...-> 打开“Project Settings”对话框 ->选择C/C++页 “Categ...

VS2010配置MASM完成汇编代码编译

MASM in VisualStudio 2010   First step:   Create an empty project in Visual C++: Second, ri...
  • Natepan
  • Natepan
  • 2011年09月16日 11:53
  • 7333

vc中添加asm文件

以前用vs2008的时候把.asm文件加入到工程后会自动提示使用masm生成规则,现在换城vs2010后添加.asm文件没有默认的处理规则。网上找到个方法是英文的,本人用的vs2010是中文的,上面的...
  • varding
  • varding
  • 2010年12月22日 16:08
  • 5141

ASM人脸检测 VS2010

  • 2013年04月24日 10:13
  • 44.34MB
  • 下载

VS2010 X64汇编(使用了非标准扩展: 不支持在此结构上使用“_asm”关键字解决方法)

原因:VS x64平台不支持内联汇编 解决方法 步骤1.新建->常规->空项目 2.项目点击右键,选择生成自定义 3.选中masm,确定 4.项目->右键->添加新建项 5.选择tex...

vs2010 sp1 升级包

  • 2017年11月12日 16:48
  • 752KB
  • 下载

VS2010/MFC 读写excel文件 操作类

操作类参考一:http://blog.csdn.net/superbfly/article/details/18040445          二维数组操作参考二 : http://www.cnblo...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:vs2010 ASM
举报原因:
原因补充:

(最多只允许输入30个字)