209k views
5 votes
Select the operations necessary to load the file br.obj into the LC3 command line simulator, get the only value of the label Skip, set a breakpoint at the label Skip2, then run the simulator to the next instruction after the label Skip2 continue Skip2 break Skip2 continue break set Skip2 file br.obj list Skip step translate Skip

User Mikolaj
by
8.5k points

1 Answer

5 votes

Answer:

The operations necessary to load the file `br.obj` into the LC3 command line simulator, get the only value of the label Skip, set a breakpoint at the label Skip2, then run the simulator to the next instruction after the label Skip2 would be:

1. Set the file for loading: `file br.obj`

2. List the program instructions: `list`

3. Get the value of the label `Skip`: `print Skip`

4. Set the breakpoint at label `Skip2`: `break Skip2`

5. Run the simulator until the breakpoint is reached: `continue`

6. Once the breakpoint is reached and the simulator is paused, run the next instruction: `step`

Therefore, the correct operations would be:

```

file br.obj

list

print Skip

break Skip2

continue

step

```

User Mark Wilson
by
8.1k points