lecture5

Lecture5

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: 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

This note was uploaded on 12/27/2011 for the course CMPSC 64 taught by Professor Zheng during the Fall '09 term at UCSB.

Ask a homework question - tutors are online