Question: num1 is a signed 16 bit integer stored at memory location x2FF6 of the LC-3s memory. num2 is a signed 16 bit integer stored at
num1 is a signed 16 bit integer stored at memory location x2FF6 of the LC-3s memory. num2 is a signed 16 bit integer stored at memory location x3020. We wish to write a program to store the sum of num1 and num2 at memory location x2FF0. The program starts at memory location x3000.
Memory location
a) X3000 0010 001 _ _ _ _ _ _ _ _ _ ; R1<-Mem[x2FF6]. Provide PCOffset9
b) X3001 0010 010 _ _ _ _ _ _ _ _ _ ; R2<-Mem[x3020]. Provide PCOffset9
X3002 0001 011 010 0 00 001 ; R3<- R2 + R1
c) X3003 0011 011 _ _ _ _ _ _ _ _ _ ; Mem[x2FF0] <- R3. Provide PCOffset9
- Provide the PCOffset9 for statement above
- Provide the PCOffset9 for statement above
- Provide the PCOffset9 for statement above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
