计算机科学导论v10_练习1 2010.ppt

  1. 1、本文档共110页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 11. Using the machine language of Appendix C, write a program that places a 1 in the most significant bit of the memory cell whose address is A7 without modifying the remaining bits in the cell. 12A7 (A7)-R2 2380 80-R3 7023 R2 OR R3 -R0 30A7 (R0)-A7 C000 12. Using the machine language of Appendix C, write a program that copies the middle four bits from memory cell E0 into the least significant four bits of memory cell El, while placing 0s in the most significant four bits of the cell at location El . 15E0 (E0)-R5 A502 R5右移2bits 260F 0F-R6 8056 R5 AND R6 -R0 30E1 (R0)-E1 C000 QUESTIONS/EXERCISES(2.5) 1. Assume that the machine described in Appendix C uses memory mapped I/O and the address B5 is the location within the printer port to which data to be printed should be sent. a. If register 7 contains the ASCII code for the letter A, what machine language instruction should be used to cause that letter to be printed at the printer? b. If the machine executes a million instructions per second, how many times can this character be sent to the printer in one second? c. If the printer is capable of printing five traditional pages of text per minute, will it be able to keep up with the characters being sent to it in (b)? 37B5 a million 2. Suppose that the hard disk on your personal computer rotates at 3000 revolutions a minute and that each track contains 16 sectors, and each sector contains 1024 bytes. Approximately what communication rate is required between the disk drive and the disk controller if the controller is going to receive bits from the disk drive as they are read from the spinning disk? 3000 转/分钟=50转/sec 每秒 16 * 50 =800 sectors/sec 1024byte/sector 1024 * 800= 11200byte= 3. How long would it take to transfer a 300novel

文档评论(0)

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

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

1亿VIP精品文档

相关文档