Jump to content

LC3 Instruction help?

Featured Replies

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.