You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.0 KiB

为什么不能直接给 ds 寄存器赋值立即数?

这个我不知道原因,但确实不能,读者给出了一个好的回答链接:https://www.zhihu.com/question/43608287

初始时 ds 指向了 0x07c0,那 cs 寄存器初始是多少?

见 Intel 手册 Volume 3A Chapter 9 PROCESSOR MANAGEMENT AND INITIALIZATION image

请问一下这里0x7c00加上第一扇区512字节的内容,这里应该为0x8c00才对吧?

这个问题在于没有理解两个事,一个是内存地址是表示 1 byte,并不是 1 bit。第二个是,一个内存地址是表示一个字节的低端位置,并不是高端位置。

当然,这只是个规定而已,具体见 Intel 手册 Volume 1 Chapter 1.3.1 Bit and Byte Order,这里还有个小端序的知识点,是这个问题的延伸。

image