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

Re: 80 Columns under cc65?



In article 
<b10f1b65-7cdb-4864-9ed9-a46cd2c1898a@s21g2000prm.googlegroups.com>,
 David Wilson <mcs6502@gmail.com> wrote:

> On Jul 4, 4:02 am, "John B. Matthews" <nos...@nospam.com> wrote:
> > > > > Oliver: the code above was from a ProDOS system program. A 
> > > > > non-system cc65 program launched from the Basic prompt under 
> > > > > ProDOS is running alongside BASIC.SYSTEM. It might be 
> > > > > necessary to update the BASIC Global Page Default I/O vectors 
> > > > > after initializing the card:
> 
> If the cc65 program is running with BASIC.SYSTEM, wouldn't it just
> need to do the equivalent to PRINT CHR$(4);"PR#3"?
> 
> i.e.
> 
> puts("\004PR#3");
> 
> That way BASIC.SYSTEM will take care of the I/O vectors for you.

Not with conio. Looking at libsrc/apple2/cputc.s, putchar stores 
characters in video memory, bypassing the I/O hooks.

I'd have thought sdtio might work, as you suggest. It uses _write, which 
calls COUT, which in turn vectors through zero page CSWL/H, owned and 
operated by ProDOS. I don't know why it's not working.

-- 
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews