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

  1. ;AAsm header file for RamFS
  2. ;written by DefMod (Aug  8 1994) on Thu Sep 22 15:26:38 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: Get_FileCore
  21.         GBLS    Get_FileCore
  22. Get_FileCore                    SETS    "GET OS:Hdr.FileCore"
  23.         |
  24. Get_FileCore                    SETS    ""
  25.         ]
  26.         $Get_FileCore
  27.  
  28.         [       :LNOT: :DEF: RamFS_Hdr
  29.         GBLS    RamFS_Hdr
  30.  
  31. ;Symbols for SWI's and SWI reason codes
  32. XRamFS_DiscOp                   *       &60780
  33. RamFS_DiscOp                    *       &40780
  34.  
  35. RamFSDiscOp_Verify              *       &0
  36.    ;Entry
  37.    ;  R1 = &0 :OR: flags (Bits)
  38.    ;  R2 = disc_addr (FileCore_DiscAddress)
  39.    ;  R4 = size (Int)
  40.    ;Exit
  41.    ;  R2 = next_disc_addr (FileCore_DiscAddress)
  42.    ;  R4 = unverified (Int)
  43.  
  44. RamFSDiscOp_ReadSectors         *       &1
  45.    ;Entry
  46.    ;  R1 = &1 :OR: flags (Bits)
  47.    ;  R2 = disc_addr (FileCore_DiscAddress)
  48.    ;  R3 -> data (data)
  49.    ;  R4 = size (Int)
  50.    ;Exit
  51.    ;  R2 = next_disc_addr (FileCore_DiscAddress)
  52.    ;  R3 -> next_data (data)
  53.    ;  R4 = unread (Int)
  54.  
  55. RamFSDiscOp_WriteSectors        *       &2
  56.    ;Entry
  57.    ;  R1 = &2 :OR: flags (Bits)
  58.    ;  R2 = disc_addr (FileCore_DiscAddress)
  59.    ;  R3 -> data (data)
  60.    ;  R4 = size (Int)
  61.    ;Exit
  62.    ;  R2 = next_disc_addr (FileCore_DiscAddress)
  63.    ;  R3 -> next_data (data)
  64.    ;  R4 = unwritten (Int)
  65.  
  66. RamFSDiscOp_ReadTrack           *       &3
  67.    ;Entry
  68.    ;  R1 = &3 :OR: flags (Bits)
  69.    ;  R2 = disc_addr (FileCore_DiscAddress)
  70.    ;  R3 -> data (data)
  71.  
  72. RamFSDiscOp_ReadId              *       &3
  73.    ;Entry
  74.    ;  R1 = &3 :OR: flags (Bits)
  75.    ;  R2 = disc_addr (FileCore_DiscAddress)
  76.    ;  R3 -> data (data)
  77.  
  78. RamFSDiscOp_WriteTrack          *       &4
  79.    ;Entry
  80.    ;  R1 = &4 :OR: flags (Bits)
  81.    ;  R2 = disc_addr (FileCore_DiscAddress)
  82.    ;  R3 -> data (data)
  83.  
  84. RamFSDiscOp_FormatTrack         *       &4
  85.    ;Entry
  86.    ;  R1 = &4 :OR: flags (Bits)
  87.    ;  R2 = disc_addr (FileCore_DiscAddress)
  88.    ;  R3 = &0
  89.    ;  R4 -> track_format (FileCore_TrackFormat)
  90.  
  91. RamFSDiscOp_Seek                *       &5
  92.    ;Entry
  93.    ;  R1 = &5 :OR: flags (Bits)
  94.    ;  R2 = disc_addr (FileCore_DiscAddress)
  95.  
  96. RamFSDiscOp_Restore             *       &6
  97.    ;Entry
  98.    ;  R1 = &6 :OR: flags (Bits)
  99.    ;  R2 = disc_addr (FileCore_DiscAddress)
  100.  
  101. RamFSDiscOp_StepIn              *       &7
  102.    ;Entry
  103.    ;  R1 = &7 :OR: flags (Bits)
  104.  
  105. RamFSDiscOp_StepOut             *       &8
  106.    ;Entry
  107.    ;  R1 = &8 :OR: flags (Bits)
  108.  
  109. RamFSDiscOp_ReadSectorsViaCache *       &9
  110.    ;Entry
  111.    ;  R1 = &9 :OR: flags (Bits)
  112.    ;  R2 = disc_addr (FileCore_DiscAddress)
  113.    ;  R3 -> data (data)
  114.    ;  R4 = size (Int)
  115.    ;  R6 = cache_handle (Int)
  116.    ;Exit
  117.    ;  R2 = next_disc_addr (FileCore_DiscAddress)
  118.    ;  R3 -> next_data (data)
  119.    ;  R4 = unread (Int)
  120.    ;  R6 = cache_handle_out (Int)
  121.  
  122. RamFSDiscOp_Specify             *       &F
  123.    ;Entry
  124.    ;  R1 = &F :OR: flags (Bits)
  125.    ;  R2 = disc_addr (FileCore_DiscAddress)
  126.  
  127. XRamFS_Drives                   *       &60782
  128. RamFS_Drives                    *       &40782
  129.    ;Exit
  130.    ;  R0 = default_drive (Int)
  131.    ;  R1 = floppy_count (Int)
  132.    ;  R2 = hard_disc_count (Int)
  133.  
  134. XRamFS_FreeSpace                *       &60783
  135. RamFS_FreeSpace                 *       &40783
  136.    ;Entry
  137.    ;  R0 -> disc_name (String)
  138.    ;Exit
  139.    ;  R0 = free (Int)
  140.    ;  R1 = max (Int)
  141.  
  142. XRamFS_DescribeDisc             *       &60785
  143. RamFS_DescribeDisc              *       &40785
  144.    ;Entry
  145.    ;  R0 -> disc_name (String)
  146.    ;  R1 = disc (pointer to FileCore_Disc)
  147.  
  148.         ]
  149.         END
  150.