3-m - at address x3082 into R5 x3012 If R5 is not positive jump to the instruction at location x3000 x3013 Set the condition codes based on the

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
2 Exam #1 Distribution Mean: 81.5 (median: 83) Within one standard deviation of mean: 63.2 – 99.8
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3 Load/Store Instruction Calculations • For LEA, LD/ST, LDI/STI: offset for (first) address is calculated: PCoffset9 = Desired Memory Address – (Instruction Address + 1) • LEA puts Desired Memory Address in register • LD/ST accesses contents of that memory location, gets/puts register from/to there • LDI/STI accesses contents of that memory location, gets another address from there, then gets/puts register from/to the memory location labeled by the second address
Background image of page 2
4 Load/Store Instruction Calculations • For LDR/STR: offset for address is calculated: Offset6 = Desired Memory Address – Address in Base Register • LDR/STR (like LD/ST) then accesses contents of that memory location, gets/puts register from/to there Metaphor: Bins in a warehouse; you have two runners to get bin contents
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
22 Daily Quiz • Encode these operations: x3011 Load the contents of the memory
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: at address x3082 into R5 x3012 If R5 is not positive, jump to the instruction at location x3000 x3013 Set the condition codes based on the value in R1 (preserving R1) x3014 If R1 is zero, jump to the instruction at location x3026 23 Daily Quiz Answers • Encode these operations: x3011 Load the contents of the memory at address x3082 into R5 LD R5, x70 (#112) 0010 101 001110000 x3012 If R5 is not positive, jump to the instruction at location x3000 0000 110 111101101 BRnz x1ED (#-19) 24 Daily Quiz Answers • Encode these operations: x3013 Set the condition codes based on the value in R1 (preserving R1) AND R1 R1 x1F (#-1) 0101 001 001 1 11111 or ADD R1 R1 x00 (#0) 0001 001 001 1 00000 x3014 If R1 is zero, jump to the instruction at location x3026 0000 010 000010001 BRz x011 (#17) 25 End of Lecture 14 • Didn’t cover pre-lecture slides 19–26 • If you have exam concerns, see me during office hours or after lecture...
View Full Document

This note was uploaded on 09/06/2009 for the course BME 303 taught by Professor Ren during the Spring '08 term at University of Texas at Austin.

Page1 / 7

3-m - at address x3082 into R5 x3012 If R5 is not positive jump to the instruction at location x3000 x3013 Set the condition codes based on the

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online