[comp.sys.mac.programmer] Turbo Pascal Register Saving & Big Serial Output Buffers

jat@merlin.ukc.ac.uk (J.A.Tanner) (08/13/88)

As I am trying to increase the size of the mac's srial output buffer, and
can find no straight forward way of doing it ( as is possible with the
input buffer ) i thought of using a combination of an async call to
PBWrite to initiate a transfer using my own allocated large buffer, and
to then use the ioCompletion routine facility to see if any more data had
been inserted into my buffer and if so continue the transfer automatically.

My problems are:

1. Is there another way of doing this ( ie have a large output buffer )?
2. Since the ioCompletion routine needs to operate under interrupt i
   need to preserve all registers. Unfortunately I am writing this in
   turbo pascal and it only saves a few, which results in mty program
   bombing. ( I am placing calls to SetupA5 and RestoreA5 at the start
   and end of the io completion routine. )

Thanks in advance for any help.

Jason.

PS. Please try to reply via mail as I am unable to access news regularly
    and would probably miss any replies.

-- 
ARPA: jat%merlin.ukc.ac.uk@nss.cs.ucl.ac.uk       USENET: jat@merlin.ukc.uucp
JANET:jat@uk.ac.ukc.merlin                useBANGnet: ...mcvax!ukc!merlin!jat
Mail: Jason Tanner, Eliot College, University of Kent at Canterbury, Kent.,
      CT2 7NZ, ENGLAND.