[comp.sys.amiga.programmer] Assembler Help :)

J56QC@CUNYVM.BITNET (02/13/91)

Hello... I was wondering about something.. Ok... I have created a simple print

routine that prints ascii text to the cli window or the current OUTPUT handle.
I would like to know if I could used the same routine to print out to an
inuition window using the WINDOW HANDLE THAT WAS returned when I opened it..
Ok.. my little routine looks like this..
WriteOut:
  save some stuff....
   call program with D1 = Current output handle
   D2 = base of text
   D3 = length of text
   A5 = a return address
   A6 = DosBase
When I use this routine I put a return address into a5 and JMP WriteOut..
But don't worry about it..right now... Would it be possible to pub the
current window Handle into D1 or something from its structure?.. or do I
have to create a new routine that handles text to a intui window??? help.! :)
Thank you ....   James T. Romano.. (if you don't understand the routine
please don't worry, it just prints to the standard output...) :)