0x7788000c 4 0x77000003 we want to put the value held

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: in memory to a register 1.  Lw, 2. sw, 3. add, 4. mul4 •  Find valid memory addresses from the following selec4ons (Choose all that apply) 1.  0x01234567, 2. 0x00000048, 3. 0x7788000C 4. 0x77000003 •  We want to put the value held at the memory address 0x0040000C into register $s0; and $t0 holds the value of 0x00400000; write the assembly language instruc4on that performs this opera4on •  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 More on Memory Access .data array1: .space 12 # declare 12 bytes of storage to hold # 3 integers .text main: la $t0, array1 # load base address of array1 into $t0 li $t1, 5 sw $t1, ($t0) # set the first...
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