Contents |
Effect
FPOS() is a reserved word that has never been used.
This function was meant to return physical sector of where opened file number is located. Since in FAT file system cluster size can differ and disk can be fragmented this was probably left out to avoid problems when used without other needed support functions.
The execution of this function causes just a call to the hook H.FPOS (0FEA8h). This allows the function to be diverted to create a new one.
Syntax
FPOS(<FileNumber>)
Parameters
<FileNumber> will correspond to the function that the user must create otherwise the "Internal error" occurs if FPOS 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