ece109_InClass15

ece109_InClass15 - ; What is the value of R3 now?...

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 25, 2010 Class Assignment 15 Practice with loads and stores. In the following LC-3 program, fill in the blanks to answer the questions given in the comments. . ORIG x3000 START LD R0, DATA1 ; What is the value of R0 now? ________________ ; LEA R1, DATA1 ; What is the value of R1 now? ________________ ; LDI R2, DATA2 ; What is the value of R2 now? ________________ ; LDR R3, R1, #1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ; What is the value of R3 now? ________________ ; ADD R2, R2, #1 ST R1, DATA1 STI R2, DATA2 STR R0, R1, #1 HALT ; DATA1 .FILL #-100 ; What value is stored here (DATA1) ; when the program ends? ______________________ DATA2 .FILL DATA1 ; What value is placed at this memory ; location (DATA2) when the program is loaded? ___________ ; ; What value is stored here (DATA2) ; when the program ends? ______________________ ; .END...
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