本文介绍了得到的m68k RAM地址用C语言特定字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过IDA反汇编我已经达到了这个地址:
Through the IDA disassembler I've reached this address:
0010FD74 00 00 00 00 00 00 03 00 00 00 00 00 82 03 80 02
现在我需要的,给予特别得到字节地址;例如第7位置有03。
我已经用C语言做这个尝试:
Now I need, given the address to get particular bytes; for example the 7th position where there is "03".I've tried using C language to do this:
char *dummycharacter;
*dummycharacter = *(char*)0x10FD74;
现在,如果我尝试用它来访问第七值:
Now if I try to access 7th value with this:
dummycharacter[6]
我不明白×03 ......我要去哪里错了?
I don't get 0x03…where am I going wrong?
推荐答案
您正在尝试的值赋给 dummycharacter
点(这是pretty太多无处,因为它不是初始化)。尝试 dummycharacter =(字符*)0x10FD74;
You're trying to assign the value dummycharacter
points to (which is pretty much nowhere, since it's not initialized). Try dummycharacter = (char*)0x10FD74;
.
这篇关于得到的m68k RAM地址用C语言特定字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!