【第2章 实验任务 第2题】A命令为何不是从CS:IP处开始写入内存?
本帖最后由 南风烟雨五庄观 于 2013-8-17 13:51 编辑原题是:
将下面3条指令写入从2000:0开始的内存单元中,利用这3条指令计算2的8次方。mov ax,1add ax,ax jmp 2000:0003我首先用R命令把CS:IP的内容修改为2000:0000
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA1AAAABaCAIAAAA5CiCdAAAViklEQVR4nO2dPZbiOhCFSSbFaSdsAJIJ2EGfY6/AK8AbeB1MMEmvgIQUgk4m6RXM8l5QhzoalVSUfjBY3C+Esqt0LcmFhKTVbrdbAQAAAACAhkHCBwAAAADQOEj4AAAAAAAaBwkfAAAAAEDjIOEDAAAAAGicmwlf13XDMIzj2Pf9er3ebrfjFfpknjgBAAAAAEAmNxO+t7e3X79+XS6X0+m03+8Ph8OfP39OpxN/gpwPAAAAAOCpuZnw/fjx4+3tbZomyvPO5zPlefxJ3/fzhAoAAAAAAHL4+PgY42y3WzIbx/H7+/v7+/vz83MYhq7r+JNxHB9bBAAAAAAAoPH19XWMMwwDmcn0ru97zwYAAAAAADwj7+/vmzhd15GZTPjW67VnAwAAAAAAnhHjtiyYwAUAAAAAWCpI+AAAAAAAGgcJHwAAAABA4xg3Xv78/ORVuthvGQAAAABgSRg3XnaX7v769evt7W2e8AAAAAAAQCnGjZfdpbtvb28/fvyYJzwAAAAAAFCK8T98AAAAAABgqSDhAwAAAABoHCR8AAAAAACNg4QPAAAAAKBxkPABAAAAADQOEj4AAAAAgMZBwgcAAAAA0Dhuwtd1ndxjj/fhS/pKwbKx35w2hUgX0hc0LC8XNEwtDuEeigMNLXRdJ2WU9VCxSaIxDZP6Q2iooNfD6vE0pqGlP6wezwI0dBO+YRjkKRp80kbSVwqWozvmtClEupC+oGF5uaBhanGIvu+lDTRUGIZByijroWKTRGMaJvWH0FBBr4fV42lMQ0t/WD2eBWhICR8fmHu5XKZp2m63bLDZbI7H4/f39/F43Gw27rXKVzG22+3hcDifz5+fn+M4juMonc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DAJL4H3b9pKNYawHVAAAAAElFTkSuQmCC然后用D命令看了一下当前的内存位置却是108B:0100
用A命令写入,显示确实是从108B:0100开始写入的
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg8AAAB7CAIAAAB8a/QLAAARGklEQVR4nO2dPYLiOgyAp9kWWpq5ANUWewZyAXICcoYptpkT0EwL7TZzyld40fNajiP/JBD4vpI4tmSLiAhZfnsDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAEvb7ff8v+/3+3kIBAMCDcTgczje+vr7+/PkzDMNut/vx48e9RQMAgIdhs9m83/j169fX19f1ev34+NjtdvcWDQAA5qfrun4cCTf5kajT6XS5XL6/v8/n8/v7+33lBwCAJfj4+DiP03Xdjx8/drvd6XT68+fP19eXRKLwFgAAL8Rut3sfZ7vd7na7j4+Py+Xy9fX169cviUThLQAA4H/e39/P57PvG/QnAADw6uAtAABgGrwFAABMs9lsDofD5+fn9XodhqHv++PxeDwe5RO26QEAwF/83Xlum4V80nXdvaUDAIDHwN+d57Zwyyfb7fbe0gEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzEdrt1Wyg2m42+6kqX+xVqg7Pz5PZoG337WD9GJuVppVfWWEZRy+ZwjboDLEza5qENXde57dmHw0FfdaXL/dMvgrPz5PZoG337WD9GJuVppVfWWEZRy+ZwjboDLEza5qGW7Xbbdd3n5+f39/f393ff90GD/X7vjsz7/Px0J+j5daLk9svlcjqd5JQ9v43Um3JDRPuxC5yWp5VeWWMlsOhumcM16g6wGJM2D7Vst1s54EjPcnB2nlSFOhwO7hC9vu/fR6rS9n0fdGj5xBdMv1FOyjMMgwuVVOo1DIMb3TKWZZ7TulvmcL26A8xN2uahDV3XyeGpepaDs/OkKtRms3FrM5+3iL5RTspzvV5dqKRSr+v16ka3jGWZ53pvsV7dAeYmbfPQhv1+L0EGPctjT7G3W4Blv9/P5C2ilxLyBJeK9ZJLwuRYlnmu9xbr1R3mxgVhJIDpxxLHPvE5HA7uDV76kU/0EPrS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jtbXZsgQAr4jU0Y0+VWW3TrDHR/YBzectohGkSXlkP1GlXrofqa3NliUAeEV0ZW//qTrmCd5uG3nmOzsveikhT3CpWK/3f4stJ+oME5ICgFck9+ks7P49c0qSi3ScR4aw1LGJFusO5PGjVXanZexHsHQIAPAqFHuL4MwpSS7ScR4ZwlLHJlqsO5DHj1bVeItoP3gLAIAIxd7CkhMVDFGcE/VuPv8rS69oP8Lk+V8AAC9EsbeY6X8Ly1h+tKrGW0T7EYJ3puv1ircAgNdljd7Cj1bVeItoP0Lwf8wwDHgLAHhdcr2FC0DNlxMVPWndnhNVrBf/WwAApIg+BIN8J9koJ3vW5ttvUSbP5XIJNkMU9yPbNfAWAAD/E30IBvlOslFO9qwt7C0m5TmdTsFG6+J+ZCs43gIAILI7TxKWJAS03++HYbher34u09ieNT93SNoEJZui/YwJFr2UkKeVXlmhLQCAJ0fSgTT+trjJWq3Rfu5Yg7ZeL7k01rPeUQgA8LRIOpDG3xY3eQ5EtJ87nm9Rr5dcGuuZ84oBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ6Q/wCK4f1h0nzt0AAAAABJRU5ErkJggg==最后用D 2000:0000 看了一下,这部分内存的确没有内容
为什么,在我第一步已经修改了CS和IP的值的情况下,用A命令写入内存不是在指定的CS:IP位置呢?
cs和ip只是一个指向,指向要运行的指定地点
如果要从2000:0来写入指令的话输入
a 2000:0 然后开始打代码
具体我感觉你还得看一下debug的命令具体使用方法 后来我仔细看小甲鱼的教学视频,果然也发现了类似情况
当用R命令修改了CS:IP以后,我们准备用A命令写入时却不是在那个CS:IP的位置
因为小甲鱼在讲解的过程中要用D命令显示写入的汇编指令时,发现不是从CS:IP开始显示的,因此用了
D 138C:0100 强行定位显示
南风烟雨五庄观 发表于 2013-8-17 14:10 static/image/common/back.gif
后来我仔细看小甲鱼的教学视频,果然也发现了类似情况
当用R命令修改了CS:IP以后,我们准备用A命令写入时却 ...
D指令只是查看内存中的内容
d 段地址:偏移地址(显示出来) 可是,书上不是说"8086CPU访问内存都必须先由段地址和偏移地址在地址合成器中组成物理地址"吗?
A命令写入内存就是要访问内存,不应该按照CS和IP两个寄存器的指示位置去写入吗?
为何还要程序员把CS:IP作为参数明确手动给出呢? 仔细看看前面几章。。 南风烟雨五庄观 发表于 2013-8-17 14:24 static/image/common/back.gif
可是,书上不是说"8086CPU访问内存都必须先由段地址和偏移地址在地址合成器中组成物理地址"吗?
A命令写入 ...
看来你没理解A命令的意思
A命令=以汇编形式写入一条机器指令
a命令没有说明写入的就是cs ip指向的地址
cs与ip指向的是当前指令执行的地址 小咒 发表于 2013-8-17 15:29 static/image/common/back.gif
看来你没理解A命令的意思
A命令=以汇编形式写入一条机器指令
a命令没有说明写入的就是cs ip指向的地址
...
对的。我把有些概念混淆了。谢谢耐心解答。 南风烟雨五庄观 发表于 2013-8-17 15:37 static/image/common/back.gif
对的。我把有些概念混淆了。谢谢耐心解答。
慢慢学吧,过程中可能会有很多搞不清楚的地方,多看看书多看看视频,自己动手自己思考
我也才学到第十一章,越来越难了,有部分东西真的不太好理解>_<不知道是不是我太笨
一起学习共同进步吧。 有两种方法。
(1)先用r命令修改cs和ip为2000和0000,再用a命令在2000:0000处写入指令代码
(2)先用a命令在2000:0000处写入指令代码,再用r命令修改cs和ip为2000和0000
然后用t命令单步调试就可以达到预期效果了。
页:
[1]