Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #6062

Re: cc65: file I/O on external drive?

From Colin Leroy-Mira <colin@colino.net>
Newsgroups comp.sys.apple2.programmer
Subject Re: cc65: file I/O on external drive?
Date 2023-08-10 18:22 +0200
Organization A noiseless patient Spider
Message-ID <20230810182225.7571b259@laptop-sigfox> (permalink)
References <20230810153128.037b45e2@laptop-sigfox> <mmphosis-1691679708@macgui.com> <20230810180315.19b34c79@laptop-sigfox>

Show all headers | View raw


Hi,

>>I thought that the slot and drive would be specified in the pathname.
>>For example: FILE,S6,D1 but maybe not. There is a low level DEV_NUM
>>and I found these device.h helper functions...
>>
>>https://cc65.github.io/doc/funcref.html#ss2.20
>>
>>unsigned char getfirstdevice (void);
>>unsigned char __fastcall__ getnextdevice (unsigned char device);
>>unsigned char getcurrentdevice (void);  

This is in fact extremely easy: you just fopen("/PREFIX/FILENAME") and
it finds the correct drive all by itself :)
-- 
Colin
https://www.colino.net/

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

cc65: file I/O on external drive? Colin Leroy-Mira <colin@colino.net> - 2023-08-10 15:31 +0200
  Re: cc65: file I/O on external drive? mmphosis <mmphosis@macgui.com> - 2023-08-10 15:01 +0000
    Re: cc65: file I/O on external drive? Colin Leroy-Mira <colin@colino.net> - 2023-08-10 18:03 +0200
      Re: cc65: file I/O on external drive? Colin Leroy-Mira <colin@colino.net> - 2023-08-10 18:22 +0200
        Re: cc65: file I/O on external drive? ol.sc@web.de (Oliver Schmidt) - 2023-08-10 20:08 +0000
          Re: cc65: file I/O on external drive? Colin Leroy-Mira <colin@colino.net> - 2023-08-11 12:07 +0200
            Re: cc65: file I/O on external drive? Oliver Schmidt <ol.sc@web.de> - 2023-08-11 11:31 +0000

csiph-web