RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_FSControl 28

OS SWI Calls
» OS_FSControl
» OS_FSControl 28

OS_ FSControl 28

(SWI &29)
Entry
R0 28 (&1C)
R1 Pointer to wildcarded filename of files to count
R3 Flags
R4 Start load
R5 Start exec
R6 End load
R7 End exec
R8 Pointer to descriptor
Exit
R2 Total length
R3 Number of files
All registers preserved

Use

The purpose of this call is to count objects. It is equivalent to the *Count command.

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 0×7FFFFFFF is substituted (prior to this change the count total modulo 4 Gbytes was returned).

See also

  • *Count
  • File Descriptor Blocks
  • Flags For File Operations
  • Load/Execution Information
  • OS_FSControl
Revised on November 11, 2017 04:20:00 by Alan Robertson (52) (49.192.18.196)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: OS_FSControl, File Descriptor Blocks, Flags For File Operations

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys