計算機組織與結構›Ch1 指令集架構(ISA)第 23 題/共 39 題
23. MIPS Assembly、Machine Code、beq
#CC-01-023中MIPS AssemblyMachine Codebeq
題組題幹(本題:第33題,共 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 the register number of $s2 is 18 and the OP code of beq is 4. The MIPS machine codes of the beq in this code sequence is
📄 交大111
▤完整推導請見《WH 資工筆記 · 計算機組織與結構》Ch1 指令集架構(ISA)