在同一内存地址存储多个值。分隔符?
我正在对 Read- 和 WriteProcessMemory 以及我发现的一个旧平台游戏进行一些修改。每当玩家进入一个新关卡时,就会创建敌人,并设置每个敌人的生命值、坐标等:
0056BE76 - c7 80 38 01 00 00 64 00 00 00 - mov [eax+00000138],00000064
(EAX 是结构体的地址,138 是生命值的偏移量)
如果有空闲内存可以写入,是否存在有什么方法可以将每个 EAX 的值存储在同一个位置吗?就像使用某种分隔符一样?
干杯
I'm doing some tinkering with Read- and WriteProcessMemory and an old platformer game I found laying around. Whenever the player enters a new level, enemies are created and the health points, coordinates etc for each one is set:
0056BE76 - c7 80 38 01 00 00 64 00 00 00 - mov [eax+00000138],00000064
(EAX being the address of the struct and 138 the offset to their health)
Granted there is free memory to write, is there any way I could store the value of EAX of each one in one and the same location? Like using a delimiter of sorts?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,我认为您可以使用联合
http:// /www.wellho.net/resources/ex.php4?item=c209/union.c
From what I understood, i think you can use an union
http://www.wellho.net/resources/ex.php4?item=c209/union.c