Re: [cc65] CBM kernal disk I/O?

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2011-02-20 23:35:45
Hi Joseph,

> I want to load bytes from disk one at a time and do a little
> processing before using it.  So far, when I read a byte from an open
> file, I've been using cbm_read() to load a byte into a char variable
> as a buffer.  I tried to use the kernal functions to do it, but it
> took information from the keyboard and started moving the cursor to
> column 3.  Can anybody tell me how to use the kernal functions to
> read and write information more directly?

Just look at the source code of the cbm_* functions how they use the 
kernel functions.  In the case of `cbm_read()` you will even find a C 
implementation in the comments of the assembler source file.

> I am unwilling to reveal my code until its beta version.  Any help
> would be appreciated.

If you don't want to show the actual code then reduce the code to a 
small but runnable example which still has the problem.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
The Python debugger has a 'break' command;
why doesn't it have 'fix' command too?

----------------------------------------------------------------------
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 Feb 20 23:37:11 2011

This archive was generated by hypermail 2.1.8 : 2011-02-20 23:37:13 CET