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_Byte 128

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

OS_Byte 128

(SWI &06)
Entry
R0 128 (&80)
R1 Reason code
Exit
R0 Preserved
R1 Bits 0-7 give LSB of answer
R2 Bits 0-23 give bits 8-31 of answer

Use

The purpose of this call is to return the mouse coordinates, or number of bytes in an input buffer, or number of free bytes in an output buffer.

Notes

This call checks the (buffered) mouse position or the free space in system buffers, depending on the reason code passed in R1. It is recommended to use OS_Mouse to read the mouse position, as this reads the current (unbuffered) position.

See also

  • OS_Byte
  • OS_Mouse
Created on November 13, 2009 21:18:32 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_Byte, Buffer Numbers, OS_Byte 128 Reason Codes, Buffers Introduction

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