在同一内存地址存储多个值。分隔符?

发布于 2024-10-09 07:15:15 字数 303 浏览 0 评论 0原文

我正在对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月如刀 2024-10-16 07:15:15

据我了解,我认为您可以使用联合

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文