Re: [cc65] RS-232 on the C64

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2010-11-28 21:33:31
Hello,

I never used RS232 with CC65, so I cannot comment on the rest, but only
on this:

* On Sun, Nov 28, 2010 at 12:04:51PM -0800 Agent Friday wrote:
 
> So I tried using cbm_open / cbm_read calls in cbm.h.  Problems:
> cbm_open() returns an error code of 240 (not defined?).

This is normal for the kernal. Status 240 can only happen on RS232 open.
It tells you that the BASIC END has been modified (from $A000 to $9E00),
so two buffers of 256 byte each can be used by the KERNAL for input and
output buffering. This status code is more for information, not a real
error code.

> However, it
> still lets me do a cbm_write to that LFN w/o any error (if cbm_open
> failed, I would expect a "file not open" error).  When I try to
> read, however, the system hangs.

What is you exact cbm_open() call? The file name is used to set
parameters like handshaking. If these are wrong, I could imagine such
behaviour.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 28 21:33:44 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 21:33:46 CET