MIPS指令编写计算程序

chd77903499 2012-04-02 10:52:42
各位大哥大姐 谁能帮我用MIPS编写一个可以计算下面三种情况的程序啊 急需啊 在SPIM虚拟软件上模拟运行 要求输入一段公式之后在console上显示结果 跟给出的例子一样 我这什么材料都没有 就一个程序的例子 根本没时间研究啊 求帮助~~
(1)
A.E) 3+4
Ans) 7



(2)
A.E) 3+4*2
Ans) 11



(3)
A.E) (3+2)*2+6
Ans) 16

...全文
173 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
youta804 2012-04-03
  • 打赏
  • 举报
回复
我试试
yh_no_code 2012-04-03
  • 打赏
  • 举报
回复
这个不会!帮顶!!
中文名: MIPS汇编语言程序设计 原名: MIPS Assembly Language Programming 作者: Robert Britton 资源格式: PDF 出版社: Prentice Hall书号: 9780131420441发行时间: 2003年06月07日 地区: 美国 语言: 英文 简介: 这本书的用户将获得一个当代计算机体系结构的基本概念的理解,具有精简指令计算机(RISC)的开始。一个计算机建筑的理解需要开始组织与现代计算机的基本知识。 MIPS架构体现了当代所有的RISC架构的基本设计原则。这本书提供了如何现代电脑的功能组件放在一起,以及如何在一台计算机的机器语言级作品的理解。 精心编写的,显然是有组织,这本书涵盖了MIPS架构的基础知识,包括算法开发,数字系统,函数调用,可重入函数,内存映射I / O,异常和中断,和浮点指令。 对于在系统,系统开发,系统的分析和系统维护领域的员工。 Users of this book will gain an understanding of the fundamental concepts of contemporary computer architecture, starting with a Reduced Instruction Set Computer (RISC). An understanding of computer architecture needs to begin with the basics of modern computer organization. The MIPS architecture embodies the fundamental design principles of all contemporary RISC architectures. This book provides an understanding of how the functional components of modern computers are put together and how a computer works at the machine-language level. Well-written and clearly organized, this book covers the basics of MIPS architecture, including algorithm development, number systems, function calls, reentrant functions, memory-mapped I/O, exceptions and interrupts, and floating-point instructions. For employees in the field of systems, systems development, systems analysis, and systems maintenance. 目录: CHAPTER 1: The MIPS Architecture CHAPTER 2: Pseudocode CHAPTER 3: Number Systems CHAPTER 4: PCSpim The MIPS Simulator CHAPTER 5: Algorithm Development CHAPTER 6: Function Calls Using the Stack CHAPTER 7: Reentrant Functions CHAPTER 8: Exception Processing CHAPTER 9: A Pipelined Implementation CHAPTER 10: Embedded Processors APPENDIX A: Quick Reference APPENDIX B: ASCII Codes APPENDIX C: Integer Instruction Set APPENDIX D: Macro Instructions APPENDIX E: A Trap Handler

21,459

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧