It is currently Tue Oct 23, 2018 12:30 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Feb 23, 2010 7:10 am 
Offline

Joined: Fri Oct 23, 2009 8:11 am
Posts: 16
Hi!

As everybody know, if file is scratched, it's only not visible in directory, it's disk-allocated space is free until is overwritten.

So, I want to ask that how to show SCRATCHED files which are still not overwritten in directory?

Commodore has standard files PRG, SEQ, USR, REL, DEL, CBM files, but I want to show these files as SCR - scratched, of course locked files have < char as indicator.

Can anybody help me?

Thanks for every help.

Miro


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 23, 2010 11:15 am 
Offline
User avatar

Joined: Tue Jan 12, 2010 9:46 pm
Posts: 15
Location: Tirol
You have to read blocks directly from disc (directory blocks). For a 1571 you have to read sector at track 18 sector 1 and further on (next sector from first two bytes)

To read blocks directly you open a buffer "#" and send "U1" command. (Alternatively burst read commands ... - not nessecary here).

Each directory entry has 32 bytes if I correctly remember it. But this is very good documented, look for D64 description.

_________________
Final Expansion 3, the most powerful cartridge for your VIC-20


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group