Hi,
Well, Interrupt 17H seems simple enough..
INT 17 Printer Services
Provides functions to use the printer or parallel port
INPUT AH = 0 = Print Character in AL
AH = 1 = Initialize Printer
AH = 2 = Get Printer Status
Interrupt 13H has a lot of functions. Int 13H AH = 2, reads
sectors from the disk . The reference I have says, AL = number of
sectors to read, CH = low eight bits of the cylinder number, CL bits
6 & 7 are cylinder number bits 8 & 9, CL bits 0 - 5 are the starting
sector number. DH is the starting head number. DL is the disk number,
80H is the first hard disk. 0 will be the first diskette drive. ES:BX
pointer to buffer to receive data. Carry = 0, successful, carry = 1,
error. And so forth.
Int 13H AH = 3 is write disk sectors. But it does not know of a
file system. Disk sectors are different from a file on a disk.
So I would suggest using MS-DOS Interrupt 21H file functions
instead. Then you can specify a file by name, and then read from,
write to, or create the file as needed. Much, much easier. And you
can open the PRN: device as a file and write to it to access the printer.
Ralf Brown' Interrupt List (RBIL) is a web reference if you still want
to use Int 13H. I am using "The Undocumented PC", which was the
printed version, older but easier to use.
Or, as this forum is for MASM32, you could try the Windows API,
and get more help from more members here.
HTH,
Steve N.