CS609 Assignment 2 Solution File spring 2021 - Virtual University
Solution:
Cs609
Assignment 2 Solution 2021
Question
Solution
Code
Mov
0x178, al;
Outb
al,0x20;
Outb
al, 0xA0;
Mov
0x80,al;
Outb
al, 0x21;
Add
0x70, al;
Outb
al,0xAl;
In
al, 0x21
Or
al, 2;
Out
0x21, al;
In
al, 0x21Al
Or
al,2 ;
Out
0xAl, al;
Mov
ax, 0x4c00;
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 5th bit of the status byte is 1 which tells
that the printer is out of paper and printer could not be accessed.
No comments:
Post a Comment