Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

assembly language lab entry level , can anybody help mw with it . ASAP , thanks

ID: 3864411 • Letter: A

Question

assembly language lab entry level , can anybody help mw with it . ASAP , thanks in advance .

This lab should be submitted to Blackboard as TWO FILES, lab05.txt lab05 asm. The answers to questions 1 and 2 should be added to lab05.txt and your code for #3 should be in lab05.asm. Your txt file should have your name at the top. Your asm file should have your name as a comment on line one. 1) Provide the type and assembly language instruction for the following binary value: 0000 0010 0001 0000 1000 0000 0010 0000 2) Assume the following register contents ste AAAAAAAA, $t1 0x12345678 a. For the register values shown above what is the value of $t2 for the following sequence of instructions? sll $t2, $t0, 44 or $12, $t2, $t1 b. For the register values shown above what is the value of $t2 for the following sequence of instructions? sll $t2, $t0, 4 andi $t2, $t2, -1 C. For the register values shown above what is the value of $t2 for the following sequence of instructions? srl $t2, $t0, 3 andi $t2, $t2, 0xFFEF

Explanation / Answer

1)01110110001001101110100111010111010010001111000010100100

2)a)$t value is 0

b)$t value is 1

c)$t value is 2

3)

{

if (val < divisior)

return val;

else

return modulus (val - divisior,divisor);

}