我如何可以访问我的计算机的RAM和ROM的所有字节? [英] How can I access all bytes of RAM and ROM of my computer?
问题描述
我试过指针和引用(安培),但是当我尝试获取信息(我只是从内存中读取)电脑蜂鸣和程序将终止。
分配一个指针字节(字符*)时没有问题。但是,当我读到电脑的哔哔声。 (X = * P)
I tried pointers and reference(&) but when I try to get the info(I am only reading from memory) computer "beeps" and program terminates. NO problem when assigning a pointer to a byte (char *). But when I read that computer beeps. ( x=*p;)
Windows XP时,1GB + 128 MB RAM。我不知道我的eproom + EEPROM的。
Windows xp, 1GB + 128 MB RAM. I don't know about my eproom + eeproms.
我可以使用系统()函数的使用OS命令来达到记忆?你知道任何一个?
Can I use System() function to use OS commands to reach memory? Do you know any one?
推荐答案
您不能。现代操作系统使用虚拟模式和程序保护,这不允许这样做。要访问所有的物理内存,你很可能需要编写自己的操作系统或现有的操作系统内核驱动程序。
You can't. Modern OSes use virtual mode and memory protection which don't permit this. To access all physical RAM, you'll most likely need to write your own OS or a kernel driver for an existing OS.
这篇关于我如何可以访问我的计算机的RAM和ROM的所有字节?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!