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

Fast Horizontal Line Draw Routine

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_ReadVduVariables
» VDU Variables
» Fast Horizontal Line Draw Routine

Fast Horizontal Line Draw Routine

Entry
R0 Left x coordinate of end of line
R1 Y co-odinade of line
R2 Right x co-ordinate of end of line
R3 0 = plot with no action (do nothing!)
1 = plot with foreground colour and action
2 = invert current screen colour
3 = plot with background colour and action
>3 pointer to aligned ECF block
R14 Return address
Exit
All registers preserved

Notes

This must be called in SVC mode. The caller should OS_RemoveCursors before calling, and OS_RestoreCursors afterwards. All coordinates are internal coordinates, and the line is plotted as specified by R3, clipped to the current graphics window.

See also

  • ECF Block
  • Mode Variable Numbers
  • OS_ReadVduVariables
  • OS_RemoveCursors
  • OS_RestoreCursors
Revised on December 1, 2009 21:30:10 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: VDU Variables

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