Computer Architecture and AssemblyLanguage Programming
Assignment # 5
Total Marks: 15
Your assignment must be uploaded before or on
Please view the document related to assignment submission process provided toyou by the Virtual University to upload the assignment.
Rules for Marking
Kindly note that your assignment will NOT be graded if:
It is submitted after due date
The file you uploaded does not open
The file you uploaded is copied from someone else
It is in the format other than
This assignment has been designed to enable you:
To understand how to enable/disable interrupts by using port0x21 of PIC
The following code reads port 0x21 (interrupt mask register) of PIC(Programmable Interrupt Controller), sets the 2nd bit that is mapped to IRQ1 andwrites it back to port 0x21. As a result keyboard interrupt will be disabled as IRQ1is used by keyboard.
; disable keyboard interrupt in PIC mask register01[org 0x0100]02in al, 0x21; read interrupt mask register03or al, 2; set bit for IRQ104out 0x21, al; write back mask register05mov ax, 0x4c00; terminate program06int 0x21Modify instruction_03 for the following:I.set bit for IRQ0II.set bit for IRQ6III.set bits for IRQ1, IRQ3 and IRQ4IV.clear bit for IRQ5V.clear bits for IRQ2, IRQ5, IRQ6 and IRQ7sol: