home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1997 / ARCHIVE_97.iso / discs / mag_discs / volume_08 / issue_06 / risc_os / adfs / CoreErrors < prev    next >
Text File  |  1988-07-28  |  4KB  |  109 lines

  1. ;> Errors
  2.  
  3. ; error codes are 32 bits and have different internal and external formats
  4.  
  5. ; Internal format
  6. ; b31=1 => disc error
  7. ;  b0  to b20 disc byte address / 256
  8. ;  b21 t0 b23 drive
  9. ;  b24 to b29 disc error num
  10. ;  b30        0 (to distinguish from other peoples errors)
  11. ; b31=0 => not disc error
  12. ;  b0  to b6  error num
  13. ;  b8  to b29 clear
  14. ;  b30        0 (to distinguish from other peoples errors)
  15. ;  b31 set if disc error
  16.  
  17. ; External Format
  18. ;  b0  to b7  error num
  19. ;  b8  to b29 module number
  20. ;  b30 0
  21. ;  b31 0
  22.  
  23. ;except for 'escape' and 'disc error' internal error num = external error num
  24.  
  25. MaxDiscErr      * 2_00111111
  26.  
  27. ExternalErrorBit bit 30
  28. DiscErrorBit     bit 31
  29.  
  30. FileCoreModuleNum   * &108
  31.  
  32.         MACRO
  33. $num    error   $name,$str
  34.         ASSERT  &$num>0         ;word aligned 0 byte marks entry end 
  35.         ASSERT  &$num<&100
  36. $name.Err *     &$num
  37.         &       &$num :OR: (FileCoreModuleNum :SHL: 8)
  38.         =       "$str",0
  39.         %       (4-(.-org):MOD:4):MOD:4 ;align with zeroes
  40.         MEND
  41.  
  42. ErrorTable
  43. IntEscapeErr    * &80
  44. 11      error   ExtEscape,Escape
  45. ;92 ABORTED
  46. ;93 WONT
  47. 94      error   Defect,Can't map defect out
  48. ;95 TOO MANY DEFECTS
  49. 96      error   CantDelCsd,Can't delete current directory
  50. 97      error   CantDelLib,Can't delete library
  51. 98      error   CompactReq,Compaction required
  52. 99      error   MapFull,Free space map full
  53. 9A      error   BadDisc,Bad disc        ;not ADFS format
  54. 9B      error   TooManyDiscs,Too many discs
  55. ;9C      error   LibUnset,Library unset
  56. 9D      error   BadUp,Illegal use of ^
  57. 9E      error   AmbigDisc,Ambiguous disc name
  58. 9F      error   NotRefDisc,Not same disc
  59. A0      error   InUse,FileCore in use
  60. A1      error   BadParms,Bad parameters
  61. A2      error   CantDelUrd,Can't delete user root directory
  62. ;A3      error   IsADir,Is a directory
  63. ;A4      error   IsAFile,Is a file
  64. A5      error   Buffer,No room for buffer
  65. A6      error   Workspace,FileCore Workspace corrupt
  66. A7      error   MultipleClose,Multiple file closing errors
  67. A8      error   BrokenDir,Broken directory
  68. A9      error   BadFsMap,Bad free space map
  69. AA      error   OneBadFsMap,One copy of map corrupt (use *CheckMap)
  70. AB      error   BadDefectList,Bad defect list
  71. AC      error   BadDrive,Bad drive
  72. AD      error   Size,Sizes don't match                          ;BACKUP
  73. AE      error   SameDisc,Same disc                              ;BACKUP
  74. AF      error   DestDefects,Destination disc has defects        ;BACKUP
  75. B0      error   BadRename,Bad RENAME
  76. B3      error   DirFull,Directory full
  77. B4      error   DirNotEmpty,Directory not empty
  78. ;B7 OUTSIDE FILE
  79. BD      error   Access,Access violation
  80. C0      error   TooManyOpen,Too many open files
  81. ;C1 NOT OPEN FOR UPDATE
  82. C2      error   Open,File open
  83. C3      error   Locked,Locked
  84. C4      error   Exists,Already exists
  85. C5      error   Types,Types don't match
  86. C6      error   DiscFull,Disc full
  87. DiscErr * &C7
  88. C9      error   WriteProt,Protected disc
  89.  [ FileCache
  90. CA      error   DataLost,Data lost
  91.  ]
  92. ;CB BAD OPT
  93. CC      error   BadName,Bad name
  94. ;CD DRIVE NOT READY
  95. CF      error   BadAtt,Bad attribute
  96. D3      error   DriveEmpty,Drive empty
  97. D4      error   DiscNotFound,Disc not found
  98. D5      error   DiscNotPresent,Disc not present
  99. D6      error   NotFound,Not found
  100. DE      error   Channel,Channel
  101. ;DF EOF
  102. FD      error   WildCards,Wild cards
  103. FE      error   BadCom,Bad command
  104.  
  105.         &       FileCoreModuleNum :SHL: 8 ;end of table marker
  106.         Text    "File Core error"          ;failsafe in case no match found
  107.  
  108.         END
  109.