Re: [cc65] CBM POSIX I/O - USR Files

From: Groepaz <groepaz1gmx.net>
Date: 2010-03-29 00:21:22
On Sonntag 28 März 2010, you wrote:
> Hi,
> 
> If I use cc65's POSIX I/O functions on the C64 to create a file, it
> has the file type USR. According to what I found out this file type is
> quite special - PRG ans SEQ are much more common. So my question is:
> Why USR? I found a hint that both PRG and SEQ are limited in size,
> maybe USR not?
> 
> BTW: I was looking in VICE' 1541 tool for an option to set the desired
> file type when writing files into disk images. There was none
> documented so I checked out the source to find that PRG is hardcoded
> there.
> 
> All this leaves me (as a non-CBM insider) quite puzzled: If non-PRG
> files play a significant role, then why does a supposed-to-be-mature
> tool like 1541 not support them ?!?
> 
> Thanks in advance for hints, Oliver

to be honest, i find it quite irritating too... normally, *most* files in the 
commodore world are PRG files, SEQ is used mostly for textfiles and such, and 
USR is infact quite rare "in the wild". personally i am using a patched 
runtime which uses PRG by default for this very reason :)

there are no fundamental differences in PRG,SEQ and USR files, they all share 
the same limits and structure (the difference beeing a single byte in the 
directory entry :)). the only truely different filetype in the commodore world 
are REL files, which are "random access" (so within limits, you can seek in 
them). however those are an entire different beast :)

-- 

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

If only God would give me a clear sign! Like making a large deposit in my name 
at a Swiss bank. 
<Woody Allen>

----------------------------------------------------------------------
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 Mar 29 00:21:42 2010

This archive was generated by hypermail 2.1.8 : 2010-03-29 00:21:44 CEST