Re: [cc65] Re: cbm_read blocks on empty rs232 buffer

From: Ullrich von Bassewitz <>
Date: 2013-11-01 15:10:01
On Fri, Nov 01, 2013 at 08:13:52AM -0500, Payton Byrd wrote:
> The screen turns black, so I know the RS232 channel is opened, but the
> display code at the bottom never executes until the RS232 buffer receives at
> least one incoming byte, so it appears that cbm_k_basin is doing the 
> blocking.

Yes, BASIN ($FFCF, also called CHRIN) waits until there is data. The default
is to read from the keyboard, and in this case BASIN waits for a key and won't
return without one. I suppose that is what you want when reading from devices
like disks. 



Ullrich von Bassewitz                        
Encrypted email preferred                          PGP Key-Id: 29D93B10
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Nov 1 15:10:09 2013

This archive was generated by hypermail 2.1.8 : 2013-11-01 15:10:10 CET