Errors detected by the floppy disc controller are reported as a bit significant value between #40..#7F, i.e. bit 6 is always set. The other bits are returned as follows:
bit 5 data error - CRC error on data or ID field. bit 4 overrun error.
bit 3 drive not ready - there is no disc in the drive. bit 2 no data - can't find the sector.
bit 1 not writable - disc is write protected. bit 0 address mark missing.
5.9 Intercepted Firmware Calls
The intercepted firmware calls are:
Reading Files
125#BC77
126#BC7A
127#BC7D
128#BC80
129#BC83
130#BC86
#BC89
131
Writing Files
132#BC8C
133#BC8F
134#BC92
135#BC95
#BC98
136
Cataloguing
137#BC9B
CAS IN OPEN | Open a file for input |
CAS IN CLOSE | Close the input file properly |
CAS IN ABANDON | Close the input file immediately. |
CAS IN CHAR | Read a character from the input file. |
CAS IN DIRECT | Read the input file into store. |
CAS RETURN | Put the last character read back. |
CAS TEST EOF | Have we reached the end of the |
| input file yet? |
CAS OUT OPEN | Open a file for output. |
CAS OUT CLOSE | Close the output file properly. |
CAS OUT ABANDON | Close the output file immediately |
CAS OUT CHAR | Write a character to the output file. |
CAS OUT DIRECT | Write the output file directly from |
| disc. |
CAS CATALOG | Generate a catalogue from disc |
Chapter 5. 7 | AMSTRAD Disc Drive & Interface |