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

OS_GBPB

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_GBPB

OS_GBPB

(SWI &0C)
Entry
R0 Reason code
Other registers dependent on reason code
Exit
R0 Preserved
All other registers dependent on reason code

Use

The purpose of this call is to read/write a block from/to an open file.

Notes

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

Reason Codes

# Hex # Action
1 &01 Write bytes to given pointer
2 &02 Write bytes to current pointer
3 &03 Read bytes from given pointer
4 &04 Read bytes from current pointer
5 &05 Read name & boot options
6 &06 Read current dir and privilege byte
7 &07 Read library dir and privilege byte
8 &08 Read entries from current dir
9 &09 Read entries from given dir
10 &0A Read entries and info from given dir
11 &0B Read entries and full info from given dir
12 &0C Read entries and full info with filetype from given dir

See also

Revised on November 26, 2010 12:46:06 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (3 revisions) | See changes | History | Views: Print | Source | Linked from: FileSwitch SWI Calls, OS_BGet, OS_BPut, OS SWI Calls, Software Vector Numbers, OS_GBPB 1, OS_GBPB 2, OS_GBPB 4, OS_GBPB 3, OS_GBPB 5, OS_GBPB 6, OS_GBPB 7, OS_GBPB 9, OS_GBPB 8, OS_GBPB 10, OS_GBPB 10 Buffer, OS_GBPB 11, OS_GBPB 11 Buffer, OS_GBPB 12, OS_GBPB 12 Buffer

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