Re: Help/info needed

From: groepaz <groepaz_at_gmx.net>
Date: Fri, 10 Jul 2026 13:52:42 +0200
Message-ID: <3528100.usfYGdeWWP_at_zweitrakete>
Am Freitag, 10. Juli 2026, 13:38:48 Mitteleuropäische Sommerzeit schrieb 
silverdr_at_srebrnysen.com:
> > On 10 Jul 2026, at 11:11, ruud_at_baltissen.org wrote:
> > 
> > Hallo allemaal,
> > 
> > - Checking if a file is present. And here I have an idea what to do but
> > I'm not happy with it. I can start to load the file and when getting the
> > first byte I know it exists. But I have no idea how to end the whole
> > process in a clean way. Another routine I ran into is 'Input a byte from
> > channel' at $F157 which results in reading a byte at $F1B5. But how to
> > get there is not completely clear (yes, open a file, but how in assembly)
> > but also here: how to end it a a neat way.
> I thought I also had something for exactly checking file presence but I
> don't seem to be able to find it in my lib. In general though the process
> should be like (from protein-based memory)
> 
> - try to open the file for reading
> - check for success/failure
> - close the file
> 
> You don't need to load or even read anything from the file.
> 
> It's a sequence of SETLFS, SETNAM, OPEN calls.
> 
> My (very generic so more complex than you need) open_file is also here:
> 
> https://cld.silverdr.com/s/g69rzLK7ZoDm35F
> 
> There you can see the sequence in action too.

i'd look at what jiffydos does - that one works quite well, and with many 
drives


-- 

https://cc65.github.io            https://rr.pokefinder.org
https://vice-emu.sourceforge.net  https://magicdisk.untergrund.net

last time I tried the c64-test on a date she fell asleep after just 4 hours of 
demos. That was when I knew she wasnt right for me. i mean.. falling asleep 
after just a few hours of c64 demos?  We have a word for that stuff on the 
scene. L A M E. (: 
<Jucke/G*P>
Received on 2026-07-10 13:00:58

Archive generated by hypermail 2.4.0.