RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

FileCore_DiscOp 9

Programmer's Reference Manuals
» Part 15 – SWI Calls
» FileCore
» FileCore_DiscOp
» FileCore_DiscOp 9

FileCore_DiscOp 9

(SWI &40540)
Entry
R1 9 + Flags
R2 Disc address
R3 Pointer to block to read into
R4 Size to read
R6 Cache handle
Exit
R1 Preserved
R2 Next disc address
R3 Next free address
R4 Unread bytes
R6 Cache handle

Use

The purpose of this call is to read sectors via a cache held in RMA memory.

Notes

To start a sequence of these operations, set R6 (cache handle) to zero on entry. Its value will be updated on exit, and subsequent calls should use this new values. Bits 4-7 of R1 should be zero, but are ignored if set.

To discard the cache once finished, just call FileCore_DiscardReadSectorsCache.

Note: For RISC OS 3.60, the value in R2 will be rounded down to be sector aligned.

See also

  • FileCore
  • FileCore_DiscardReadSectorsCache
  • FileCore_DiscOp
  • FileCore_DiscOp Address
Created on December 6, 2009 14:44:48 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: FileCore_DiscardReadSectorsCache, FileCore_DiscOp, Service_IdentifyDisc

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 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