Question: Hello sir, This is a simple question about an lmc simulator, can you solve it ? Computer architecture [ Year 3 ] Online / Remote
Hello sir, This is a simple question about an lmc simulator, can you solve it
Computer architecture Year
Online Remote practice questions
November
This is original program loader
LDA initialize the STORE instruction at loc.
STO storing the contents of mailbox that is
INP input a value
SUB subtract
BRZ done loadingjump to for execution
ADD restore input value
DAT store value. This will contain XX with XX indexed
LDA load the STORE instruction in
ADD increment it
STO and resave it
BRA continue with the next input
DAT value for testing
DAT initial STORE instruction as a data value
DAT value for indexing
What you need to do
Load the above program loader in the LMC The instructions should be loaded in your LMC at the mailboxes indicated above to work properly. Please make sure that in mailbox you have the instruction to branch to mailbox first instruction of the program loader
Run the program loader and input the following user program which asks for nums, add the first nums and subtract st num from rd which means rd num minus st num. Also
Please convert to opcodes to enter instruction in lmc simulator, use peterhigginson lmc simulator
INP
STA
INP
ADD
OUT
INP
SUB
OUT
HLT
DAT
Please answer :
How do you do it how did you add a branch to mailbox in mailbox Step by step process in lmc simulator required.
Second part:
This original program loader loads the user program starting at mailbox you need to change this to load the user program starting at mailbox
So you have to make the code for the modified program loader that starts at mailbox and load the user program starting at mailbox and explain the changes.
Summary of final requirements
How to run original code above with a user program to perform calculations. Please make sure that in mailbox you have the instruction to branch to mailbox first instruction of the program loader Whole code needed.
Modified original code with steps to run it with a user program in the simulator. Move the program loader so that it starts at mailbox in the LMC Modify as required so it works properly. The original program loader loads the user program starting at mailbox you need to change this to load the user program starting at mailbox
Please provide Full original code with user program and Full modified code with user program with steps to run it in simulator required in homework.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
