quiz1sol

Quiz1sol

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: , 1 sw $t1, ‐4($a1) bne $a0, $t0, LOOP Page 4 of 6 ECE 154A Fall 2012 Problem 4 (20 points) Given your understanding of PC‐relative addressing, explain why an assembler might have problems directly implementing the branch instruction in the following code sequence: here: beq $s0, $s2, there … there: add $t2, $t1, $t0 Show how the assembler might rewrite this code sequence to solve these problems. There is a limitation to how far bne instruction can jump because the immediate field is only 16 bits. M...
View Full Document

This note was uploaded on 07/08/2013 for the course ECE 154A taught by Professor Strukov during the Fall '12 term at UCSB.

Ask a homework question - tutors are online