[转载]Linux0.11 系统启动时所调用的BIOS中断 int 0x13使用
摘要:对于int 0x13, 注意,intel CPU是 little endian的。ah: 功能号 0x02--读磁盘数据到内存al: 需要读出的扇区的数量ch: 磁道(柱面)号的低8位cl: 开始扇区(0-5bit),磁道号的高两位(6-7bit)dh: 磁头号, dl: 驱动器号(if it's hard-disk, set the 7th bit)es:bx: 目的地址。指向数据缓冲区;如果出错则CF标志置位。load_setup:movdx,#0x0000! drive 0, head 0movcx,#0x0002! sector 2, track 0movbx,#0x0200!
阅读全文