home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Hdr / OSGBPB < prev    next >
Encoding:
Text File  |  1994-09-14  |  5.9 KB  |  225 lines

  1. ;AAsm header file for OSGBPB
  2. ;written by DefMod (Aug  8 1994) on Wed Sep 14 13:20:20 1994
  3.  
  4.         [       :LNOT: :DEF: Get_Types
  5.         GBLS    Get_Types
  6. Get_Types                       SETS    "GET OS:Hdr.Types"
  7.         |
  8. Get_Types                       SETS    ""
  9.         ]
  10.         $Get_Types
  11.  
  12.         [       :LNOT: :DEF: Get_OS
  13.         GBLS    Get_OS
  14. Get_OS                          SETS    "GET OS:Hdr.OS"
  15.         |
  16. Get_OS                          SETS    ""
  17.         ]
  18.         $Get_OS
  19.  
  20.         [       :LNOT: :DEF: OSGBPB_Hdr
  21.         GBLS    OSGBPB_Hdr
  22.  
  23. ;Symbols for constants
  24. OSGBPB_PrivilegeOwner           *       0
  25. OSGBPB_PrivilegePublic          *       255
  26. OSGBPB_NoMore                   *       -1
  27.  
  28. ;Symbols for structure offsets and sizes
  29.                                 ^       0
  30. OSGBPB_Name_count               #       Byte
  31. OSGBPB_Name_c                   #       Char
  32. OSGBPB_Name                     *       @
  33.  
  34.                                 ^       0
  35. OSGBPB_DiscName_name            #       OSGBPB_Name
  36. OSGBPB_DiscName                 *       @
  37.  
  38.                                 ^       0
  39. OSGBPB_DirName_reserved         #       Byte
  40. OSGBPB_DirName_name             #       OSGBPB_Name
  41. OSGBPB_DirName                  *       @
  42.  
  43.                                 ^       0
  44. OSGBPB_NameList_names           #       OSGBPB_Name
  45. OSGBPB_NameList                 *       @
  46.  
  47.                                 ^       0
  48. OSGBPB_Info_load_addr           #       Bits
  49. OSGBPB_Info_exec_addr           #       Bits
  50. OSGBPB_Info_size                #       Int
  51. OSGBPB_Info_attr                #       Bits
  52. OSGBPB_Info_obj_type            #       Int
  53. OSGBPB_Info_name                #       Char
  54. OSGBPB_Info                     *       @
  55.  
  56.                                 ^       0
  57. OSGBPB_SystemInfo_load_addr     #       Bits
  58. OSGBPB_SystemInfo_exec_addr     #       Bits
  59. OSGBPB_SystemInfo_size          #       Int
  60. OSGBPB_SystemInfo_attr          #       Bits
  61. OSGBPB_SystemInfo_obj_type      #       Int
  62. OSGBPB_SystemInfo_sin           #       Int
  63. OSGBPB_SystemInfo_stamp         #       OS_DateAndTime
  64. OSGBPB_SystemInfo_name          #       Char
  65. OSGBPB_SystemInfo               *       @
  66.  
  67.                                 ^       0
  68. OSGBPB_InfoStamped_load_addr    #       Bits
  69. OSGBPB_InfoStamped_exec_addr    #       Bits
  70. OSGBPB_InfoStamped_size         #       Int
  71. OSGBPB_InfoStamped_attr         #       Bits
  72. OSGBPB_InfoStamped_obj_type     #       Int
  73. OSGBPB_InfoStamped_file_type    #       Bits
  74. OSGBPB_InfoStamped_name         #       Char
  75. OSGBPB_InfoStamped              *       @
  76.  
  77.                                 ^       0
  78. OSGBPB_StringList_names         #       Skip
  79. OSGBPB_StringList               *       @
  80.  
  81.                                 ^       0
  82. OSGBPB_InfoList_info            #       OSGBPB_Info
  83. OSGBPB_InfoList                 *       @
  84.  
  85.                                 ^       0
  86. OSGBPB_SystemInfoList_info      #       OSGBPB_SystemInfo
  87. OSGBPB_SystemInfoList           *       @
  88.  
  89.                                 ^       0
  90. OSGBPB_InfoStampedList_info     #       OSGBPB_InfoStamped
  91. OSGBPB_InfoStampedList          *       @
  92.  
  93.  
  94. ;Symbols for SWI's and SWI reason codes
  95. XOS_GBPB                        *       &2000C
  96. OS_GBPB                         *       &C
  97.  
  98. OSGBPB_WriteAt                  *       &1
  99.    ;Entry
  100.    ;  R0 = &1
  101.    ;  R1 = file (OS_F)
  102.    ;  R2 -> data (data)
  103.    ;  R3 = size (Int)
  104.    ;  R4 = ptr (Int)
  105.    ;Exit
  106.    ;  R2 corrupted
  107.    ;  R3 = unwritten (Int)
  108.    ;  R4 corrupted
  109.  
  110. OSGBPB_Write                    *       &2
  111.    ;Entry
  112.    ;  R0 = &2
  113.    ;  R1 = file (OS_F)
  114.    ;  R2 -> data (data)
  115.    ;  R3 = size (Int)
  116.    ;Exit
  117.    ;  R2 corrupted
  118.    ;  R3 = unwritten (Int)
  119.    ;  R4 corrupted
  120.  
  121. OSGBPB_ReadAt                   *       &3
  122.    ;Entry
  123.    ;  R0 = &3
  124.    ;  R1 = file (OS_F)
  125.    ;  R2 = buffer (pointer to data)
  126.    ;  R3 = size (Int)
  127.    ;  R4 = ptr (Int)
  128.    ;Exit
  129.    ;  R2 corrupted
  130.    ;  R3 = unread (Int)
  131.    ;  R4 corrupted
  132.  
  133. OSGBPB_Read                     *       &4
  134.    ;Entry
  135.    ;  R0 = &4
  136.    ;  R1 = file (OS_F)
  137.    ;  R2 = buffer (pointer to data)
  138.    ;  R3 = size (Int)
  139.    ;Exit
  140.    ;  R2 corrupted
  141.    ;  R3 = unread (Int)
  142.    ;  R4 corrupted
  143.  
  144. OSGBPB_ReadDiscName             *       &5
  145.    ;Entry
  146.    ;  R0 = &5
  147.    ;  R2 = disc_name (pointer to OSGBPB_DiscName)
  148.  
  149. OSGBPB_ReadCSDName              *       &6
  150.    ;Entry
  151.    ;  R0 = &6
  152.    ;  R2 = csd_name (pointer to OSGBPB_DirName)
  153.  
  154. OSGBPB_ReadLibName              *       &7
  155.    ;Entry
  156.    ;  R0 = &7
  157.    ;  R2 = lib_name (pointer to OSGBPB_DirName)
  158.  
  159. OSGBPB_CSDEntries               *       &8
  160.    ;Entry
  161.    ;  R0 = &8
  162.    ;  R2 = name_list (pointer to OSGBPB_NameList)
  163.    ;  R3 = count (Int)
  164.    ;  R4 = context (Int)
  165.    ;Exit
  166.    ;  R3 = unread (Int)
  167.    ;  R4 = context_out (Int)
  168.  
  169. OSGBPB_DirEntries               *       &9
  170.    ;Entry
  171.    ;  R0 = &9
  172.    ;  R1 -> dir_name (String)
  173.    ;  R2 = name_list (pointer to OSGBPB_StringList)
  174.    ;  R3 = count (Int)
  175.    ;  R4 = context (Int)
  176.    ;  R5 = size (Int)
  177.    ;  R6 -> entries (String)
  178.    ;Exit
  179.    ;  R3 = read_count (Int)
  180.    ;  R4 = context_out (Int)
  181.  
  182. OSGBPB_DirEntriesInfo           *       &A
  183.    ;Entry
  184.    ;  R0 = &A
  185.    ;  R1 -> dir_name (String)
  186.    ;  R2 = info_list (pointer to OSGBPB_InfoList)
  187.    ;  R3 = count (Int)
  188.    ;  R4 = context (Int)
  189.    ;  R5 = size (Int)
  190.    ;  R6 -> entries (String)
  191.    ;Exit
  192.    ;  R3 = read_count (Int)
  193.    ;  R4 = context_out (Int)
  194.  
  195. OSGBPB_DirEntriesSystemInfo     *       &B
  196.    ;Entry
  197.    ;  R0 = &B
  198.    ;  R1 -> dir_name (String)
  199.    ;  R2 = info_list (pointer to OSGBPB_SystemInfoList)
  200.    ;  R3 = count (Int)
  201.    ;  R4 = context (Int)
  202.    ;  R5 = size (Int)
  203.    ;  R6 -> entries (String)
  204.    ;Exit
  205.    ;  R3 = read_count (Int)
  206.    ;  R4 = context_out (Int)
  207.  
  208. OSGBPB_DirEntriesInfoStamped    *       &C
  209.    ;Entry
  210.    ;  R0 = &C
  211.    ;  R1 -> dir_name (String)
  212.    ;  R2 = info_list (pointer to OSGBPB_InfoStampedList)
  213.    ;  R3 = count (Int)
  214.    ;  R4 = context (Int)
  215.    ;  R5 = size (Int)
  216.    ;  R6 -> entries (String)
  217.    ;Exit
  218.    ;  R3 = read_count (Int)
  219.    ;  R4 = context_out (Int)
  220.  
  221. GBPBV                           *       &C
  222.  
  223.         ]
  224.         END
  225.