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 160 VDU Variable Numbers

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_Byte
» OS_Byte 160
» VDU Variable Numbers

VDU Variable Numbers

# Value
0 LSB of graphics window left column (ec)
1 MSB of graphics window left column (ic)
2 LSB of graphics window bottom row (ic)
3 MSB of graphics window bottom row (ic)
4 LSB of graphics window right column (ic)
5 MSB of graphics window right column (ic)
6 LSB of graphics window top row (ic)
7 MSB of graphics window top row (ic)
8 text window left column
9 text window bottom row
10 text window right column
11 text window top row
12 LSB of graphics origin x coordinate (ec)
13 MSB of graphics origin x coordinate (ec)
14 LSB of graphics origin y coordinate (ec)
15 MSB of graphics origin y coordinate (ec)

Notes

These VDU variable numbers are different to the those of OS_ReadVDUVariables?, and that it can read many more variables. It should be used in preference to OS_Byte 160.

ic: Internal Co-ordinates. The origin is always the bottom left of the screen. One unit is one pixel wide and one pixel high.

ec: External Co-ordinates. A pixel is (1 \<\< XEigFactor) units wide and (1 \<\< YEigFactor) units high, where XEigFactor and YEigFactor are VDU variables.

See also

  • OS_Byte
  • OS_Byte 160
  • OS_ReadVDUVariables?
Created on November 14, 2009 20:49:12 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_Byte 160

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