I$DeletX

From NitrOS-9
Jump to: navigation, search
Delete A File Deletes a file from the current data or current execution directory
OS9 I$DeletX 103F 90

Entry Conditions

A access mode

X address of the pathlist

Exit Conditions

X address of the last byte of the pathlist + 1; skips any trailing blanks

Error Output

CC carry set on error

B error code, if any

Additional Information

  • The Delete A File call removes the disk file specified by the selected pathlist. This function is similar to I$Delete except that it access an access mode byte. If the access mode is execute, the call selects the current execution directory. Otherwise, it selects the current data directory.
  • If a complete pathlist is provided (the pathlist begins with a slash (/)), the access mode of the call ignores the access mode.
  • Only use this call to delete a file. If you attempt to use I$DeletX to delete a device, the system returns an error.