ece109_InClass11 - a decimal value and x to indicate a hex...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 109 Spring 2010 Name:__________________________________________ March 2, 2010 Class Assignment 11 1. The figure to the right shows some of the memory and register contents of an LC-3 processor. An empty box represents an unknown value. Assume that the PC contains x3010. Start executing instructions, writing the results of each instruction into the appropriate register or memory location, until the location labeled (a) is reached. (You can use either decimal or hexadecimal to write the value, whichever is convenient. Use ‘#’ to indicate
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a decimal value and x to indicate a hex value.) 2. For each location (a), (b), and (c), write the hexadecimal encoding of an instruction that performs the indicated action: (a) Store the value in R4 to memory location x300F. (b) Store the value in R7 to memory location x3C02. (c) Write the value x3016 into R1. Registers Memory x0000 x300D x300E x300F x3010 x3011 x3012 x3013 x3014 xFFFF x3C00 x25FC x6681 xB7FB R0 R1 R2 R3 R4 R5 R6 R7 x3015 x3016 x3C00 x3C01 xFFFF x0001 x0002 x3C02 x3C02 xF025 (a) (b) (c) xFFFB xDEAD xBEEF xFACE xCAFE...
View Full Document

This note was uploaded on 04/18/2010 for the course ECE 109 taught by Professor Bradley during the Spring '08 term at N.C. State.

Ask a homework question - tutors are online