From: Greg Long (cc65_at_maneuveringspeed.com)
Date: 2003-03-07 00:42:51
On the commodores, #13 would be akin to \r\n and #10 a linefeed without a CR. The cursor down (#17 I believe) will act the same as a linefeed only. So to summarize: there is no \r without a linefeed through CHROUT ($FFD2) normally. The cursor could be set at 0 through the set cursor routines. The Commodore 64 Programmer's reference guide has more on this. Here's a work-in-progress HTML version, which has a link to a text verison, the latter of which I think is complete. http://www.devili.iki.fi/Computers/Commodore/C64/Programmers_Reference/ Of course, all this is academic if cprintf doesn't call CHROUT. Greg -----Original Message----- From: owner-cc65_at_musoftware.de [mailto:owner-cc65_at_musoftware.de] On Behalf Of Maciej Witkowiak Sent: Thursday, March 06, 2003 3:27 PM To: cc65_at_musoftware.de Subject: Re: [cc65] using newline in cprintf on c64 Ullrich von Bassewitz dnia 05 mar 2003 o 17:30 +0100 napisał: > > > You have to use \r\n with the conio functions. > > Does all conio platforms follow it? > I hope so:-) So I ask the last time to be sure[1]: in cc65 conio characters: #13 does carriage return and does not advance the line #10 advances the line but does not do carriage return ? I see that GEOS conio now does CR+LF for #13 and LF for #10. That's wrong, right? ytm [1] I hate such situations :) Just like off-by-one bugs in asm/C code... ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-03-07 00:43:34 CET