在MIPS装配使用XOR [英] XOR use in MIPS Assembly

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

问题描述

好吧,我是pretty肯定我已经使用了可能的XOR利用所有的变化与$ S1交换$ S0,但是,我仍然无法得到它的工作!这是MIPS大会和我使用MARS。请能有人给我一个解决方案吗?

Okay, I'm pretty sure I've used up all variations of possible XOR use to exchange $s0 with $s1, however, I still can't get it to work! It's MIPS Assembly and I'm using MARS. Please could somebody provide me a solution?

您会大大AP preciated!

You will be greatly appreciated!

推荐答案

你有没有尝试

xor $s0, $s0, $s1
xor $s1, $s0, $s1
xor $s0, $s0, $s1

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

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