



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(NFQ Level 8)
Answer any FOUR questions. Examiners: Mr. Séamus Lankford Mr. J. Buckley Dr. A. Kinsella
Q1 (a) Explain what effect the following code samples have on the stack:
i) MOVEM.L D0-D2/A0-A4,-(A7) ii) MOVEM.L (A7)+,D0-D2/D4/A4-A iii) LEA $1000, A7 (6 marks)
(b) Briefly explain the following methods of passing parameters to a subroutine. Outline the advantages and disadvantages of each method and use simple code examples where appropriate. i) Passing parameters via registers ii) Passing parameters by value iii) Passing parameters by reference (9 marks)
(c) Explain what “Memory Mapped I/O” means. (3 marks)
(d) Illustrate a typical circuit that could be used to implement an 8-bit memory mapped input and output port. Briefly describe its operation. (7 marks)
[Total: 25 marks]
Q2 (a) Explain what it meant by the term DMA and summarise its key points of operation. In your explanation, outline the microprocessor signals required to implement this type of transfer. (5 marks)
(b) Using a Bus Arbitration Cycle flowchart, show how an external device requests the bus of the 68000 processor. In your flowchart, clearly outline the microprocessor signals which are required and explain the operation of the bus arbitration protocol. (10 marks)
(c) Explain what the term “pipelining” means. In your explanation, outline the benefits and basic operation of a pipelined architecture compared with a non-pipelined architecture. (10 marks)
[Total 25 marks]
Q4 (a) Briefly explain the function of the 68230 PI/T in a 68000 microprocessor-based system. (3 marks)
(b) Illustrate how the 68230 is interfaced with a 68000-based system. Clearly label all pins and explain how the arrangement works. Identify the type of data transfer, and the signals used to implement data transfer, between the 68230 and the 68000. (12 marks)
(c) Using the 68230 PI/T, implement a DELAY subroutine. No parameters are passed to the subroutine. The timer must be preloaded with a value, which determines the delay.
The subroutine will keep checking ZDS until the timer hits zero, at which point it returns to the calling program without passing back a result. The ZDS is located at bit 0 of the TSR. Setting bit 0 of the TCR enables the timer.
It is not necessary to write the calling program, only the subroutine is required to be written. The following EQUATE statements are used in the main program.
(10 marks)
[Total 25 marks]
Q5 (a) Briefly describe and illustrate the operation of the stack in the 80x86 processor, by
explaining the operation of the following instruction: PUSH EBX Show the following in your illustration: i) Contents of EBX after instruction execution ii) Contents of the stack before and after the instruction is executed iii) Any modifications, which take place to ESP before and after the instruction is executed Assume that the following values are stored in EBX prior to the instruction executing: 06 07 08 09 (6 marks)
(b) Write an 80x86 program to convert Fahrenheit temperature to Celsius using the following formula:
The program should be written as a console application, which prompts the user for the Fahrenheit input and outputs the Celsius answer to the console. (9 marks)
(c) Write an 80x86 procedure to calculate the integer square root of a positive integer, PosInt. Clearly outline the program design. (10 marks)
[Total: 25 marks]