汇编-debug使用

本文详细介绍如何在Windows 7及后续版本系统中搭建debug环境,包括下载并安装DOSBox,将debug软件复制到指定磁盘,以及通过DOSBox运行debug软件的方法。同时,文章还列举了debug软件中常用的命令,如查看和修改寄存器值、查看和修改内存单元值、执行机器指令等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

debug安装

win7及之后版本系统不自带debug软件需要搭建相应的环境进行使用。

  1. 下载DOSBox 和 debug软件,并安装DOSBox软件。
  2. 运行DOSBox程序,输入 mount c 磁盘符(eg: D:),将debug复制到对应的磁盘中;
  3. 切换到相应的磁盘符下(eg:D),运行debug,即进入相应debug环境中。

debug常用命令

debug有大量的命令,但常用的命令如下:

  1. r查看和修改寄存器的值; eg:r ax//修改ax的值
  2. d查看内存单元的值; eg:d 100:1
  3. e修改内存单元的值; eg:e 100:1
  4. t执行一条机器指令;
  5. U将一条汇编指令转成机器指令;
  6. A以汇编的形式在内存中写入一条机器指令。
-------------------------------------------------------------------------------- DebugFactory Builder for AM1 STARTER KIT -------------------------------------------------------------------------------- Table of Contents -------------------------------------------------------------------------------- 1. Overview of DebugFactory for AM1 STARTER KIT 2. Requirements Environment 3. Install 4. Start up 5. Coverage of Warranties and Limitation of Liability -------------------------------------------------------------------------------- 1. Overview of DebugFactory for AM1 STARTER KIT -------------------------------------------------------------------------------- DebugFactory is an integrated development environment for performing Microcomputer programming development and debugging. It enables various tasks to be performed, from source editing through compiling and linking, setting of compiler options, and debugging with the actual device. DebugFactory includes the following functions. -Project management function This function creates a Project file. A Project file contains information such as related source file names and information on compiler options and so forth. This information is used to create a make file. A number of make files can be managed by one Project. -Source code editing function DebugFactory has an editor. When the code complementation function is used, candidate items are listed without having to key-in every word. Use of the file outline function makes it possible to view a list of functions and variables contained in the file being displayed by the editor, and clicking an item in that list displays the relevant location. Functions such as string search and GREP necessary for source code editing are also provided. If the user does not want to use the DebugFactory editor, a commercially available editor can be specified by means of an option setting, and source can also be displayed by the specified commercially available editor
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值