基址

王朝百科·作者佚名  2009-11-11
窄屏简体版  字體: |||超大  

base address :

the part of a two-part memory address that remains constant and provides a reference point from which the location of a byte of data can be calculated. a base address is accompanied by an offset value that is added to the base to determine the exact location(the absolute address)of the information. the concept is similar to a street address system . for example, "2010 main street " plus an offset(10from the beginning of the block ).base address are known as segment address in IBM pcs and compatibles; data in these computers is identified by its position as a relative offset the start of the segment.

基址:

保持恒定的两部分内存地址的一部分并提供一个基准点,从这里可以计算一个字节数据的位置。基址伴随着一个加到基上的偏移值来确定信息准确的位置(绝对地址)。这一概念与街道地址系统雷同。例如:“大街2010号”由基(大街2000街段)加上偏移值(从街段开始的10号)。在IBMPC和兼容机中的数据按其相对于由段开始的相对偏移位置被识别。

多在外挂程序中运用。

举例:

游戏中任何数据都在内存中存在,不管是血,蓝,等级,怪物名字,地图名字,只要是数据。全在内存中。 只要你读取那个内存地址就能显示出血来。 其实说白了,游戏客户端显示的数据也是读取的内存中的数据而显示出来的。

struct renwu //人物结构

{

DWORD xue; //血

DWORD lan; //蓝

DWORD dengji; //等级

........

};

void init() //游戏初始化函数

{

struct renwu *dwRW;

dwRW = new struct renwu;

}

游戏初始化了,dwRW在内存中的地址是固定的,这就是基地址

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航