; Assembler function to give RM base address to C program

                AREA            Errors, DATA, REL

                MACRO
$label          EB              $errNum, $errMsg
                EXPORT          $label
$label          &               $errNum
                =               "$errMsg", 0
                ALIGN
                MEND

xFiles_BadPermission EB         1, "Must have at least read access (write would be nice too)"
xFiles_CantFake EB              2, "Can't create a new image in a read only file"
xFiles_NoMemory EB              3, "Not enough memory for X-Files workspace (RMA)"
xFiles_ImageCorrupt EB          4, "Oh no! X-Files image is corrupt (you had a backup of course...)"
xFiles_Truncated EB             5, "X-Files image read truncated"
xFiles_Outside  EB              6, "Slack programming alert! Attempt to read/write outside a chunk's limits"
xFiles_BrokenDir EB             7, "Broken directory"
xFiles_BadDirMark EB            8, "I was just about to write an badly formed directory header. But I won't"
xFiles_OutOfRange EB            9, "Internal number thing out of range"
xFiles_NotImplemented EB        10, "Can't do that"
xFiles_NotFound EB              11, "Not found"
xFiles_NotADir  EB              12, "Not a directory"
xFiles_NotAFile EB              13, "Not a file"
xFiles_Locked   EB              14, "Locked"
xFiles_BufferInUse EB           15, "The temporary workspace is already in use"
xFiles_DirNotEmpty EB           16, "Directory not empty"
xFiles_LostTrack EB             17, "I've lost track of an open file"
xFiles_IsOpen    EB             18, "File is open"

                END
