Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!pro-generic.cts.com!ericmcg From: ericmcg@pro-generic.cts.com (Eric Mcgillicuddy) Newsgroups: comp.sys.apple Subject: Re: Printing from Assembly Message-ID: <8684.infoapple.net@pro-generic> Date: 15 Dec 89 07:49:10 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 14 In-Reply-To: message from cwilson@NISC.SRI.COM IF you have maintained Basic.System, then let it do your work. Use DOSCMD to initialize the printer. Store the string "PR#1" at $200 and JSR DOSCMD ($BE03). This sets up the output hooks for the printer. You can now use COUT ($FDED) to print your text just as if you writing to the screen. If you are being difficult and designing a SYS program then it's more difficult.You would need to initialize the card ($Cn0D) and then probably use the PWRITE routine ($Cn0f holds the low byte of the address) to output it. Actually, ... disregard that. Flipping to section 3.1, it says that by moving $Cn00 to $36,$37 changes the standard output links. You should call the subroutine at $3EA to transfer this link if you were using DOS. After this is set COUT should be usable to get the text to the printer.