[英]Ori assembly mips
Why use "ori" in this code?为什么在此代码中使用“ori”?
#case 3:
switch02_code_3 :
#a [ 5 ] = 50000;
ori $t0 , $zero , 0xC350 # $t0 <− 0x0000C350 = 50000
la $t1 , a # $t1 <− base address from a
sw $t0 , 20($t1) # a [ 5 ] = 50000
#break;
j switch02_end # finish switch block
I don't see why it is necessary to expand the number of bits我不明白为什么有必要扩展位数
That line is li $t0,0xC350
.该行是li $t0,0xC350
。 The li
instruction isn't real, it uses addi
or ori
to do the job. li
指令不是真实的,它使用addi
或ori
来完成这项工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.