[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 80 Columns under cc65?
Hi,
>> How do I get an 80-column text mode on an Apple 2 under cc65?
>It looks like the cc65 conio library goes to some lengths to avoid
>changing whatever your program loader sets.
That's very true. And in fact it goes beyond that: In contrast to at
least some other cc65 targets the Apple2 conio implementation allows
you to mix stdio and conio. Additionally you can use the well-known
Apple2 zero-page variables to restrict the output to a certain window
both for stdio and conio.
> LDA MACHID
> AND #2
> BEQ NO80COL
> JSR $C300
I've tried recently to do that from within a cc65 program via inline
assembler but that mixed up something with ProDOS so file I/O didn't
work anymore. I'll have to investigate but my current work life
situation doesn't allow for that. So the current workaround is to set
80-column mode before starting the cc65 program.
Best, Oliver