;> AdfsErrors

MaxDiscErr      * 2_00111111

;ExternalErrorBit bit 30

DiscErrorBit     bit 31

AdfsModuleNum * &108

        MACRO
$num    err     $name,$str
        ASSERT  &$num>0         ;word aligned 0 byte marks entry end 
        ASSERT  &$num<&100
$name.Err *     &$num
        MEND
        MACRO
$num error $name,$str
        ASSERT  &$num>0         ;word aligned 0 byte marks entry end 
        ASSERT  &$num<&100
$name.Err *     &$num
$name.ErrBlk
        &       &$num :OR: (AdfsModuleNum :SHL: 8)
        =       "$str",0
        %       (4-(.-org):MOD:4):MOD:4 ;align with zeroes
        MEND

;ErrorTable
IntEscapeErr * &80

;11      error   ExtEscape,Escape
;92 ABORTED
;93 WONT
;94 BAD PARMS
;;95      error   TooManyDefects,Too many defects
;96      error   CantDelCsd,Can't delete current directory
;97      error   CantDelLib,Can't delete library
;98      error   CompactReq,Compaction required
;99      error   MapFull,Free space map full
;9A      error   BadDisc,Bad disc        ;not ADFS format
;9B      error   TooManyDiscs,Too many discs
;9D      error   BadUp,Illegal use of ^
;9E      error   AmbigDisc,Ambiguous disc name
;9F      error   NotRefDisc,Not same disc
;A0      error   FilecoreInUse,Filecore in use
A1      err     BadParms,Bad parameters
;A2      error   CantDelUrd,Can't delete user root directory
;A5      error   Buffer,No room for buffer
;A6      error   Workspace,ADFS Workspace corrupt
;A7      error   MultipleClose,Multiple file closing errors
;A8      error   BrokenDir,Broken directory
;A9      error   BadFsMap,Bad free space map
;AA BAD CHECKSUM
;AB      error   BadDefectList,Bad defect list
AC      error   BadDrive,Bad drive
;AD      error   Size,Sizes don't match  ;BACKUP
;AE      error   SameDisc,Same disc      ;BACKUP
;B0      error   BadRename,Bad RENAME
;B3      error   DirFull,Directory full
;B4      error   DirNotEmpty,Directory not empty
;B7 OUTSIDE FILE
;BD      error   Access,Access violation
;C0      error   TooManyOpen,Too many open files
;C1 NOT OPEN FOR UPDATE
;C2      error   Open,File open
;C3      error   Locked,Locked
;C4      error   Exists,Already exists
;C5      error   Types,Types don't match
;C6      error   DiscFull,Disc full
DiscErr * &C7
C9      err     WriteProt,Protected disc
;CA DATA LOST,CHANNEL
;CB BAD OPT
;CC      error   BadName,Bad name
;CD DRIVE NOT READY
D3      err     DriveEmpty,Drive empty
;D4      error   DiscNotFound,Disc not found
;D5      error   DiscNotPresent,Disc not present
;D6      error   NotFound,Not found
;DE      error   Channel,Channel
;DF EOF
;FD      error   WildCards,Wild cards
FE      error   BadCom,Bad command
        END