RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Service_ModeTranslation

Programmer's Reference Manuals
» Service Calls
» Service_ModeTranslation

Service_ModeTranslation

(Service &51)
Entry
R1 81 (&51)
R2 Mode number, shadow bit clear
R3 Monitor type
Exit
R1-R3 Preserved to pass on, else:
R1 0 to claim service
R2 Substitute mode (mode number or mode Mode Selector Block)
R3 Preserved

Use

This service is issued by OS_CheckModeValid or a mode change when the monitor type is unknown by RISC OS, and the mode is not available with the current monitor type.

Implementors of Service_ModeTranslation should check to see if they recognise the input mode and monitor type, and then check to see if they know of any suitable substitute mode (e.g. with similar resolution and colour depth) which is supported by the hardware. If such a mode is found, they can claim the call and return the new mode in R2.

Notes

This call is only issued for mode numbers, not Mode Selector Blocks.

See also

  • Monitor Types
  • OS_CheckModeValid
  • Screen Modes
  • Service Calls
  • Service_ModeExtension
Revised on July 16, 2018 13:22:22 by Jeffrey Lee (213) (62.252.28.250)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: Service Calls, Service_PreModeChange, ScreenModes Service Calls, Screen Mode Types

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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