h6. [[OS SWI Calls]] h6(. » [[OS_FSControl]] h6((. » OS_FSControl 28 h2. OS_ FSControl 28 h5. (SWI &29) |_<^{width:4em}. Entry | | |<^. R0 |<^. 28 (&1C) | |<^. R1 |<^. Pointer to wildcarded filename of files to count | |<^. R3 |<^. [[Flags For File Operations|Flags]]| |<^. R4 |<^. "Start load":link4| |<^. R5 |<^. "Start exec":link4| |<^. R6 |<^. "End load":link4| |<^. R7 |<^. "End exec":link4| |<^. R8 |<^. [[File Descriptor Blocks|Pointer to descriptor]]| |_<^{width:4em}. Exit | | |<^. R2|<^. Total length| |<^. R3|<^. Number of files| |\2<^. All registers preserved | h4. Use The purpose of this call is to count objects. It is equivalent to the [[*Count|*Count]] command. h4. Notes The descriptor block, introduced in FileSwitch 2.73, should be used when counting discs larger than 4 Gbytes since the register R2 alone cannot return more than this. If the descriptor block is not used and the result overflowed R2 the value 0x7FFFFFFF is substituted (prior to this change the count total modulo 4 Gbytes was returned). h4. See also * [[*Count|*Count]] * [[File Descriptor Blocks]] * [[Flags For File Operations]] * "Load/Execution Information":link4 * [[OS_FSControl]] [link4]FileSwitch%20Key%20Features#load_execution