Warriors of the Visual Studio, Assemble! | ||||||||||||||||||||||
If you've recently purchased Assembly Language for Intel-Based Computers, 5th edition, you probably want to get the software set up so you can start working. This tutorial should make the process easier. If you're in a hurry to get started, you only need to read Item 1.
Found an error in this document? Please email me immediately. Except where noted, all instructions in this document apply equally to Visual Studio and Visual C++ Express. Required Setup for 32-bit ApplicationsFirst, you must install some version of Visual Studio or Visual C++ Express:
You can verify that the Microsoft Assembler is installed by looking for the file ml.exe in the /vc/bin folder of your Visual Studio installation directory, such as c:/Program Files/Microsoft Visual Studio 9.0/vc/bin. Downloading and installing the Microsoft Assembler 8.0: Visit Microsoft's MASM 8.0 download site. Follow the download and installation instructions on the Microsoft page. If the link is broken, please let us know by email. Note that this MASM download only works with Visual C++ 2005 Express. MASM 8.0 is almost identical to MASM 9.0. Next: Install the Book's Example ProgramsClick this link to get the latest copy of the book's link libraries and example programs. The examples are stored in a self-extracting archive file that automatically extracts to the c:/Irvine folder. Unless you have some objection to using that location, do not alter the path. (Lab managers: you can designate c:/Irvine directory as read-only.) If you plan to change the installation location, read our instructions relating to changing project properties. The folllowing files will be copied into the c:/Irvine directory:
A subdirectory named Examples will contain all the example programs shown in the book. Building a Sample Assembly Language ProgramPreliminary Step: Set Tab Size to 5 Start Visual C++ Express, and select Options from the Tools menu. Select Text Editor, Select All Languages, and select Tabs: Set the Tab Size and Indent Size to 5. Opening a Project Visual Studio and Visual C++ Express require assembly language source files to belong to a project, which is a kind of container. A project holds configuration information such as the locations of the assembler, linker, and required libraries. A project has its own folder, and it holds the names and locations of all files belonging to it. We have created a sample project folder in the c:/Irvine/Examples directory, and its name is Project_Sample. Do the following steps, in order:
|
Visual Studio 编写汇编程序的环境设置
最新推荐文章于 2024-09-19 20:58:35 发布
本文将指导你如何在Visual Studio中设置环境,以便开始编写和调试汇编语言程序。通过步骤详解,了解如何创建项目、设置编译器选项以及调试技巧。
摘要由CSDN通过智能技术生成