Fillintheblankwritethemachinecodeforthebnein qu estio

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d a te a n d R e g ra d e H i d e Qu e sti o n D e ta i l s 1. Fill in the Blank: Write the machine code for the bne in... Qu estio n Points: 20 Write the mac hine c ode for the bne ins truc tion (in hex ) from the following c ode: HERE: addi $t0, $t0, ­1 bne $t0, $0, HERE (Lec ture 8B) Evalu atio n Meth o d An swer Pattern Match (0 x)* (1 5 0 0 fffe )|(0 x)* (1 5 0 0 FFFE) In co rrect F eed b ack Remember, the offs et c an be negativ e (2s c omplement). Als o that it c ounts ins truc tions from the ins truc tion after the branc h. Case Sen sitivity Points: 20 2. Fill in the Blank: Given the following address and instr... Qu estio n Giv en the following addres s and ins truc tion s tored at that addres s for a jump ins truc tion, what is the jump target addres s (in hex )? Addres s Value 0x 1000000 0x 08000001 (Lec ture 8B) Evalu atio n Meth o d An swer Pattern Match (0 x )* (1 0 0 0 0 0 0 4 ) In co rrect F eed b ack Case Sen sitivity Were do y ou get the top four bits from? Points: 10 3. Fill in the Blank: The assembl...
View Full Document

Ask a homework question - tutors are online