Jump to content

LC3 Instruction help?


jchen

Recommended Posts

Problem :

 

Replace the store Indirect (1011) instruction in the code with whatever instructions are necessary to perform the same instruction.

 

x3000 0010 0000 0000 0010

x3001 1011 0000 0000 0010

x3002 1111 0000 0010 0101

x3003 0000 0000 0100 1000

x3004 1111 0011 1111 1111

 

I know I'm going to be pulling the memory from x3004 into R0 ( R0 <-- M(3003)) and then that's going to be going into M(M(3004)) <--R0 , but I tried looking at the instructions contained at that location (3004), and if it's signed, then it's a negative value? How do I find a memory location at a negative value? Can anyone tell me if I'm even thinking in the right direction?

Edited by jchen
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.