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

*Memory

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *Memory

*Memory

Use

This *Command displays the values in memory, grouped into 4-byte words unless specified otherwise.

Syntax

*Memory [P] [B|H|D] addr_|_reg1
*Memory [P] [B|H|D] addr_|_reg1 [+|-]addr2_|_reg2
*Memory [P] [B|H|D] addr_|_reg1 +|-addr2_|_reg2 +addr3_|_reg3

Parameters

P Specifies a physical rather than logical address (optional)
B|H|D Display bytes, halfwords or double words (optional)
addr1_|_reg1 Address or register containing start of display (hexadecimal)
addr2_|_reg2 Address or register containing offset (hexadecimal)
addr3_|_reg3 Address or register containing offset (hexadecimal)

Notes

If only the start address is specified, then 256 bytes will be returned starting from this address.

If two addresses are specified, then they specify the start and end addresses (unless specifying an offset by use of + or – symbols).

If three addresses are specified, then the second address is an offset from the start address, and the third address specifies the end address.

By default, the output is grouped into 4-byte words. This grouping can be changed by using the B, H or D flags (see above). Currently, halfword and doubleword access is only possible on CPUs that support the required instructions (LDRH, LDRD).

On kernels that support OS_Memory 14 and OS_Memory 15, the P flag causes physical memory to be mapped in temporarily (first flushing the cache to avoid inaccurate data being read). Otherwise, the system is assumed to be IOMD-based, where the 512MB of physical address space is mapped in at &80000000.

See also

  • *MemoryA
  • *MemoryI
Revised on March 26, 2010 13:28:16 by Jeffrey Lee (213) (127.0.0.1)
Edit | Back in time (4 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *MemoryA, *MemoryI, *ShowRegs

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