Contents |
Effect
ATTR$() is a reserved word that has never been used in official products.
This function was meant to return disk drive attributes, but since the FAT-filesystem does not support such general disk wide attributes (such as "Read only" or "Force verify") the function has never been implemented.
The execution of this function causes just a call to the hook H.ATTR (0FE1Ch). This allows the function to be diverted to create a new one. It has been used by MSX fans to create a little part of the MemManTSR BASIC extension.
Syntax
ATTR$(<DriveNumber>)
Parameters
<DriveNumber> will correspond to the new function that the user must create otherwise the error "Illegal function call" occurs if ATTR$ is used.
Use
To create your own function advanced knowledge of the Basic interpreter is required. Following BASIC ROM routines can be useful: CHRGTR (0010h or 4666h), FRMEVL (04C64h), FRMQNT (542Fh), GETBYT (521Ch), FRESTR (67D0h), PTRGET (5EA4h) and NEWSTT (4601h).
Related to
Compatibility
MSX-BASIC 1.0 or higher