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

Don't use plagiarized sources. Get Your Custom Essay on
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
For $10/Page 0nly
Order Essay
Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper