1. Consider the LMC program below. Write a general description statement (not step-by-step) of what this program does. [2 marks] Address /Mailbox # 10 11 12 13 14 15 16 17 18 19 20 2. Consider the LMC program (LMC Slide # 16) in which 2 numbers are entered and added. Suppose we had stored the first input entry in mailbox location 00. Would the program have produced the same result? What would have happened if the program were executed a second time? What characteristic of the computer makes this true? [2 marks] Mailbox 3. Complete the LMC program below (i.e., insert the missing codes in addresses 13, 18 and 19) so that the program loops 4 times. [6 marks] 11 12 13 14 15 16 17 18 19 Numeric Code 901 319 901 320 519 902 Contents 518 219 520 902 000 000 000 318 902 611 000

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
The subject is “information Technology”. The topic of the questions are under the little Man Computer .
1. Consider the LMC program below. Write a general description statement (not step-by-step)
of what this program does. [2 marks]
Address /Mailbox #
10
11
12
13
14
15
16
17
18
19
20
Mailbox
11
12
13
14
15
16
2. Consider the LMC program (LMC Slide # 16) in which 2 numbers are entered and added.
Suppose we had stored the first input entry in mailbox location 00. Would the program have
produced the same result? What would have happened if the program were executed a
second time? What characteristic of the computer makes this true? [2 marks]
17
18
19
Numeric Code
901
319
3. Complete the LMC program below (i.e., insert the missing codes in addresses 13, 18 and 19)
so that the program loops 4 times. [6 marks]
Contents
518
219
901
320
519
902
318
902
611
000
520
902
000
000
000
Transcribed Image Text:1. Consider the LMC program below. Write a general description statement (not step-by-step) of what this program does. [2 marks] Address /Mailbox # 10 11 12 13 14 15 16 17 18 19 20 Mailbox 11 12 13 14 15 16 2. Consider the LMC program (LMC Slide # 16) in which 2 numbers are entered and added. Suppose we had stored the first input entry in mailbox location 00. Would the program have produced the same result? What would have happened if the program were executed a second time? What characteristic of the computer makes this true? [2 marks] 17 18 19 Numeric Code 901 319 3. Complete the LMC program below (i.e., insert the missing codes in addresses 13, 18 and 19) so that the program loops 4 times. [6 marks] Contents 518 219 901 320 519 902 318 902 611 000 520 902 000 000 000
Apply the LMC instruction set below to answer relevant questions.
LMC Instruction Set Instruction
Load
Store
Add
Subtract
Input
Output
End
Branch/Jump Unconditionally
Branch if zero
Branch if zero or positive
Data storage
Mnemonic
LDA
STO
ADD
SUB
IN
OUT
HLT
BR
BRZ
BRP
DAT
Numeric Code
5xx
3xx
1xx
2xx
901
902
000
6xx
7xx
8xx
XXX
Transcribed Image Text:Apply the LMC instruction set below to answer relevant questions. LMC Instruction Set Instruction Load Store Add Subtract Input Output End Branch/Jump Unconditionally Branch if zero Branch if zero or positive Data storage Mnemonic LDA STO ADD SUB IN OUT HLT BR BRZ BRP DAT Numeric Code 5xx 3xx 1xx 2xx 901 902 000 6xx 7xx 8xx XXX
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY