在MIPS,什么是HI和LO [英] In MIPS, what is HI and LO

查看:534
本文介绍了在MIPS,什么是HI和LO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在阅​​读有关MIPS分工和我发现,DIV


  

除以$ s来自$ T和存储
  商将$ LO和余中
  $ HI


<一个href=\"http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html\">http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html

和维基说


  

HI和LO用于访问乘法器/除法的结果,由MFHI访问(移动从高)和MFLO命令


<一个href=\"http://en.wikipedia.org/wiki/MIPS_architecture\">http://en.wikipedia.org/wiki/MIPS_architecture

是HI和LO注册?什么号码寄存器是他们?


解决方案

这些的特殊寄存器的用于乘法和除法的结果保存

。它们不是直接寻址的。其内容与特殊指令MFHI和MFLO访问

他们是乘单位present和是32位的每个。更多信息这里

I'm reading about division in MIPS and I've found that div

Divides $s by $t and stores the quotient in $LO and the remainder in $HI

http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html

And Wikipedia says

HI and LO are used to access the multiplier/divider results, accessed by the mfhi (move from high) and mflo commands.

http://en.wikipedia.org/wiki/MIPS_architecture

Are HI and LO registers? What number registers are they?

解决方案

These are special registers used to store result of multiplication and division. They are not directly addressable. Their contents are accessed with special instruction mfhi and mflo

They are present in the Multiply Unit and are 32-bits each. More info here.

这篇关于在MIPS,什么是HI和LO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆