ITEC 1000 American College of California Marking Guide LMC Instruction Project Use Office 365 Word (if you use a non-MS WORD compatible program, e.g., Page
ITEC 1000 American College of California Marking Guide LMC Instruction Project Use Office 365 Word (if you use a non-MS WORD compatible program, e.g., Pages, the filemust be saved as PDF or RTF). Both questions and answers must be appropriately formatted (including tables) and wellpresented with explanation. ITEC 1000 Assignment #2 Marking Guide
Instructions:
• Use Office 365 Word (if you use a non-MS WORD compatible program, e.g., Pages, the file
must be saved as PDF or RTF).
• Both questions and answers must be appropriately formatted (including tables) and well
presented with explanation.
• Be sure to name the file as your full name in the following format (lowercase), e.g.,
peggy_carter.docx
• Submit via the upload link provided at the course site by July 29, 10 PM
• Late submissions will not be accepted .
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
1. Consider the program below. Summarize what this program does. [2]
Address /
Mailbox #
Numeric
Code
00
01
02
03
04
05
06
07
08
…
90
91
901
390
901
391
590
902
591
902
000
000
000
2. Complete the program below so that the program loops 4 times. [3]
Mailbox
10
11
12
13
14
15
16
…
90
91
Contents
590
291
390
902
610
000
10
3. Complete the table below to construct an LMC program that will accept two INPUT numbers
and then OUTPUT the greater of the two. The program should begin at address 00 and data
should be stored in addresses beginning at 90. [10]
Mailbox #
Mnemonic
00
IN
01
STO 90
Numeric code
Instruction Description
02
4. Now construct an LMC program that accepts undetermined INPUT numbers
until a 0 (zero) INPUT is encountered then OUTPUTs the highest value. [20]
o
o
o
o
Begin program sequence at location address 00.
If a successive input number is 0, then complete the process.
Otherwise, each successive number is read in, stored and compared.
The higher number is stored, and the process repeats (loops) until COB.
5. Consider the LMC program below 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]
Mailbox
Address
00
01
02
03
04
05
99
Numeric
Code
901
399
901
199
902
000
000
6. If a computer has a 64-bit memory address register. How much memory can this computer
address? (Assume: 1 byte/cell; use the most appropriate measure unit). Show your work.
[3]
Consider the following LMC instructions found in the given locations in memory.
Address
Mnemonic Code
25
26
…
50
51
LDA 50
ADD 51
230
111
7a. Show the contents of IR, the PC, the MAR, the MDR and A at the conclusion of instruction 25.
[5 marks]
7b. Complete the table below showing the contents of each register as each step of the F/E cycle
is performed for instruction 26 in the above program. [10]
F/E cycle
PC
MAR
MDR
IR
A
Purchase answer to see full
attachment
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.