🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #26356

How do you write to STDOUT with DOS calls

#26356
From: John Wright/Dr. Pat Lane
Date: Tue, 12 Apr 1988 05:55
12 lines
1098 bytes
In a short assembler program I wrote recently, I wanted to write a string
to the standard output so that file re-direction would work.  I'm using a
single interrupt hex 21 call with function code hex 40 and file handle 1.
Is that OK?  Is that the best way to do it?  I'm wondering because my pgm
works fine on my system but hangs on a friend's (we both use DOS 3.20).
Respond my mail please and thanks for any help.

-- 
John Wright      //////////////////      Phone:  902-424-3805  or  902-424-6527
Post: c/o Dr Pat Lane, Biology Dept, Dalhousie U, Halifax N.S., CANADA  B3H-4H8 
Cdn/Bitnet: lane@cs.dal.cdn    Arpa: lane%dalcs.uucp@uunet.uu.net
Uucp: lane@dalcs.uucp or {uunet,watmath,utai,garfield}!dalcs!lane  
Technical Details
Message-ID: <2831@dalcs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!dalcs!lane

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!dalcs!lane
From: lane@dalcs.UUCP (John Wright/Dr. Pat Lane)
Newsgroups: comp.sys.ibm.pc
Subject: How do you write to STDOUT with DOS calls
Message-ID: <2831@dalcs.UUCP>
Date: 12 Apr 88 05:55:15 GMT
Distribution: na
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Lines: 12
Keywords: DOS STDOUT file handles