Re: [cc65] using newline in cprintf on c64

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-03-07 00:48:49


On Fri, Mar 07, 2003 at 12:37:17AM +0100, Groepaz wrote:
> to be exact, '\n' means "newline" on all platforms, and '\r' means carriage
> return. the codes $13/$10 are c64 specific and may be different on other
> platforms. (they should be mostly the same though)

OOPS, yes. With CBM charset translation in effect, $0A is a CR and $0D is a LF
(which is different from ASCII). Using '\n' and '\r' is a better way to walk
about it:-)

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 00:48:59 CET