On Tue, 7 Sep 1999, Ojala Pasi 'Albert' wrote: > Another point: bit 7 in the file type means "closed", but bit 6 > means "locked". Although not widely known, this is a standard bit > also. But what DOS commands can be used to set bit 6 (except U2, B-W and M-E)? And to continue my message from yesterday, SAVE"program,d",8 might work to create DEL files. If I remember correctly, deleted files (that will not be shown in the directory) have type $00 (not closed, not locked). Any other type will show up. Then there's bit 4, which you could use for your own purposes. A long time ago, I wrote a disk menu program and integrated it with a fastloader. It read "$" in the raw format and wrote the file names in two columns on the screen. Then it'd convert the screen codes back to PETSCII and load the matching file. If I'd write the utility now, I'd store the track and sector pointers in the screen memory using the background colour. My utility used bit 4 for selecting files. It'd only show files having type & 0x1f == 0x12. I don't remember about bit 5, but I don't think the drive likes using bit 3. It'll display garbage file types in the directory for such files. [The omission of bit 7 (closed) is marked with an asterisk ("*") in the directory; setting bit 6 (write protected) shows up as a wedge ("<").] Marko - This message was sent through the cbm-hackers mailing list. To unsubscribe: echo unsubscribe | mail cbm-hackers-request@dot.tcm.hut.fi.
Archive generated by hypermail 2.1.1.