Re: [cc65] cbm_readdir

From: Groepaz <groepaz1gmx.net>
Date: 2009-09-28 22:58:16
On Montag 28 September 2009, Ullrich von Bassewitz wrote:
> On Mon, Sep 28, 2009 at 09:20:39PM +0200, Thomas Giesel wrote:
> > But there are some questions:
> > from cbm.h:
> >
> > #define CBM_T_CBM   5           /* 1581 sub-partition */
> > #define CBM_T_DIR   6           /* IDE64 and CMD sub-directory */
> > #define CBM_T_VRP   8           /* Vorpal fast-loadable format */
> > #define CBM_T_OTHER 5           /* Other file-types not yet defined */
> >
> > Is there a reason for using the value 5 twice?
> > Is the value 7 reserved for something?
>
> The cbm_dir routine was contributed by Josef Soucek, one of the creators of
> IDE64. I've never looked at it in detail, so unfortunately, I cannot answer
> these questions. It may have something to do with the IDE64 implementation.

"CBM" is the "traditional" fallback, which some programs use to 
display "broken" filetypes (some values can be used in the directory which 
result in more or less random "types" in the "$" file, depending on the 
floppy rom used)

this is what i use:

typedef enum filetype {
  T_DEL = 0,
  T_SEQ,
  T_PRG,
  T_USR,
  T_REL,
  T_CBM,
  T_DIR,
  T_UNK
} FileType;

"VRP" btw is no commodore filetype at all, and could be something ide64 
specific indeed.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Hör bitte auf Scheisse zu labern. 
<Widdy/G*P>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 28 22:58:28 2009

This archive was generated by hypermail 2.1.8 : 2009-09-28 22:58:30 CEST