PsiFS: SWI Calls

PsiFS_FileOp

PsiFS_FileOp
(SWI &520C9)
Perform a miscellaneous file system operation

On entry:R0 =reason code
Other registers depend on reason code

On exit:Registers depend on reason code

Interrupts:Interrupt status is undefined
Fast interrupts are enabled

Processor mode:Processor is in SVC mode

Re-entrancy:SWI is not re-entrant

Use: This call performs a miscellaneous file system operation, depending on the reason code in R0. Valid reason codes are:
ValueMeaning
0change the name of a disc

This call extends the facilities available via the standard FileSwitch interface.


Related SWIs:OS_FSControl

Related vectors:None

PsiFS_FileOp 0
(SWI &520C9)
Change the name of a disc

On entry:R0 =0
R1 =drive
R2 =pointer to control-character terminated disc name string

On exit:Registers preserved

Use: This call changes the name of the specified remote drive, avpoiding the 10 character limit imposed by FileSwitch. The drive may be specified in one of three ways:
  • a zero based index (0 for drive A, through to 25 for drive Z)
  • the ASCII code of the drive letter in upper case (65 for drive A, through to 90 for drive Z)
  • the ASCII code of the drive letter in lower case (97 for drive A, through to 122 for drive Z)

[Contents] [Up] Copyright © Alexander Thoukydides, 1998, 1999, 2000