計算機組織與結構›Ch1 指令集架構(ISA)第 25 題/共 39 題
25. MIPS Assembly、Execution Trace
#CC-01-025易MIPS AssemblyExecution Trace
題組題幹(本題:第35題,共 3 小題)點擊展開
Given the MIPS code sequence below, if we assume it starts at location 8800 4000h in memory. Which of following statements are true?
8800 4000h:
add $t0, $zero, $zero
loop: beq $s2, $zero, finish
add $t0, $t0, $s1
sub $s2, $s2, 1
j loop
finish: sll $t0, $t0, 2
add $v0, $t0, $zero
Assume both $s1 and $s2 initially contain integers 5 and 6, respectively. What is the value that $v0 will contain after the execution of the whole code sequence?
📄 交大111
▤完整推導請見《WH 資工筆記 · 計算機組織與結構》Ch1 指令集架構(ISA)