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_CheckModeValid

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

OS_CheckModeValid

(SWI &3F)
Entry
R0 Screen mode number to check
Exit
If C flag unset, then Screen mode is valid
R0 Preserved
If C flag set, then Screen mode is invalid
R0 -1 = Screen mode is non-existent
-2 = Not enough memory
R1 Alternative screen mode to use
-2 = Unable to select alternative screen mode

Use

The purpose of this call is to check if it is possible to change to a specified screen mode.

Notes

This finds out, whether you may change to a given mode or its invalid, either because the monitor type forbids it, R1 then is the alternative mode, or there’s not enough memory in this case R1 = -2.

See also

  • Screen Modes
Revised on December 10, 2009 20:20:19 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: OS SWI Calls, Service_ModeTranslation

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