{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture5

Info icon This 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: CS 64 Lecture 5: Decision Instruc4ons So Far •  Basic Arithme4c –  add, sub, addi, mult, div •  Load memory: lw $s0, 8($t0) •  Store memory: sw $s0,  ­8 ($t0) Q1 •  What opera4on copies data from main memory to a register 1.  2.  3.  4.  lw sw add mul4 Q2 •  Find valid memory addresses from the following selec4ons (Choose all that apply) 1.  2.  3.  4.  0x01234567 0x00000048 0x7788000C 0x77000003 Q3 •  We want to put the value held at the memory address 0x0040000C into register $s0; and $t0 holds a value 0x00400000; write the assembly language instruc4on that performs this opera4on Q4 •  Register $t0 contains value 0x10000000. Beginning from this address there are five integers in a row; write the instruc4on that loads the last integer into register $s0 •  What opera4on copies data from ma...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern