vs2010 ASM
来源:互联网 发布:计算机视觉算法工程师 编辑:程序博客网 时间:2024/05/22 12:37
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.
- vs2010 ASM
- asm
- ASM
- asm
- asm
- asm
- ASM
- asm
- ASM
- ASM
- ASM
- ASM
- VS2010
- Vs2010
- vs2010
- vs2010
- VS2010
- VS2010
- 手游上线流程强
- 嵌入式 信号机制经典详解以及示例
- 值集&快速编码(Lookup_code)
- 单链表实现内存分配监控
- fzu 1909 An Equation(水题)
- vs2010 ASM
- 【VC】VC调用CB的dll,lib生成方法--CB dll转VC lib
- 1045:讨厌的小数点
- 关于-rpath可以指定路径来安装
- Github项目中使用率最高的Java/Ruby/JS库
- Listview动态添加/删除数据
- Jquery 和CSS 实现的tabs选项卡功能
- 安卓view.getMeasuredHeight()得到的高度单位以及dp和px的转换
- 学习stm32 can总线的一些概念