Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要翻转/反转 4 字节字中的字节,以便在 LED 显示屏上显示它。
显然有一个简单的指令来完成这个,但我无法在任何地方找到它。
也不?
nor $d,$s,$t $d = ~ ($s | $t)
编辑:
似乎找不到 32 位字节交换指令,但你能字节交换半字然后交换半字吗?
li $t0,0xABCD ;ABCD wbsh $t0,$t0 ;BADC rotr $v0,$v0,16 ;DCBA