ece109_InClass14

ece109_InClass14 - hexadecimal notation.) f) What is the...

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 23, 2010 Class Assignment 14 Answer the following questions about the LC-3 assembly program shown on the right. a) What is the address of the first instruction in the program? b) What is the address of the instruction labeled NEXT? c) What is the address of the instruction that is fetched immediately after the JSR instruction completes? d) What is the last word in the object file when this program is assembled? (Write your answer in hexadecimal notation.) e) What is the value in memory location x300C? (Write your answer in
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: hexadecimal notation.) f) What is the address of the instruction that executes immediately after the instruction at location x3012? g) Just after the LEA instruction is executed, what is the value stored in R1? (Write your answer in hexadecimal notation.) h) Just before the HALT instruction is executed, what is the value stored in R7? (Write your answer in hexadecimal notation.) .ORIG x3000 LEA R1, DATA LD R2, LAST NOT R2, R2 LOOP JSR GET BRz NEXT OUT NEXT ADD R1, R1, #1 AND R2, R2, R1 BRnp LOOP HALT DATA .STRINGZ "AbCdeF" GET LDR R0, R1, #0 AND R0, R0, #-2 RET LAST .FILL GET .END...
View Full Document

Ask a homework question - tutors are online