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 "GCOL" does not exist. Please create it now, or hit the "back" button in your browser.

CnpV

Programmer's Reference Manuals
» Part 1 - Introduction
» Vectors
» Software Vector Numbers
» CnpV

Count/Purge Vector (22)

Entry  
R1 Buffer number
V flag and C flag encode the action:
  V flag = 0, C flag = 0: Return number of entries
  V flag = 0, C flag = 1: Return amount of free space
  V flag = 1: Flush buffer
Exit  
R0 Corrupted
R1-R2 Preserved (if purge), else;
R1 Count AND &FF
R2 Count >> &FF

Use

This vector is called to count the number of entries or spaces in a buffer, or to flush the contents of a buffer.

Notes

If called via OS_CallAVector then interrupts must be disabled first.

See also

  • Buffer Numbers
  • OS_CallAVector
  • Software Vector Numbers
Created on January 31, 2010 13:19:53 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS_CallAVector, Software Vector Numbers

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