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

Page "OS_Byte CMOS 140" does not exist. Please create it now, or hit the "back" button in your browser.

HAL_Video_SetDAG

Hardware Abstraction Layer
HAL entry points from RISC OS
ยป HAL_Video_SetDAG

HAL_Video_SetDAG

(HAL entry #47)
void HAL_Video_SetDAG(uint DAG, uint paddr)
Entry
DAG 0 = Set start address of current video display
1 = Set start address of total video buffer
2 = Set end address (exclusive) of total video buffer
3 = Set start address of VDU buffer (i.e. as set by OS_Byte 112)
All other values reserved
paddr Physical address for given DAG
Exit
-

Use

This is an internal call for OS use only and should not be used by user software. User software should use GraphicsV? instead of interacting with the HAL directly.

The OS has a video buffer which is >= total display size, and may be using bank switching (several display buffers) or hardware scroll within the total video buffer.

  • DAG=1 will be start address of current total video buffer
  • DAG=2 will be end address (exclusive) of current total video buffer
  • DAG=0 will be start address in buffer for current display

HALs should respond differently depending on whether hardware scroll is supported or not. (The OS will already know this from HAL_Video_Features).

No hardware scroll

Only DAG=0 is significant, and the end address of the current display is implied by the size of the current mode. Calls with DAG=1,2 should be ignored.

Hardware scroll

DAG=0 again defines display start. DAG=2 defines the last address (exclusive) that should be displayed before wrapping back (if reached within display size), and DAG=1 defines the address to which accesses should wrap back.

See also

  • HAL Video API
Information source: Kernel.Docs.HAL.HAL_API in CVS
Revised on February 9, 2012 14:07:08 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, HAL Video API

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