APPLICATIONSDISQUE ★ Beef up your assembler with DAVE INSTONE-BREWER's utility ★

Directory Checker (CPC Computing)Applications Disque
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

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

★ PUBLISHER: CPC Computing
★ YEAR: 1988
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTION: COMPUTING WITH THE AMSTRAD 1988
★ AUTHOR: Ronnie Heywood
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Directory  Checker    (CPC  Computing)    ENGLISHDATE: 2020-08-15
DL: 200
TYPE: ZIP
SiZE: 4Ko
NOTE: Typed by Nicholas CAMPBELL ; 40 Cyls
.HFE: Χ

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Maxam (Arnor)
» Applications » Maxam Assembler and expansion ROM board
» Applications » Maxam Monobloc
» Applications » Maxam v1.5 ROM
» Applications » Maxam Utilities (CPC Computing)
» Applications » Maxam Turboass Convert
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 585 millisecondes et consultée 764 fois

L'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.