RE: [cc65] using newline in cprintf on c64

Date view Thread view Subject view

From: Greg Long (cc65_at_maneuveringspeed.com)
Date: 2003-03-07 01:46:18


heheh yeah sometimes mine took awhile to crash :)

I tried outputting a 0x11 (cursor down) in lieu of the newline...which I
think just spat out a lowercase q, and not a ctrl-q, which is the cursor
down.

-----Original Message-----
From: owner-cc65_at_musoftware.de [mailto:owner-cc65_at_musoftware.de] On
Behalf Of Groepaz
Sent: Thursday, March 06, 2003 4:38 PM
To: cc65_at_musoftware.de
Subject: Re: [cc65] using newline in cprintf on c64


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.

----------------------------------------------------------------------
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:47:01 CET