资源简介
这是一个简单的调试器的源码,没有华丽的界面,是一个控制台的调试器。虽然小巧,但是功能齐全:有查看exe可执行程序的汇编代码,地址跳转、定位等功能一共有十七八个实用的功能,每个功能都值得学习。

代码片段和文件信息
// Decode2Asm.cpp: implementation of the CDecode2Asm class.
//
//////////////////////////////////////////////////////////////////////
#include “stdafx.h“
#include “Disasm.h“
#include “Decode2Asm.h“
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
void
__stdcall
Decode2Asm(IN PBYTE pCodeEntry
OUT char* strAsmCode
OUT UINT* pnCodeSize
UINT nAddress)
{
DISASSEMBLY Disasm; // Creates an Disasm Struct
// Pointer to linear address
char *Linear = (char *)pCodeEntry;// Points to the address of array to decode.
// Index of opcoded to decode
DWORD Index = 0;
Disasm.Address = nAddress; // Common Entry Point (usually default..)
FlushDecoded(&Disasm); // reset all content
// Decode instruction
Decode(&Disasm
Linear
&Index);
strcpy(strAsmCode Disasm.Assembly);
if(strstr((char *)Disasm.Opcode “:“))
{
Disasm.OpcodeSize++;
char ch =‘ ‘;
strncat(strAsmCode&chsizeof(char));
}
strcat(strAsmCodeDisasm.Remarks);
*pnCodeSize = Disasm.OpcodeSize;
// Clear all information
FlushDecoded(&Disasm);
return;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 348267 2010-04-27 22:24 MyDebug\Debug\MyDebug.exe
文件 1289 2009-09-08 15:25 MyDebug\Decode2Asm.cpp
文件 600 2009-08-31 22:51 MyDebug\Decode2Asm.h
文件 85448 2010-03-23 17:03 MyDebug\Disasm.cpp
文件 4732 2008-10-07 11:18 MyDebug\Disasm.h
文件 364954 2007-01-15 22:36 MyDebug\Dsasm_Functions.cpp
文件 862 2010-04-13 23:01 MyDebug\MyDebug.cpp
文件 4942 2010-04-25 12:20 MyDebug\MyDebug.dsp
文件 537 2010-03-19 19:21 MyDebug\MyDebug.dsw
文件 377856 2010-04-27 22:25 MyDebug\MyDebug.ncb
文件 49664 2010-04-27 22:25 MyDebug\MyDebug.opt
文件 750 2010-04-27 22:25 MyDebug\MyDebug.plg
文件 72203 2010-04-27 22:24 MyDebug\MyDebugInfor.cpp
文件 7335 2010-04-25 01:39 MyDebug\MyDebugInfor.h
文件 10999 2010-04-13 23:19 MyDebug\MyFileInfor.cpp
文件 2358 2010-04-20 22:13 MyDebug\MyFileInfor.h
文件 1214 2010-03-19 19:21 MyDebug\ReadMe.txt
文件 122880 2010-04-27 22:25 MyDebug\Release\MyDebug.exe
文件 294 2010-03-19 19:21 MyDebug\StdAfx.cpp
文件 1218 2010-03-31 21:43 MyDebug\StdAfx.h
文件 118848 2010-04-01 06:04 测试程序\FirstMfc.exe
文件 720 2010-03-09 12:45 测试程序\hello.exe
文件 2048 2010-04-19 13:27 测试程序\loop3.exe
文件 72 2010-04-27 21:32 测试程序\loop3.ini
文件 114768 2010-03-15 01:43 测试程序\Process.exe
文件 28672 2010-03-09 00:40 测试程序\SDK.exe
文件 3584 2010-03-09 00:38 测试程序\Test.exe
文件 28672 2003-04-10 19:01 测试程序\TraceMe.exe
文件 28672 2010-03-29 11:31 测试程序\TraceMe_1.exe
文件 77 2010-04-25 03:46 测试程序\TraceMe_1.ini
............此处省略12个文件信息
- 上一篇:WebSphere入门教程
- 下一篇:罗德与施瓦茨矢量网络分析仪培训讲义
相关资源
- Scratch源码
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
- 编译原理课程设计:词法语法编译器
评论
共有 条评论