Question: ( 4 0 pts ) Using all the given DLX handouts, give the machine code of each of the following instructions and represent it in

(40 pts) Using all the given DLX handouts, give the machine code of each of the following instructions
and represent it in HEX: (assuming that the current instruction is located in memory with it address equal
to 0x000041a0
a) subi r2,r4,#-12
b) xor r4,r5,r6
c) lhi r8,#0xf038(LHI follows the ALU-immediate instruction format)
d) jal sub (sub is the starting address label of the subroutine to jump to with its value equal to
0x00003c48)
e)sb-24(r2),r25
f) sll r5,r4,r3
g) sgei r3,r6,#-8
h) bnez r11, target (target equals an address of x0000502c)
( 4 0 pts ) Using all the given DLX handouts,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!