Assignment itech 1000 | Information Systems homework help

   

ITEC 1000 Assignment #2

Total = 100 marks (Solutions);

· 5 marks file name and general format

Instructions:

· All questions are based on Englander — Chapters 6 & 7.

· Use a word processor (if you use a non-MS WORD compatible program, e.g., Pages, save as PDF or RTF).

· Both questions and answers must be appropriately formatted (including tables) and well presented with enough 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 any time before or by the deadline, March 26, 11 PM (sharp); late submissions will not be accepted.

· Apply the LMC instruction set below to answer relevant questions.

  

LMC Instruction Set Instruction

Mnemonic

Numeric Code

 

Load

LDA

5xx

 

Store

STO

3xx

 

Add

ADD

1xx

 

Subtract

SUB

2xx

 

Input

IN

901

 

Output

OUT

902

 

End

HLT

000

 

Branch/Jump

BR

6xx

 

Branch if   zero

BRZ

7xx

 

Branch if   zero or positive

BRP

8xx

 

Data storage

DAT

xxx

   

1. Trace the program below and summarize what the program does; not a step-by-step description of each instruction. [5 marks]

  

Address / Mailbox #

Assembly / Mnemonic

Numeric   Code

 

00

IN

901

 

01

STO 90

390

 

02

IN

901

 

03

STO 91

391

 

04

LDA 90

590

 

05

OUT

902

 

06

LDA 91

591

 

07

OUT

902

 

08

HLT

000

 

 

90

DAT 0

000

 

91

DAT 0

000

2. Complete the table below to construct an LMC program that will accept a set of three numbers as INPUT and then add the first two numbers and output the answer, then subtract the first number from the third and output the answer. The program begins at address 00 and data is stored in address 90. [20 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

00

IN

901

Input first number

 

01

 

 

 

 

 

 

 

 

 

   

3. Complete the table below and construct an LMC program that will accept a number INPUT and OUTPUT a sequence of numbers, starting at 1 and finishing with the INPUT (maxNumber). The counter must be initialized to zero each time the program is run. The program will continue (loop) until a 0 is entered. [20 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

00

load zero (from 93) to the accumulator

 

01

Store the initial count

 

02

input

 

03

If zero, branch to halt

 

04

Store maxNumber

 

05

LoopTop load count

 

06

Add step to counter

 

07

Store count

 

08

Output

 

09

Subtract maxNumber

 

10

If positive, endLoop

 

11

Jumpt to loopTop

 

12

endLoop jump to start

 

13

Halt execution

 

 

90

step DAT 1

 

91

maxNumber DAT

 

92

count DAT

 

93

zero DAT

   

4. 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. [25 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Consider the LMC program below in which 2 numbers are entered and added. Suppose the first input entry was stored in mailbox location 00.

a. Would the program have produced the same result?

b. What would have happened if the program were executed a second time?

c. What characteristic of the computer makes this true? [5 marks]

  

Mailbox

Address

Numeric

Code

 

00

901

 

01

306

 

02

901

 

03

106

 

04

902

 

05

000

 

06

000

  

6. If a computer has a 38-bit memory address register. How much memory can this computer address? (Assume: 1 byte/cell; use the most appropriate measure unit). Show your work. [5 marks]

Consider the following LMC instructions found in the given locations in memory.

  

Mailbox Address

Mnemonic Code

 

15

LDA 40

 

16

ADD 41

 

 

40

723

 

41

021

7. Show the CPU Fetch/Execute cycle steps and the values of Instruction Register (IR), the Program Counter (PC), the Memory Address Register (MAR), the Memory Data Register (MDR), and Accumulator (A) when the instruction in address 15 is completed. [5 marks]

  

F/E cycle

Register Values

 

 

 

 

 

8. Show the contents of each register as each step of the F/E cycle is performed for instruction 16 in the above program. [10 marks]

  

F/E cycle

PC

MAR

MDR

IR

A

 

PC ® MAR

 

MDR ® IR

 

IR [address] ® MAR

 

A + MDR ® A

   

ITEC 1000 Assignment #2

Total = 100 marks (Solutions);

· 5 marks file name and general format

Instructions:

· All questions are based on Englander — Chapters 6 & 7.

· Use a word processor (if you use a non-MS WORD compatible program, e.g., Pages, save as PDF or RTF).

· Both questions and answers must be appropriately formatted (including tables) and well presented with enough 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 any time before or by the deadline, March 26, 11 PM (sharp); late submissions will not be accepted.

· Apply the LMC instruction set below to answer relevant questions.

  

LMC Instruction Set Instruction

Mnemonic

Numeric Code

 

Load

LDA

5xx

 

Store

STO

3xx

 

Add

ADD

1xx

 

Subtract

SUB

2xx

 

Input

IN

901

 

Output

OUT

902

 

End

HLT

000

 

Branch/Jump

BR

6xx

 

Branch if   zero

BRZ

7xx

 

Branch if   zero or positive

BRP

8xx

 

Data storage

DAT

xxx

   

1. Trace the program below and summarize what the program does; not a step-by-step description of each instruction. [5 marks]

  

Address / Mailbox #

Assembly / Mnemonic

Numeric   Code

 

00

IN

901

 

01

STO 90

390

 

02

IN

901

 

03

STO 91

391

 

04

LDA 90

590

 

05

OUT

902

 

06

LDA 91

591

 

07

OUT

902

 

08

HLT

000

 

 

90

DAT 0

000

 

91

DAT 0

000

2. Complete the table below to construct an LMC program that will accept a set of three numbers as INPUT and then add the first two numbers and output the answer, then subtract the first number from the third and output the answer. The program begins at address 00 and data is stored in address 90. [20 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

00

IN

901

Input first number

 

01

 

 

 

 

 

 

 

 

 

   

3. Complete the table below and construct an LMC program that will accept a number INPUT and OUTPUT a sequence of numbers, starting at 1 and finishing with the INPUT (maxNumber). The counter must be initialized to zero each time the program is run. The program will continue (loop) until a 0 is entered. [20 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

00

load zero (from 93) to the accumulator

 

01

Store the initial count

 

02

input

 

03

If zero, branch to halt

 

04

Store maxNumber

 

05

LoopTop load count

 

06

Add step to counter

 

07

Store count

 

08

Output

 

09

Subtract maxNumber

 

10

If positive, endLoop

 

11

Jumpt to loopTop

 

12

endLoop jump to start

 

13

Halt execution

 

 

90

step DAT 1

 

91

maxNumber DAT

 

92

count DAT

 

93

zero DAT

   

4. 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. [25 marks]

  

Mailbox #

Mnemonic

Numeric code

Instruction Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Consider the LMC program below in which 2 numbers are entered and added. Suppose the first input entry was stored in mailbox location 00.

a. Would the program have produced the same result?

b. What would have happened if the program were executed a second time?

c. What characteristic of the computer makes this true? [5 marks]

  

Mailbox

Address

Numeric

Code

 

00

901

 

01

306

 

02

901

 

03

106

 

04

902

 

05

000

 

06

000

  

6. If a computer has a 38-bit memory address register. How much memory can this computer address? (Assume: 1 byte/cell; use the most appropriate measure unit). Show your work. [5 marks]

Consider the following LMC instructions found in the given locations in memory.

  

Mailbox Address

Mnemonic Code

 

15

LDA 40

 

16

ADD 41

 

 

40

723

 

41

021

7. Show the CPU Fetch/Execute cycle steps and the values of Instruction Register (IR), the Program Counter (PC), the Memory Address Register (MAR), the Memory Data Register (MDR), and Accumulator (A) when the instruction in address 15 is completed. [5 marks]

  

F/E cycle

Register Values

 

 

 

 

 

8. Show the contents of each register as each step of the F/E cycle is performed for instruction 16 in the above program. [10 marks]

  

F/E cycle

PC

MAR

MDR

IR

A

 

PC ® MAR

 

MDR ® IR

 

IR [address] ® MAR

 

A + MDR ® A

 

University Writings
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.