[英]Using MIPS 32 assembly language, how can I use the addu and ori commands to load and add 4 integers?
[英]Ori assembly mips
為什么在此代碼中使用“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
我不明白為什么有必要擴展位數
該行是li $t0,0xC350
。 li
指令不是真實的,它使用addi
或ori
來完成這項工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.