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_ChangeDynamicArea

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

OS_ChangeDynamicArea

(SWI &2A)
Entry
R0 Area to alter
R1 Amount to move in bytes (signed integer)
Exit
R0 Preserved
R1 Amount the area has changed in bytes (unsigned)

Use

The purpose of this call is change the size of a dynamic area.

Notes

Let you enlarge (R1 positive) or shrink (R1 negative) the selected area.

If you need to release as much space as possible from an area, try to reduce its size by 16 MBytes.

Note, that normally this cannot be used while the application work area is being used; main purpose is for the OS, modules and utilities.

This SWI issues OS_UpCall 257 (moving memory); if the upcall is claimed when an application is running in the application workspace then the memory movement is allowed.

See also

  • Dynamic Area Numbers
  • OS_ReadDynamicArea
  • OS_UpCall 257
Revised on November 26, 2010 12:27:22 by Trevor Johnson (329)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: Error Generators, *ChangeDynamicArea, Dynamic Area Numbers, OS_DynamicArea 1, OS SWI Calls, Sparse Dynamic Areas, OS_SetMemMapEntries, OS_UpCall 257, Service_MemoryMoved, *Configure RMASize, *Configure SystemSize, *Configure ScreenSize, *Configure RamFSSize, OS_DynamicArea

Search the Wiki

Social

Follow us on and

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

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