home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Computer / Hdr / OSArgs < prev    next >
Encoding:
Text File  |  1995-06-29  |  3.3 KB  |  147 lines

  1. ;Assembler header file for OSArgs
  2. ;written by DefMod (Jun 12 1995) on Thu Jun 29 16:58:36 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_OS
  16.         GBLS    Get_OS
  17.         ]
  18.         [       :LNOT: :DEF: OS_Hdr
  19. Get_OS                          SETS    "GET OS:Hdr.OS"
  20.         |
  21. Get_OS                          SETS    ""
  22.         ]
  23.         $Get_OS
  24.  
  25.         [       :LNOT: :DEF: Get_FileSwitch
  26.         GBLS    Get_FileSwitch
  27.         ]
  28.         [       :LNOT: :DEF: FileSwitch_Hdr
  29. Get_FileSwitch                  SETS    "GET OS:Hdr.FileSwitch"
  30.         |
  31. Get_FileSwitch                  SETS    ""
  32.         ]
  33.         $Get_FileSwitch
  34.  
  35.         [       :LNOT: :DEF: OSArgs_Hdr
  36.         GBLS    OSArgs_Hdr
  37.  
  38. ;Symbols for constants
  39. OSArgs_StreamInteractive        *       &8
  40. OSArgs_StreamSupportsGBPB       *       &10
  41. OSArgs_StreamDir                *       &20
  42. OSArgs_StreamReadable           *       &40
  43. OSArgs_StreamWritable           *       &80
  44. OSArgs_StreamWritten            *       &100
  45. OSArgs_StreamEOFErrorOnNextRead *       &200
  46. OSArgs_StreamUnbuffered         *       &400
  47. OSArgs_StreamUnallocated        *       &800
  48. OSArgs_StreamCritical           *       &1000
  49. OSArgs_StreamDataLost           *       &2000
  50. OSArgs_StreamImageFileBusy      *       &4000
  51.  
  52. ;Symbols for structure offsets and sizes
  53. OSArgs_StreamStatus             *       Bits
  54.  
  55.  
  56. ;Symbols for SWI's and SWI reason codes
  57. XOS_Args                        *       &20009
  58. OS_Args                         *       &9
  59.  
  60. OSArgs_ReadPtr                  *       &0
  61.    ;Entry
  62.    ;  R0 = &0
  63.    ;  R1 = file (OS_F)
  64.    ;Exit
  65.    ;  R2 = ptr (Int)
  66.  
  67. OSArgs_ReadTemporaryFS          *       &0
  68.    ;Entry
  69.    ;  R0 = &0
  70.    ;  R1 = &0
  71.    ;Exit
  72.    ;  R0 = temp_fs_no (FileSwitch_FSNo)
  73.  
  74. OSArgs_SetPtr                   *       &1
  75.    ;Entry
  76.    ;  R0 = &1
  77.    ;  R1 = file (OS_F)
  78.    ;  R2 = ptr (Int)
  79.  
  80. OSArgs_ReadExt                  *       &2
  81.    ;Entry
  82.    ;  R0 = &2
  83.    ;  R1 = file (OS_F)
  84.    ;Exit
  85.    ;  R2 = ext (Int)
  86.  
  87. OSArgs_SetExt                   *       &3
  88.    ;Entry
  89.    ;  R0 = &3
  90.    ;  R1 = file (OS_F)
  91.    ;  R2 = ext (Int)
  92.  
  93. OSArgs_ReadAllocation           *       &4
  94.    ;Entry
  95.    ;  R0 = &4
  96.    ;  R1 = file (OS_F)
  97.    ;Exit
  98.    ;  R2 = allocation (Int)
  99.  
  100. OSArgs_ReadEOFStatus            *       &5
  101.    ;Entry
  102.    ;  R0 = &5
  103.    ;  R1 = file (OS_F)
  104.    ;Exit
  105.    ;  R2 = eof_status (Bool)
  106.  
  107. OSArgs_SetAllocation            *       &6
  108.    ;Entry
  109.    ;  R0 = &6
  110.    ;  R1 = file (OS_F)
  111.    ;  R2 = allocation (Int)
  112.    ;Exit
  113.    ;  R2 = allocation_out (Int)
  114.  
  115. OSArgs_ReadPath                 *       &7
  116.    ;Entry
  117.    ;  R0 = &7
  118.    ;  R1 = file (OS_F)
  119.    ;  R2 = buffer (pointer to String)
  120.    ;  R5 = size (Int)
  121.    ;Exit
  122.    ;  R5 = spare (Int)
  123.  
  124. OSArgs_ImageStamped             *       &8
  125.    ;Entry
  126.    ;  R0 = &8
  127.    ;  R1 = file (OS_F)
  128.    ;  R2 = image_stamp (Int)
  129.  
  130. OSArgs_ReadInfo                 *       &FE
  131.    ;Entry
  132.    ;  R0 = &FE
  133.    ;  R1 = file (OS_F)
  134.    ;Exit
  135.    ;  R0 = stream_status (OSArgs_StreamStatus)
  136.    ;  R2 = fs_info (FileSwitch_FSInfo)
  137.  
  138. OSArgs_Ensure                   *       &FF
  139.    ;Entry
  140.    ;  R0 = &FF
  141.    ;  R1 = file (OS_F)
  142.  
  143. ArgsV                           *       &9
  144.  
  145.         ]
  146.         END
  147.