免费注册 查看新帖 |

Chinaunix

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

MIPS Instruction Coding [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-12 09:11 |只看该作者 |倒序浏览

MIPS Instruction Coding
Instruction Coding Formats MIPS instructions are classified into four groups according to their coding formats:


  • R-Type
    - This group contains all instructions that do not require an immediate value, target offset, memory address displacement, or memory address to specify an operand. This includes arithmetic and logic with all operands in registers, shift instructions, and register direct jump instructions (jalr and jr).
    All R-type instructions use opcode 000000.

  • I-Type
    - This group includes instructions with an immediate operand, branch instructions, and load and store instructions. In the MIPS architecture, all memory accesses are handled by the main processor, so coprocessor load and store instructions are included in this group.
    All opcodes except 000000, 00001x, and 0100xx are used for I-type instructions.

  • J-Type
    - This group consists of the two direct jump instructions (j and jal). These instructions require a memory address to specify their operand.
    J-type instructions use opcodes 00001x.

  • Coprocessor Instructions
    - MIPS processors all have two standard coprocessors, CP0 and CP1. CP0 processes various kinds of program exceptions. CP1 is a floating point processor. The MIPS architecture makes allowance for future inclusion of two additional coprocessors, CP2 and CP3.
    All coprocessor instructions instructions use opcodes 0100xx.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/65427/showart_1715087.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP