ATTR$()
This page was last modified 18:02, 31 March 2018 by Mars2000you. Based on work by Gdx and Rderooy and others.

Contents

Effect

ATTR$() is a reserved word that has never been used. 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.

Syntax

ATTR$(<drive number>)

Parameters

The user must create this function 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

CMD, FPOS(), IPL

Compatibility

MSX-BASIC 1.0 or higher