Re: [cc65] Loading a byte from a channel on CBM?

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2010-11-28 16:18:25
Hi Joseph,

> > In a message dated 11/27/2010 9:30:09 P.M. Eastern Standard Time,
> > plbyrd@gmail.com writes:
> > 
> > cbm_open, cbm_write, cbm_read,  cbm_close
> > 
> I thought I could use the kernal routines to load a byte into a 
> variable, not a buffer.  Never mind.

Well a byte buffer of length one is a byte, right!?  So I don't see the 
problem with `cbm_read()`::

  ...

  uint8_t some_byte_value

  ...

  cbm_read(lfn, &some_byte_value, 1);

If you insist on the kernal routines, take a look at the ``cbm.h`` 
header file.  The kernal function names start with `cbm_k_*`.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
"Very funny, Scotty. Now beam down my clothes."

----------------------------------------------------------------------
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 16:18:51 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 16:18:54 CET