Micro Cat Two

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CAT TWO

DEP 2109A&B, DET2109A&B AND DEI 2109

QUESTION ONE

(a) Write an assembly language program, using stack operations, to exchange data
between register pairs BC and DE. (4 marks)
b) With aid of a flowchart, write an assembly language program to search for a byte
'BTEY' from a block of consecutive memory locations, which is 256 bytes long and
report the number of occurrences of the byte. The starting address of the memory block is
2000H. (9 marks)
QUESTION TWO

(a) Figure 1 shows a pin diagram of a microprocessor system device.

Fig.1
(i) Identify the device.
(ii) Explain the purpose of the device.
(iii) For signals INTA, INT, IRO-IR7:
I. State the function of each;
II. List a device each signal would typically be connected to in a system. (9 marks)
QUESTION THREE
(a) With the aid of a timing diagram, describe an I /O write machine cycle. (8 marks)
(b) State two merits of memory-mapped input/output technique. (2 marks)
(c) With the aid of an example, describe each of the following assembler directives:
(i) EQU;
(ii) DS;
(iii) ORG. (6 marks)

QUESTION FOUR

(a) Explain the function of each of the following software development tools.
(i) debugger;
(ii) interpreter (6 marks)
(b) With the aid of a timing diagram, explain the microcomputer memory read instruction
cycle. (6 marks)

You might also like