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_ReadPalette

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

OS_ReadPalette

(SWI &2F)
Entry
R0 Logical colour
R1 Type of colour:
16 = normal colour
24 = Border colour
25 = Pointer colour
Exit
R0

Use

The purpose of this call is to read the setting of a particular colour that is sent to the hardware.

Notes

If R2 = R3 on exit the colour requested is a non flashing colour. The values are to interpret as follows:

Bits Meaning
0-6 Value showing how colour was programmed
7 Supremacy bit
8-15 Amount of red
16-23 Amount of green
24-31 Amount of blue

The bottom byte returns the second parameter to the VDU 19 command. For example:

Value Meaning
0-15 Actual colour (BBC compatible)
16 Defined by giving amounts of R, G and B
17-18 Flashing colour defined by giving amounts of red, green and blue

See also

  • VDU 19
Created on December 1, 2009 15:30:20 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS SWI Calls, OS_Word 11, OS_Word 12

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