Skip to content
Dump and edit value(s) to specified address.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
Makefile.am
README.md
configure.ac

README.md

memaccess

'memaccess' (command name 'ma') can read and write value(s) from/to specified address.

Use Case

  • Dump register values of hardware or dump memory area
  • Set single/multiple value to register
  • Fill data into memory area

Sample

Dump memory area from address 0x100.

$ ma dd 0x100
00000100  00000000 00000000  00000000 00000000
00000110  00000000 00000000  00000000 00000000
00000120  00000000 00000000  00000000 00000000
00000130  00000000 00000000  00000000 00000000
00000140  00000000 00000000  00000000 00000000
00000150  00000000 00000000  00000000 00000000
00000160  00000000 00000000  00000000 00000000
00000170  00000000 00000000  00000000 00000000
00000180  00000000 00000000  00000000 00000000
00000190  00000000 00000000  00000000 00000000
000001a0  00000000 00000000  00000000 00000000
000001b0  00000000 00000000  00000000 00000000
000001c0  00000000 00000000  00000000 00000000
000001d0  00000000 00000000  00000000 00000000
000001e0  00000000 00000000  00000000 00000000
000001f0  00000000 00000000  00000000 00000000
00000200

Write value 0x2000 to address 0x110.

$ ma ed 0x110 0x2000

Dump again memory area from address 0x100. Data located 0x110 is changed.

$ ma dd 0x100
00000100  00000000 00000000  00000000 00000000
00000110  00002000 00000000  00000000 00000000
00000120  00000000 00000000  00000000 00000000
00000130  00000000 00000000  00000000 00000000
00000140  00000000 00000000  00000000 00000000
00000150  00000000 00000000  00000000 00000000
00000160  00000000 00000000  00000000 00000000
00000170  00000000 00000000  00000000 00000000
00000180  00000000 00000000  00000000 00000000
00000190  00000000 00000000  00000000 00000000
000001a0  00000000 00000000  00000000 00000000
000001b0  00000000 00000000  00000000 00000000
000001c0  00000000 00000000  00000000 00000000
000001d0  00000000 00000000  00000000 00000000
000001e0  00000000 00000000  00000000 00000000
000001f0  00000000 00000000  00000000 00000000
00000200

Fill values (0x1111, 0x2222, 0x3333) to address 0x120. Fill length is 0x30.

$ ma ed 0x120 0x30 0x1111 0x2222 0x3333

Dump again. Memory area address from 0x120 to 0x150 is changed.

$ ma dd 0x100
00000100  00000000 00000000  00000000 00000000
00000110  00002000 00000000  00000000 00000000
00000120  00001111 00002222  00003333 00001111
00000130  00002222 00003333  00001111 00002222
00000140  00003333 00001111  00002222 00003333
00000150  00000000 00000000  00000000 00000000
00000160  00000000 00000000  00000000 00000000
00000170  00000000 00000000  00000000 00000000
00000180  00000000 00000000  00000000 00000000
00000190  00000000 00000000  00000000 00000000
000001a0  00000000 00000000  00000000 00000000
000001b0  00000000 00000000  00000000 00000000
000001c0  00000000 00000000  00000000 00000000
000001d0  00000000 00000000  00000000 00000000
000001e0  00000000 00000000  00000000 00000000
000001f0  00000000 00000000  00000000 00000000
00000200
You can’t perform that action at this time.