Yes, many interrupts were used.
1. To open File1
AH = 3Dh - "OPEN" - OPEN EXISTING FILE
2. You write some stuff
AH=40h - "WRITE" - WRITE TO FILE OR DEVICE
3. Open questions file
AH = 3Dh - "OPEN" - OPEN EXISTING FILE
4. Read from questions file
AH = 3Fh - "READ" - READ FROM FILE OR DEVICE
5. Type more to file1
AH=40h - "WRITE" - WRITE TO FILE OR DEVICE
6. Send data to printer
AH = 05h - WRITE CHARACTER TO PRINTER
Yes, this is an example of nested multiple interrupts because you opened File1. And then subsequently you opened questions file without closing File1.
Get Answers For Free
Most questions answered within 1 hours.