MIPS或按位 [英] Mips or bitwise

查看:682
本文介绍了MIPS或按位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设 $ Z0 是始终包含数为零的寄存器。

Assuming that $z0 is a register which always contains the number zero.

然后MIPS指令或$ T0,$ T1,$ T2 提出<$ C的按位 $ C> $ T1 和 $ T2 入册 $ T0

Then the MIPS instruction OR $t0, $t1, $t2 puts the bitwise OR of $t1 and $t2 into the register $t0.

假设寄存器 $ T2 包含数字5。什么是寄存器 $ T0 指令的执行或$ T0,之后$ Z0,$ T1

Suppose that the register $t2 contains the number "5". What is in the register $t0 after the execution of the instruction or $t0, $z0, $t1

这是在一个模拟试卷一个问题,但我很困惑,如何把它工作了。我真的需要帮助,请。我将如何去解决呢?我无法搞清楚T1的价值我知道如何按位或工作

This was a question in a mock exam paper but I'm confused as to how to work it out. I really need help please. How would I go about solving it? I'm having trouble figuring out the value of t1 I know how bitwise OR works

推荐答案

A或0 总是 A

所以 0或5 5

或T0,$ Z0,#T1 $ T1 的值存储在 $ T0

无论是 $ T1 将在 T0 了。

这篇关于MIPS或按位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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