Skip to main content

mw

Write values to a memory region.

Usage

mw [-b|-w|-l|-q] address value [-c=count]

Options

OptionDescription
-bByte (8-bit, default)
-wWord (16-bit)
-lLong (32-bit)
-qQuad (64-bit)
-c=countNumber of writes (default 1)

Notes

  • Writes the same value repeatedly to contiguous physical memory
  • Respects alignment constraints for the access size
  • Supports Ctrl-C to abort

Examples

# Write a single byte
mw -b 0x80000000 0xff

# Write 16 long words
mw -l 0x80000000 0xdeadbeef -c=16