[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ciderpress for OS/X?



On Aug 13, 10:49 pm, mdj <mdj....@gmail.com> wrote:
> On Aug 14, 2:19 pm, datajerk <dataj...@gmail.com> wrote:
>
> > Thanks.  Identical results as before.
>
> If you're running under BASIC.SYSTEM you should be able to do a:
>
> printf("\x04pr#3\n");
>
> Which would be the equivalent of
>
> PRINT CHR$(4) ; "PR#3"

Tried.  It just puts "pr#3" on the screen.  I created printpi.c to
read pi.txt and print, I then updated pi.c to output to a file
(pi.txt), so this works:

brun pi
pr#3
brun printpi
pr#0
delete pi.txt

Not ideal, but it works.

> Just JSR'ing to $C300 will overwrite the KEYIN and CHAROUT vectors in
> the zero page, which are redirected via the operating system when one
> is installed. This will disconnect it, requiring a call to the re-
> entry vector at $03D0.
>
> Grab a copy of Beneath Apple ProDOS or the ProDOS TRM to see where the
> vectors should be patched inside ProDOS.

Part of the attraction with C is not using assembly.  :-)  If this
were anything beyond a hobby, then yes I'd have to write the necessary
drivers to get col 80 and printing to work.  I was assuming that
another had solved this problem.  Clearly not a big deal.