Professional Documents
Culture Documents
Cs609 Assignment 2 Solution 2021
Cs609 Assignment 2 Solution 2021
Question
Solution
Code
Outb al,0x20;
Mov 0x80,al;
Outb al,0xAl;
In al, 0x21
Or al, 2;
In al, 0x21Al
Or al,2 ;
Int0x21
Question 2
Solution
AH=30H
Printer Status=?
The Status of the printer can be described in the manner to check if the printer can perform printing or
not .in this AH is 30.it means the 5 th bit of the status byte is 1 which tells that the printer is out of
paper and printer could not be accessed.