Re: [cc65] using newline in cprintf on c64

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-03-07 01:38:11


On Friday 07 March 2003 01:21, Greg Long wrote:
> no prob.  Many 64'ers like to call CHROUT because the ability to use the
> other special characters, but writing inline assembly to call this
> shouldn't be hard, though being new to 6502 C and inline I'll have to
> read up on in in the docs.

printf and friend (ie, stdio) calls CHROUT.... i see no reason to use that by 
doing inline assembly hackery to be honest. (i have personally only ever used 
it either for simple testing, placing an inc$d020 somewhere or sth, or really 
really c64 specific hackery) most standard tasks can be solved with the 
library calls.

> If character I/O is the same on all platforms - do they ALL crash if a
> newline causes screen scrolling?

yes...well to be exact, the behaviour is "undefined" (but most DO crash indeed 
:=))

gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-07 01:32:23 CET