XOR use in MIPS Assembly

北慕城南 提交于 2019-12-04 07:02:36

问题


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?

You will be greatly appreciated!


回答1:


Did you try

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


来源:https://stackoverflow.com/questions/15348977/xor-use-in-mips-assembly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!