下面MIPS指令中,错误的是( )
A: addu $t0, $t1, $t2
B: addu $8, $9, $10
C: add $t0, $t1, 12($t3)
D: addi $t0, $t1, 10
A: addu $t0, $t1, $t2
B: addu $8, $9, $10
C: add $t0, $t1, 12($t3)
D: addi $t0, $t1, 10
举一反三
- 14. 将如下MIPS R4000汇编语言翻译成机器语言指令。 lw $t0,1200($t1) add $t0,$s2,$t0 sw $t0,1200($t1)
- Assume $t1=0x12345678,$t0=87654321, after executing instruction "add $t2, $t1, $t0" and "addu $t3,$t1,$t0",the values of $t2 and $t3 are same.
- 已知向量=(2,t),=(1,2),若t=t1时,∥;t=t2时,⊥,则( ) A: t1=-4,t2=-1 B: t1=-4,t2=1 C: t1=4,t2=-1 D: t1=4,t2=1
- 下列程序段 A 与 B 功能等价,请填写程序段 B 中相应语句。 程序段A: int f( int n ) { if(n<=1) return n; else return f(n-1)+f(n-2); } 程序B: int f( int n )______; t0=0; t1=1; t=n; while ( n>1 ) { t = t0+t1 ; t0 = t1; t1 = t; n - -; } return t ; }
- TranslatethefollowingMIPScodetoC.Assumethatthevariablesf,g,h,i,andjareassignedtoregisters$s0,$s1,$s2,$s3,and$s4,respectively.AssumethatthebaseaddressofthearraysAandBareinregisters$s6and$s7,respectively.addi$t0,$s6,4add$t1,$s6,$0sw$t1,0($t0)lw$t0,0($t0)add$s0,$t1,$t0