Docsity

Execute Cycle - Introduction to Microprocessor Architecture - Exam Paper, Exams of Computer Science

Toggle sidebar
bg1
Page 1 of 5
CORK INSTITUTE OF TECHNOLOGY
INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ
Semester 2 Examinations 2010
Module Title: Introduction to Microprocessor Architecture
Module Code: COMH6004
School: School of Computing & Mathematics
Programme Title: Bachelor of Science (Honours) in Software Development
Programme Code: KSDEV_8_Y1
External Examiner(s): Mr. A. O Leary
Internal Examiner(s): Mr. S. Lankford
Instructions: Answer Question 1 and TWO other questions
Duration: 2 hours
Sitting: Summer 2010
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you
have received the correct examination paper. If in doubt please contact an Invigilator.
pf3
pf4
pf5

Partial preview of the text

Download Execute Cycle - Introduction to Microprocessor Architecture - Exam Paper and more Exams Computer Science in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ

Semester 2 Examinations 2010

Module Title: Introduction to Microprocessor Architecture

Module Code: COMH

School: School of Computing & Mathematics

Programme Title: Bachelor of Science (Honours) in Software Development

Programme Code: KSDEV_8_Y

External Examiner(s): Mr. A. O Leary Internal Examiner(s): Mr. S. Lankford

Instructions: Answer Question 1 and TWO other questions Duration: 2 hours

Sitting: Summer 2010

Requirements for this examination:

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.

a) Describe the sequence of steps in involved in the fetch and execute cycle in a 68000 based microprocessor. [8 marks]

b) What is stored in D2 after this program executes? D2 initially contains B25. NOT.W D AND.W #$A32C,D ORI.B #$E3,D2 [8 marks]

c) What is wrong with each of the following 68000 assembly language operations? i. MOVE #45,D ii. ADD.B D0,# iii. MOVE.B #300,D iv. ADD.W +(A2),D3 [8 marks]

d) Write a 68000 assembly language program that implements the following pseudo code:

D2 = 0; D3 = 5; IF (D2 < D3) { D2 = D2 + 1; } [8 marks]

e) Briefly describe the function of the following in the 68000 microprocessor: i) ALU ii) Control Unit iii) PC iv) IR [8 marks]

[40 marks]

(a) Describe, with the aid of a diagram, the architecture of a 68000-based microcomputer system (Von Neumann architecture). Show the internal registers and components of a CPU, the system bus and the organisation of memory and Input/Output peripheral devices. [10 marks]

(b) What types of addressing modes are used in the following instructions? Explain what happens to the specified operands once each instruction executes.

i. MOVEA #2,(A1) ii. MOVEA #4,(A2)+ iii. MOVEA #9,-(A0) iv. MOVE #5,D [8 marks]

(c) Write an 68000 assembly language program to evaluate the following expression:

X^22 + 8x + 11 [12 marks]

[30 marks]

(a) With appropriate diagrams, illustrate and explain the operation of the stack in the 68000 processor. In your explanation, use either RTL or sample code, to illustrate the push and pull stack operations. [10 marks]

(b) Illustrate and briefly explain what effect the following code samples have on the stack: i) MOVEM.L D0-D2/A0-A4,-(A7) ii) MOVE.W (A7)+,D iii) RTS [6 marks]

(c) Write an assembly language program to find the minimum value stored in the following array. The minimum value should be copied to data register, D5. The array is terminated with the value 01. Include code, which checks if the end of the array has been reached.

ARRAY: DC.B08,09,24,48,96,04,01 [14 marks]

[30 marks]