Tutorial 3 2022 Students
Tutorial 3 2022 Students
9. What will be the contents of r AL after the following has been executed
MOV BL, 8C
MOV AL, 7E
UNIVERSITY OF NAMIBIA
SCHOOL OF ENGINEERING AND THE BUIT ENVIRONMENT
MICROPROCESSOR SYSTEMS TUTORIAL 3 – 29/03/2022
ADD AL, BL
(A) 0A and carry flag is set (B) 0A and carry flag is reset
(C) 6A and carry flag is set (D) 6A and carry flag is reset
13. In 16-bit to 8-bit division operation, the quotient and remainder store at…
A) AH-AL B) AL-AH C) AX-DX D) DX-AX
14. In 32-bit to 16-bit division operation, the quotient and remainder store at…
A) AH-AL B) AL-AH C) AX-DX D) DX-AX
26. Instructions IN and OUT are related to ….
A) AX B) BX C) CX D) all
{Your answer should give the default segments of operation, pointers used, operation done to achieve
the function etc. PS: Don’t just write, for example, it moves data and you end there. }
(c) Explain the function of the following: ORG, EVEN, ENDS and EQU in relation to 8086
programming. [4 marks]
(d) Explain the use of BIU and EU in the 8086 architecture. [6 marks]
Q2 (a) Explain the control word of 8255PPI and differentiate between the two command words.
[6 marks]
(b) The circuit connection of an 8255 chip is shown below with dedicated address lines
connected to a six input NAND gate and A0 and A1 connected to the A0 and A1 input
pin of the 8255 PPI chip. Find the address of Port B in the 8255 PPI shown below.
[6 marks]
P.T.O ---------------------------------------
UNIVERSITY OF NAMIBIA
SCHOOL OF ENGINEERING AND THE BUIT ENVIRONMENT
MICROPROCESSOR SYSTEMS TUTORIAL 3 – 29/03/2022
QUESTION 3
Design a decoder circuit to map the lowest section of memory space to four 32K x 8 EPROM chips
for an 8086 microprocessor system.
(i) Use NAND gates and inverters only for the decoder circuit. Indicate the start and end addresses
for each EPROM chip. Use RD and IO/M control signals of the microprocessor to access
memory.
(ii) Use the 74LS138 decoder
(iii) Indicate the start and end addresses for each EPROM chip
QUESTION 4
Design a decoder circuit to map the upper quarter (1/4) of the memory space to 64K x 8 EEPROM
chips for an 8086 microprocessor system.
(i) Use NAND gates and inverters only for the decoder circuit.
(ii) Determine the required number of chips
(iii) Indicate the start and end addresses for each EEPROM chip.
(iv) Use 74LS138 decoder
Use RD, WR, and IO/M control signals of the microprocessor to access memory.