AmigaChromeA new chapter for the Amiga

API docs / Open libraries / disk.resource

API · Resources

disk.resource jump table

Our open disk.resource: 6 calls with the same LVOs and registers as AmigaOS 3.2's, checked against the NDK 3.2 .fd file.

disk.resource's calls, as OpenDisk builds them: LVO, call, registers, and after the # the call's core class (OPEN_LIBRARIES.md section 5). build-amiga.sh (with ../../libraries/common/check_fd.py) checks this against the NDK 3.2 disk_lib.fd (##bias 6) in the stove and stops on any difference; opendisk_res.c's res_vectors[] follows it line for line. A resource has no Open, Close, Expunge or Null: its calls start at -6.

6 slots, 6 public
LVOCallRegistersNotes
-6AllocUnitd0anchored: dr_Flags
-12FreeUnitd0anchored
-18GetUnita1anchored: dr_Current and dr_Waiting
-24GiveUnitnoneanchored
-30GetUnitIDd0anchored: dr_UnitID
-36ReadUnitIDd0anchored: the drive lines