AMSTRAD cpc 6128 Manuel d'utilisateur Page 66

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 105
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 65
The Amstrad CPC Firmware Guide
66
Notes This routine cannot be used once CAS OUT CHAR has been used
Disc All the above applies to the disc routine
&BC9B *CAS CATALOG
Action Creates a catalogue of all the files on the tape
Entry DE contains the address of the 2K buffer to be used to store the information
Exit
If the operation was successful, then Carry is true, Zero is false, and A is corrupt; if the read stream is
already being used, then Carry and Zero are false, and A holds an error code (664/6128 or is corrupt
(for the 464); in all cases, BC, DE, HL, IX and the other flags are corrupt and all others are preserved
Notes
This routine is only left when the ESC key is pressed (cassette only) and is identical to BASIC's CAT
command
Disc
All tbe above applies, except that a sorted list of files is displayed; system files are not listed by this
routine
&BC9E CAS WRITE
Action Writes data to the tape in one long file (ie not in 2K blocks)
Entry
HL contains the address of the data to be written to tape, DE contains the length of the data to be
written, and A contains the sync character
Exit
If the operation was successful, then Carry is true and A is corrupt; if an error occurred then Carry is
false and A contains an error code; in both cases, BC, DE, HL and lX are corrupt, and all other registers
are preserved
Notes
For header records the sync character is &2C, and for data it is &16; this routine starts and stops the
cassette motor and also tums off interrupts whilst writing data
&BCA1 CAS READ
Action Reads data from the tape in one long file (ie as originally written by CAS WRITE only)
Entry
HL holds the address to place the file, DE holds the length of the data, and A holds the expected sync
character
Exit
If the operation was successful, then Carry is true and A is corrupt; if an error occurred then Carry is
false and A contains an error code; in both cases, BC, DE, HL and IX are corrupt, and all other registers
are preserved
Notes
For header records the sync character is &2C, and for data it is &16; this routine starts and stops the
cassette motor and turns off interrupts whilst reading data
&BCA4 CAS CHECK
Action Compares the contents of memory with a file record (ie header or data) on tape
Entry
HL contains the address of the data to check, DE contains the length of the data and A holds the sync
character that was used when the file was originally written to the tape
Exit
If the two are identical, then Carry is true and A is corrupt; if an error occurred then Carry is false and A
holds an error code; in all cases, BC, DE, HL, IX and other flags are corrupt, and all other registers are
preserved
Notes
For header records the sync character is &2C, and for data it is &16; this routine starts and stops the
cassette motor and turns off interrupts whilst reading data; does not have to read the whole of a record,
but must start at the beginning
AMSDOS and BIOS Firmware
&C033 BIOS SET MESSAGE
Action Enables or disables disc error messages
Entry To enable messages, A holds &00; to disable messages, A holds &FF
Exit A holds the previous state, HL and the flags are corrupt, and all others are preserved
Notes Enabling and disabling the messages can also be achieved by poking &BE78 with &00 or &FF
&C036 BIOS SETUP DISC
Vue de la page 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 104 105

Commentaires sur ces manuels

Pas de commentaire