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

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

FileCore_DiscOp

(SWI &40540)
Entry
R1 Reason code + Flags
All other registers dependent on reason code
Exit
R0 0 if no error, error number and VS otherwise
R1 Preserved
All other registers dependent on reason code
N, Z and C flag preserved

Use

The purpose of this call is to provide a number of low-level disc operations.

Notes

The action performed depends on the reason code value in R1.

Reason Codes

# Hex # Action
0 &00 Verify
1 &01 Read sectors
2 &02 Write sectors
3 &03 Read track/ID
4 &04 Write/format track
5 &05 Seek
6 &06 Restore
7 &07 Step in
8 &08 Step out
9 &09 Read sectors via cache
15 &0F Specify Hard disc

Flags

Bit Meaning
4 Given alternative defect list
5 Given sector list
6 Ignore escape
7 Ignore timeout
8 – 31 Pointer to alternative record (shifted down twice)

The alternative record is +4, so that its LSB is actually bit 6, but because its must be word-aligned the real LSB is bit 8.

See also

  • FileCore
  • FileCore Disc Descriptor
  • FileCore Sector List
  • FileCore Error Numbers
Revised on December 6, 2009 15:06:52 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: FileCore SWI Calls, FileCore Sector List, FileCore_DiscOp FS Specific Error Numbers, FileCore_DiscOp 0, FileCore_DiscOp Address, FileCore_DiscOp 1, FileCore_DiscOp 2, FileCore_DiscOp 3, FileCore_DiscOp 4, FileCore_DiscOp 5, FileCore_DiscOp 6, FileCore_DiscOp 7, FileCore_DiscOp 8, FileCore_DiscOp 9, FileCore_DiscOp 15, FileCore_DiscOp64, FileCore_DiscOp64 Address, FileCore Error Numbers, FileCore_SectorDiscOp

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
  • Export
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