h6. [[FileCore]] h6(. » [[FileCore SWI Calls|SWI Calls]] h6((. » FileCore_DiscOp h2. FileCore_DiscOp h5. (SWI &40540) |_<^{width:4em}. Entry | | |<^. R1 |<^. "Reason code":#reason + "Flags":#flags| |\2<^. All other registers dependent on reason code| |_<^{width:4em}. Exit | | |<^. R0 |<^. 0 if no error, [[FileCore Error Numbers|error number]] and VS otherwise| |<^. R1 |<^. Preserved| |\2<^. All other registers dependent on reason code| |\2<^. N, Z and C flag preserved| h4. Use The purpose of this call is to provide a number of low-level disc operations. h4. Notes The action performed depends on the reason code value in R1. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^{width:4em}. Hex #|_<^. Action| |<^. 0|<^. &00|<^. [[FileCore_DiscOp 0|Verify]]| |<^. 1|<^. &01|<^. [[FileCore_DiscOp 1|Read sectors]]| |<^. 2|<^. &02|<^. [[FileCore_DiscOp 2|Write sectors]]| |<^. 3|<^. &03|<^. [[FileCore_DiscOp 3|Read track/ID]]| |<^. 4|<^. &04|<^. [[FileCore_DiscOp 4|Write/format track]]| |<^. 5|<^. &05|<^. [[FileCore_DiscOp 5|Seek]]| |<^. 6|<^. &06|<^. [[FileCore_DiscOp 6|Restore]]| |<^. 7|<^. &07|<^. [[FileCore_DiscOp 7|Step in]]| |<^. 8|<^. &08|<^. [[FileCore_DiscOp 8|Step out]]| |<^. 9|<^. &09|<^. [[FileCore_DiscOp 9|Read sectors via cache]]| |<^. 15|<^. &0F|<^. [[FileCore_DiscOp 15|Specify Hard disc]]| h4(#flags). Flags |_<^{width:4em}. Bit |_<^. Meaning | |<^. 4 |<^. Given alternative defect list| |<^. 5 |<^. Given [[FileCore Sector List|sector list]]| |<^. 6 |<^. Ignore escape| |<^. 7 |<^. Ignore timeout| |<^. 8 - 31 |<^. 0 or bits 2-25 of the pointer to an [[FileCore Disc Record Large|alternative record]] (ie flags=flags OR ptr<<6)| The alternative record must be word aligned and within the first 64MB of addressable memory. h4. See also * [[FileCore]] * [[FileCore Disc Record Large]] * [[FileCore Sector List]] * [[FileCore Error Numbers]]