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

  1. Provide the PCOffset9 for statement above
  2. Provide the PCOffset9 for statement above
  3. Provide the PCOffset9 for statement above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!