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_SetVarVal

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

OS_SetVarVal

(SWI &24)
Entry
R0 Pointer to name
R1 Pointer to value to set to
R2 Length, or -1 to delete
R3 Name pointer (0 for 1^st^ call)
R4 Variable type
Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 New name pointer
R4 Variable type

Use

The purpose of this call is to write a variable value.

Notes

This SWI sets a variable’s value to that specified, or deletes the variable. The name may be wildcarded for deletion and update (using ‘*’ and ‘#’). Code variables will not be deleted unless R4 = 16. Literal strings do not need to be null terminated, as R2 is used for the length.

OS_ReadVarVal is marked as being re-entrant, which would allow it to re-enter the same code variable’s read code. No note is made about this in the PRM and the code variable example in the PRM calls OS_Byte 135 which has undefined re-entrancy!

See also

  • OS_Byte 135
  • OS_ReadVarVal
  • OS_ReadVarVal Variable Types
Created on December 2, 2009 21:05:30 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: Error Generators, OS SWI Calls, OS_ReadVarVal, *Set, *SetEval, *SetMacro, *Unset, *Key

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