东北大学 boothead.s.docVIP

  1. 1、本文档共93页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
东北大学 boothead.s

boothead.s Skip to line: 3100 - 3200 - 3300 - 3400 - 3500 - 3600 - 3700 - 3800 - 3900 - 4000 - 4100 - 4200 - 4284 3000?? !?????? Boothead.s - BIOS support for boot.c??????????? Author: Kees J. Bot 3001?? ! 3002?? ! 3003?? ! This file contains the startup and low level support for the secondary 3004?? ! boot program.? It contains functions for disk, tty and keyboard I/O, 3005?? ! copying memory to arbitrary locations, etc. 3006?? ! 该文件包含启动和为次级引导程序提供低级支持。它包含磁盘、tty和键盘I/O、拷贝内存到任意位置等。 3007 ?? ! The primary bootstrap code supplies the following parameters in registers: 主引导自举代码提供下列参数在寄存器中(同传递到bootblock.s的参数相同): These are the same values that were passed into bootblock.s. 3008?? !?????? dl????? = Boot-device. 3009?? !?????? es:si?? = Partition table entry if hard disk. 3010?? ! 3011 3012?? .define begtext, begdata, begbss 3013?? .data 3014?? begdata: 3015?????????? .ascii? (null)\0????? ! Just in case someone follows a null pointer 3016?? .bss 3017?begbss: 3018 3019 ?????????? o32???????? =???? 0x66? ! This assembler doesnt know 386 extensions In Makefile, boothead.s is compiled with the -mi86 option (LD86 contains the mi86 option).? This option uses the machine instructions (mi) of the 8086 system which does not have 32-bit registers (like eax, ebx, etc.).? If an instruction is needed that uses a 32-bit value, the 8086 instruction must be prefixed with 0x66. 在Makefile中,boothead.s使用-mi86选项进行编译(LD86包含mi86选项)。这个选项使用没有32位寄存器(象eax,ebx)的8086系统的机器指令(mi)。如果一条指令需要使用一个32位值,则8086指令必须使用0x66前缀 Look at line 3933.? If the -mi86 option is used and the retf instruction has no prefix, the instruction jumps to the address specified by the last 2 bytes on the stack (the offset) and the next-to-last 2 bytes on the stack (the segment).? However, if the last 4 bytes on the stack are the offset and the next-to-last 4 bytes on the stack are the segment and the -mi86 option is used, the instruction must be prefixed with 0x66.? On lines 3922-3925, these 8 bytes are pushed on the s

文档评论(0)

xcs88858 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档