Re[2]: [cc65] ca65 syntax problems

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-11-06 12:10:06


Hello Ullrich,

Tuesday, November 06, 2001, 10:34:26 AM, you wrote:


UvB> On Mon, Nov 05, 2001 at 08:51:09PM +0100, groepaz wrote:
>> err?! why does polling incorporate bad handshake? ;=) 16bytes FIFO
>> should give more than enough time to raise RTS in time (maybe its a
>> problem with the AICA having no fifo, but its definetly not with the 16c550)

UvB> How does your application know, it has to enable flow control, just because it
UvB> outputs something to the screen?

no ;o) the current "driver" keeps RTS _always_ on, unless you want to
get a byte from the serial line, for that matter it drops the RTS line
to low for a few cycles (enough for a character to arrive) and then
reads the character. from my understanding, this is what polling is
all about (anything that would loose data under whatever circumstances
is neither polling nor whatever but its WRONG code ;=P)

>> i get about 8k/sec though, which i think aint that bad anyway.

UvB> Yes, but it depends heavily on the application and requires knowledge of the
UvB> application about the underlying driver architecture.

NO... why in particular should it make a difference anyway? all the
application needs to know is what functions to call to read (or send)
a byte - the application basically shouldnt give a fuck what technique
the driver uses to work no? ;=P

UvB> Interrupt driven code
UvB> would work automagically without the application knowing what's going on
UvB> (including hardware flow control!).

same for my routines :o) has nothing to do with using interupts or not
really ;=P (i really wonder why you think that actually)

UvB> Admitted, for your purpose polling may be ok, but for my taste it's not
UvB> generic enough to be used as general purpose code.

yes, true.... well... like i said before, i have never ever used a
different method in plenty of years doing that kinda datatransfer crap
so i'd say, unless you are writing sth like a "real" high-performance
driver for an operating system or so, you can get of with polling
pretty well ;o) (and yes, for sth like a terminal-program its probably
not the worst thing to use interupts either ;=))


-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
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 : 2001-12-14 22:05:44 CET