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

Service_EnumerateFormats Block

Programmer's Reference Manuals
» Part 16 – Service Calls
» Service_EnumerateFormats
» Block

Block

Offset Contents
+0 Pointer to next block, or 0 to terminate list
+4 Pointer to RMA block with text for Format submenu
+8 Pointer to RMA block with help text for Format submenu
+12 SWI to call to get raw disc format info
+16 R3 parameter for this SWI
+20 SWI to call to lay down disc structure
+24 R0 parameter for this SWI
+28 Flags:
bit 0 set for native ADFS format
All other bits reserved, must be zero

The block should be built in this order:

  1. Allocate block in RMA
  2. Zero offsets 4 and 8 (pointers to text)
  3. Link into list
  4. Allocate block in RMA for text at offset 4
  5. Link this to the block
  6. Allocate block in RMA for text at offset 8
  7. Link this to the block
  8. Copy text into the two RMA blocks
  9. Fill in the rest of the block

This allows an error to be returned by claiming the service and returning the intact list.

See also

  • Service Calls
  • Service_EnumerateFormats
Created on December 12, 2009 18:22:05 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Service_EnumerateFormats

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