IF you tend to keep files in different user groups you'll know the problem of having to search through every group on quite a few discs. While doing it there's the nagging suspicion that the file has been erased. What you need is a directory checker to perform the searching for you. This 10-line routine doesn't recover erased files, but it will show you which ones are in which user groups. Use the up and down cursor keys to set the group number to examine, and press the spacebar for a directory of that group. The E key will show any erased files. A little known fact about discs is that the current user group is stored at memory location &A701. Poking this with a number between 0 and 15 will set the group to that number. Another interesting fact is that files aren't physically removed from the disc when you erase them. Instead they're given the user number 229, which is ignored by the operating system. It therefore follows that to recover an accidentally erased file, providing it hasn't been overwritten with a newer file, we simply have to perform the following steps: POKE &A701,229 a$="0:filename" b$="filename" |REN,@a$,@b$You might like to use this information to add an unerase function to the program. CPC Computing ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 585 millisecondes et consultée 764 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|