[net.micro.pc] HELP: need MS-DOS interrupt params.

amc543@uiucuxa.CSO.UIUC.EDU (11/15/85)

I want to use an MS-DOS call to send a character to the listing device
(LST, normally a serial or parallel printer), which I believe is MS-DOS
interrupt 5.  But I can't find the necessary parameters.  Can someone
please tell me what parameters are needed for this call?

(I believe the info is in the MS-DOS tech reference manual, but I don't
have one on hand.)  Thanks much.

Aaron Contorer 
amc543@uiucuxa

johnson@noscvax.UUCP (Timothy A. Johnson) (11/22/85)

> 
> I want to use an MS-DOS call to send a character to the listing device
> (LST, normally a serial or parallel printer), which I believe is MS-DOS
> interrupt 5.  But I can't find the necessary parameters.  Can someone
> please tell me what parameters are needed for this call?
> 
> (I believe the info is in the MS-DOS tech reference manual, but I don't
> have one on hand.)  Thanks much.
> 
> Aaron Contorer 
> amc543@uiucuxa

According to Norton's "Programmer's Guide to the IBM PC", DOS function
5 (from int 21H) will output one byte from register DL to the standard
print device. 

Timothy A. Johnson
Computer Sciences Corporation

keifer@uiucdcs.CS.UIUC.EDU (11/22/85)

INT 5H is print screen.  Probably not what you want.

INT 17H, AH=0 prints a character (AL) to printer (0-2, DX)
		on return, AH=status

INT 17H, AH=1 initializes printer (0-2, DX)

INT 17H, AH=2 reads printer status (printer number in DX)


	

kim@mips.UUCP (Kim DeVaughn) (11/24/85)

[ ... go ahead, eat my bits ... ]

> INT 5H is print screen.  Probably not what you want.
> INT 17H, AH=0 prints a character (AL) to printer (0-2, DX)
> 		on return, AH=status
> INT 17H, AH=1 initializes printer (0-2, DX)
> INT 17H, AH=2 reads printer status (printer number in DX)

Those rupts are for PC-DOS, *not* MS-DOS (though some machines may
		    ^^		  ^^
support them in their own BIOS).  What's needed for the MS-DOS function
is a call to Int 21h, with AH = 05h, and the character to be printed
in DL.

There *are* other things in life besides Blue!

/kim
-- 

UUCP:  {decvax,ucbvax,ihnp4}!decwrl!mips!kim
DDD:   415-960-1200
USPS:  MIPS Computer Systems Inc,  1330 Charleston Rd,  Mt View, CA 94043