User`s guide

2.3 BDOS File System CP/M 3 Programmer's Guide
The following BDOS functions return a Directory Code in register A:
15. Open File
16. Close File
17. Search For First
18. Search For Next
19. Delete File
22. Make File
23. Rename File
30. Set File Attributes
35. Compute File Size
99. Truncate File
* 100. Set Directory Label
102. Read File Date Stamps and Password Mode
** 103. Write File XFCB
* - This function is supported in the DIRLBL.RSX in the nonbanked version of
CP/M 3.
** - This function is supported only in the banked version of CP/M 3.
The Directory Code definitions for register A are shown in Table 2-8.
Table 2-8. BDOS Directory Codes
Code Meaning
00 - 03: successful function
255 unsuccessful function
With the exception of the BDOS search functions, all functions in this category
return with the directory code set to zero on successful returns. However, for the
search functions, a successful Directory Code also identifies the relative starting posi-
tion of the directory entry in the calling program's current DMA buffer.
2-32
2.3 BDOS File System CP/M 3 Programmer's Guide