Answered step by step
Verified Expert Solution
Question
1 Approved Answer
b. Consider the following MIPS code snippet. Pertimbangkan keratan kod MIPS berikut. CONTINUE: slt $t2, $to, $t1 beq $t2, $0, NEXT addi $t1,$t1, -1 addi
b. Consider the following MIPS code snippet. Pertimbangkan keratan kod MIPS berikut. CONTINUE: slt $t2, $to, $t1 beq $t2, $0, NEXT addi $t1,$t1, -1 addi $se, $se, -1 sub $51, $50, $s1 j CONTINUE NEXT: addi $51, $51,20 1. Assume initial value for the following registers as follows Anggapkan nilai awal untuk daftar seperti berikut. $t0 = 0, $t1 = 10, $se = 0, $s1 = 100 What is the final value in register $t1, $50 and $s1? Berapakah nilai akhir dalam daftar $t1, $s0 dan $51 (3 marks) ii. For code snippet above, write the equivalent C/C++ code. Assume that the registers $50, $s1, $t0,$t1 and St2 are integers so, s1, to, t1, and t2 respectively. Untuk keratan kod di atas, tulis kod C/C++ yang setara. Anggap bahawa daftar $s0, $S1, $t1, dan $t2 adalah integer so, s1, to, 11, dan t2 masing-masing. (7 marks) C. By referring to MIPS Reference Data, convert assembly code addiu $6, $5, 4 to machine instruction in hexadecimal and binary format. Explain step by step how you get the answer. arahan mesin dalam format heksadesimal dan binari. Terangkan langkah demi langkah bagai Dengan merujuk kepada Data Rujukan MIPS, tukar arahan bahasa penghimpun addiu $6, $5, 4 kepada "Windows mendapat jawapannya. ada anda
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started