网站大量收购独家精品文档,联系QQ:2885784924

4-外围接口-4.1的.ppt

  1. 1、本文档共66页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
4-外围接口-4.1的

; 检查ATA状态寄存器, 直到BSY=0和DRQ=0 waitDeviceReady proc waitReady: inx pio_base_addr1+7 ; 读取ATA状态寄存器 and al, ; BSY=1或DRQ=1,继续查询 jnz waitReady ret waitDeviceReady endp 程序说明 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. ;pio_base_addr1????????? EQU???? 01F0H ;pio_base_addr2????????? EQU???? 03F0H ; SRST=1, 复位硬盘 outx pio_base_addr2+6,04h ; SRST=1 outx pio_base_addr2+6,00h ; SRST=0 ; 等待,直到BSY=0而且DRQ=0. waitReady: inx pio_base_addr1+7 ; read primary status and al ; busy,or data request jnz waitReady Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. ; 设置feature port寄存器 outx pio_base_addr1+1,00h ; 设置sector count寄存器, 要读写的扇区数 outx pio_base_addr1+2,numSect ; 设置sector numbert寄存器, LBA(7:0) outx pio_base_addr1+3,((lbaSector shr 0) and 0ffh) ; 设置cylinder low寄存器, LBA(15:8) outx pio_base_addr1+4,((lbaSector shr 8) and 0ffh) ; ; 设置cylinder high寄存器, LBA(23:16) outx pio_base_addr1+5,((lbaSector shr 16) and 0ffh) ; ; 设置device/head寄存器, LBA=1, DEV=0, LBA(27:24) outx pio_base_addr1+6 or ((lbaSector shr 24) and 0fh) ; 设置command寄存器, 20h表示READ SECTOR(S) outx pio_base_addr1+7,020h Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. ; 等待,直到DRDY=1, DSC=1, DRQ=1. waitHDD: inx pio_base_addr1+7 cmp al

您可能关注的文档

文档评论(0)

ayangjiayu3 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档