免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1424 | 回复: 4
打印 上一主题 下一主题

我是个新手请大家帮忙!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-12 08:13 |只看该作者 |倒序浏览
这是我的一个作业到现在还没有头绪  求大家帮忙!!!!!!

Making a new SPARC program

1 。Examine the source for the sum program. The comments in the code should be sufficient for you to determine where the addition of the values read from the keyboard occurs.
2。 Create a program 'diff.s' that calculates the difference input1 - input2 rather than the sum input1 + input2. A quick look through 3。 Appendix D in the course text will reveal what opcode you should use to compute the difference. Your program should contain appropriate comments, including your name and your student number at the top of the source file. Your newly created program should use the '*' character as a prompt rather than the angle bracket character.
Assemble and link your program, naming the executable 'difference'.
4。 Enter the following commands to demonstrate that your program works correctly.
script asn1.script
date
whoami
ls -lt
[ The command(s) necessary to assemble and link your program ]
[ A test run of your program with inputs 0 and 17 ]
[ A test run of your program with inputs 12 and -10 ]
[ A test run of your program with inputs 42 and 84 ]
ls -lt
exit

This will create a file 'asn1.script' that contains everything that appeared on the screen between the time that you typed 'script' and the time that you typed 'exit'. Note that you should not use the backspace key or the arrow keys within a script as they will not print correctly even though the file may appear correctly on the screen. If you make an error in your script simple type exit and start the process over. Once you have complete the script print the generated file so that you can hand it in with the rest of your assignment.
5。Print out the source code for your newly created program and submit it for grading with the rest of your assignment.

我实在是没有头绪  谢谢大家啊!!!!
刚才真是对不起没有说清楚   这个程序是用在UNIX平台  感谢大家啊!!!

论坛徽章:
0
2 [报告]
发表于 2003-07-12 09:55 |只看该作者

我是个新手请大家帮忙!!

我也被你说的没有头绪,没有头绪
你要用什么实现,在什么平台

论坛徽章:
0
3 [报告]
发表于 2003-07-12 17:56 |只看该作者

我是个新手请大家帮忙!!

我是个新手  这次麻烦大家了 请大家多帮忙啊

如果那位先生做好了 请发到我的邮箱sunpeat@163.com

再次感谢!!!!!!

论坛徽章:
0
4 [报告]
发表于 2003-07-12 21:05 |只看该作者

我是个新手请大家帮忙!!

靠自己写程序RUN实现
UNIX平台!!!

论坛徽章:
0
5 [报告]
发表于 2003-07-15 17:27 |只看该作者

我是个新手请大家帮忙!!

大家帮忙吧     谢谢   我实在做不出来啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP