Highlights
Task – What does the program do?
1. Work out the following LMC program code. Explain in the table provided each instruction in terms of what it performs and how it effects to registers and/or memory address.
INP
STO VALUE1
INP
STO VALUE2
SUB VALUE1
BRP DISP
LDA VALUE1
SUB VALUE2
DISP OUT
HLT
VALUE1 DAT
VALUE2 DAT
Memory Address Instruction Description
0 INP
1 STO 10
2 INP
3 STO 11
4 SUB 10
5 BRP 8
6 LDA 10
7 SUB 11
8 OUT
9 HALT
10 DAT
11 DAT
2. Enter the LMC assembly program above to the Assembly Language Code section., submit, and execute the program in normal and single step modes using various input values. Watch the flows that go in various parts in the system and observe values of registers and memory addresses. Then, briefly explain what this program does and also take a screenshot of the program as evidence.
INP
STO VALUE1
INP
STO VALUE2
SUB VALUE1
BRP DISP
LDA VALUE1
SUB VALUE2
DISP OUT
HLT
VALUE1 DAT
VALUE2 DAT
This IT Assignment has been solved by our IT experts at My Uni Papers. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2025 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.