[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 80 Columns & DOS 3.3 for cc65?
Hi,
>How do I use the 80-column text screen on an Apple 2 from a cc65
>program? Same with DOS 3.3 routines?
In general there's no C-library support for switching text modes or
calling DOS 3.3 so you need to use either the inline assembler or the
macro assembler to to wrap the calls in question.
Routines using only the A reg as parameter and/or return value (or
having no parameter and/or return value at all) may alternatively be
called by declaring a pointer constant to a __fastcall__ C function.
As soon as you are in 80 col mode (maybe by just calling the cc65
program from a BASIC program doing a PR#3 before) both stdio and conio
works fine with 80 cols.
Best, Oliver