home *** CD-ROM | disk | FTP | other *** search
- ;AAsm header file for ADFS
- ;written by DefMod (Aug 8 1994) on Thu Aug 25 11:48:35 1994
-
- [ :LNOT: :DEF: Get_Types
- GBLS Get_Types
- Get_Types SETS "GET OS:Hdr.Types"
- |
- Get_Types SETS ""
- ]
- $Get_Types
-
- [ :LNOT: :DEF: Get_OS
- GBLS Get_OS
- Get_OS SETS "GET OS:Hdr.OS"
- |
- Get_OS SETS ""
- ]
- $Get_OS
-
- [ :LNOT: :DEF: Get_FileCore
- GBLS Get_FileCore
- Get_FileCore SETS "GET OS:Hdr.FileCore"
- |
- Get_FileCore SETS ""
- ]
- $Get_FileCore
-
- [ :LNOT: :DEF: ADFS_Hdr
- GBLS ADFS_Hdr
-
- ;Symbols for constants
- ADFS_ControllerDiscNotPresent * 0
- ADFS_Controller1772 * 1
- ADFS_Controller71X * 2
- ADFS_ControllerST506 * 3
- ADFS_ControllerIDE * 4
-
- ;Symbols for SWI's and SWI reason codes
- XADFS_DiscOp * &60240
- ADFS_DiscOp * &40240
-
- ADFSDiscOp_Verify * &0
- ;Entry
- ; R1 = &0 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R4 = size (Int)
- ;Exit
- ; R2 = next_disc_addr (FileCore_DiscAddress)
- ; R4 = unverified (Int)
-
- ADFSDiscOp_ReadSectors * &1
- ;Entry
- ; R1 = &1 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
- ; R4 = size (Int)
- ;Exit
- ; R2 = next_disc_addr (FileCore_DiscAddress)
- ; R3 -> next_data (data)
- ; R4 = unread (Int)
-
- ADFSDiscOp_WriteSectors * &2
- ;Entry
- ; R1 = &2 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
- ; R4 = size (Int)
- ;Exit
- ; R2 = next_disc_addr (FileCore_DiscAddress)
- ; R3 -> next_data (data)
- ; R4 = unwritten (Int)
-
- ADFSDiscOp_ReadTrack * &3
- ;Entry
- ; R1 = &3 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
-
- ADFSDiscOp_ReadId * &3
- ;Entry
- ; R1 = &3 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
-
- ADFSDiscOp_WriteTrack * &4
- ;Entry
- ; R1 = &4 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
-
- ADFSDiscOp_FormatTrack * &4
- ;Entry
- ; R1 = &4 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 = &0
- ; R4 -> format (FileCore_Format)
-
- ADFSDiscOp_Seek * &5
- ;Entry
- ; R1 = &5 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
-
- ADFSDiscOp_Restore * &6
- ;Entry
- ; R1 = &6 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
-
- ADFSDiscOp_StepIn * &7
- ;Entry
- ; R1 = &7 :OR: flags (Bits)
-
- ADFSDiscOp_StepOut * &8
- ;Entry
- ; R1 = &8 :OR: flags (Bits)
-
- ADFSDiscOp_ReadSectorsViaCache * &9
- ;Entry
- ; R1 = &9 :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 -> data (data)
- ; R4 = size (Int)
- ; R6 = cache_handle (Int)
- ;Exit
- ; R2 = next_disc_addr (FileCore_DiscAddress)
- ; R3 -> next_data (data)
- ; R4 = unread (Int)
- ; R6 = cache_handle (Int)
-
- ADFSDiscOp_Specify * &F
- ;Entry
- ; R1 = &F :OR: flags (Bits)
- ; R2 = disc_addr (FileCore_DiscAddress)
-
- XADFS_HDC * &60241
- ADFS_HDC * &40241
- ;Entry
- ; R2 = controller (pointer to data)
- ; R3 = poll_location (pointer to Int)
- ; R4 = poll_bits (Bits)
- ; R5 = enable_location (pointer to data)
- ; R6 = enable_bits (Bits)
-
- XADFS_Drives * &60242
- ADFS_Drives * &40242
- ;Exit
- ; R0 = default_drive (Int)
- ; R1 = floppy_count (Int)
- ; R2 = hard_disc_count (Int)
-
- XADFS_FreeSpace * &60243
- ADFS_FreeSpace * &40243
- ;Entry
- ; R0 -> disc_name (String)
- ;Exit
- ; R0 = free (Int)
- ; R1 = max (Int)
-
- XADFS_Retries * &60244
- ADFS_Retries * &40244
- ;Entry
- ; R0 = mask (Bits)
- ; R1 = value (Bits)
- ;Exit
- ; R1 corrupted
- ; R2 = old_value (Bits)
- ; R3 = new_value (Bits)
-
- XADFS_DescribeDisc * &60245
- ADFS_DescribeDisc * &40245
- ;Entry
- ; R0 -> disc_name (String)
- ; R1 = disc (pointer to FileCore_Disc)
-
- XADFS_VetFormat * &60246
- ADFS_VetFormat * &40246
- ;Entry
- ; R0 -> format (FileCore_Format)
- ; R1 = drive_no (Int)
-
- XADFS_FlpProcessDCB * &60247
- ADFS_FlpProcessDCB * &40247
-
- XADFS_ControllerType * &60248
- ADFS_ControllerType * &40248
- ;Entry
- ; R0 = drive_no (Int)
- ;Exit
- ; R0 = controller (Int)
-
- XADFS_PowerControl * &60249
- ADFS_PowerControl * &40249
-
- ADFSPowerControl_ReadSpin * &0
- ;Entry
- ; R0 = &0
- ; R1 = drive_no (Int)
- ;Exit
- ; R2 = spinning (Bool)
-
- ADFSPowerControl_SetAutospindown * &1
- ;Entry
- ; R0 = &1
- ; R1 = drive_no (Int)
- ; R2 = spindown_time (Int)
- ;Exit
- ; R3 = old_spindown_time (Int)
-
- ADFSPowerControl_SetSpin * &2
- ;Entry
- ; R0 = &2
- ; R1 = drive_no (Int)
- ; R2 = spinning (Bool)
-
- XADFS_SetIDEController * &6024A
- ADFS_SetIDEController * &4024A
- ;Entry
- ; R2 = controller (pointer to data)
- ; R3 = status_location (pointer to Int)
- ; R4 = status_bits (Bits)
- ; R5 = irq_location (pointer to Int)
- ; R6 = irq_bits (Bits)
- ; R7 -> read_code (code)
- ; R8 -> write_code (code)
-
- XADFS_IDEUserOp * &6024B
- ADFS_IDEUserOp * &4024B
- ;Entry
- ; R0 = op (Bits)
- ; R2 -> commands (data)
- ; R3 = buffer (pointer to data)
- ; R4 = size (Int)
- ; R5 = timeout (Int)
- ;Exit
- ; R0 = status (Int)
- ; R4 = untransferred (Int)
- ; R5 corrupted
-
- XADFS_MiscOp * &6024C
- ADFS_MiscOp * &4024C
-
- ADFSMiscOp_Mount * &0
- ;Entry
- ; R0 = &0
- ; R1 = drive_no (Int)
- ; R2 = disc_addr (FileCore_DiscAddress)
- ; R3 = buffer (pointer to data)
- ; R4 = size (Int)
- ; R5 = disc (pointer to FileCore_Disc)
-
- ADFSMiscOp_PollChanged * &1
- ;Entry
- ; R0 = &1
- ; R1 = drive_no (Int)
- ; R2 = sequence_no (Int)
- ;Exit
- ; R2 = sequence_no_out (Int)
- ; R3 = result (Bits)
-
- ADFSMiscOp_LockDrive * &2
- ;Entry
- ; R0 = &2
- ; R1 = drive_no (Int)
-
- ADFSMiscOp_UnlockDrive * &3
- ;Entry
- ; R0 = &3
- ; R1 = drive_no (Int)
-
- ADFSMiscOp_PollPeriod * &4
- ;Entry
- ; R0 = &4
- ; R1 -> disc_name (String)
- ;Exit
- ; R5 = poll_period (Int)
- ; R6 -> media_type (String)
-
- ADFSMiscOp_EjectDisc * &5
- ;Entry
- ; R0 = &5
- ; R1 = drive_no (Int)
-
- XADFS_ECCSAndRetries * &60250
- ADFS_ECCSAndRetries * &40250
-
- Service_IdentifyFormat * &6B
- ;Entry
- ; R0 -> format (String)
- ; R1 = &6B
- ;Exit
- ; R0 -> command (String)
- ; R1 = unclaimed (Bool)
- ; R2 = disc_format_swi (Int)
- ; R3 = disc_format_handle (Int)
- ; R4 = layout_structure_swi (Int)
- ; R5 = layout_structure_handle (Int)
-
- Service_DisplayFormatHelp * &6C
- ;Entry
- ; R0 = &0
- ; R1 = &6C
- ;Exit
- ; R0 -> error (OS_Error)
- ; R1 = unclaimed (Bool)
-
- ]
- END
-