Re: [cc65] Difference between c128 and c64 targets

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2004-01-01 13:12:26


Good morning! I wish all readers of the list a happy new year!

On Wed, Dec 31, 2003 at 11:48:24PM -0800, Payton Byrd wrote:
> When using -t c64, the output of "\n" from a printf is
> only to move the cursor down a line.  You have to add
> the "\r" to also move to the beginning of the line.
> If you use -t c128 then the output of the "\n" is to
> both move down a line and move to the beginning of the
> line.  Is this intentional or a bug in the C128 printf
> code?  Both behave the same for cprintf of conio.h
> (requiring both the \r and \n).

Sorry, but I cannot reproduce what you describe. printf needs a \n to move the
cursor down one line and to the beginning of the line. Using cprintf, \r moves
the cursor to the beginning of the line, while \n moves it into the next line.
This is true for both platforms, the C128 and the C>64 (and hopefully for all
others). If you have a piece of code where this does not work, it is an error
(in printf, not in your code). In that case, please strip down your code as
much as possible and send it to me in private mail, so I can fix the problem.

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 : 2004-01-01 13:12:57 CET