Using “mem2png.py”
“mem2png.py” shows a memory dump, optionally saving it as a png-file. When moving over the window, the memory address below the cursor position will be shown as well as the character address, both in decimal as well as in hexadecimal number systems. You may use this information for extracting a character set using “charset2png.py”.
Arguments and options
The file to load must be supported. Either --show or --output <IMAGE_TO_SAVE> must be set.
Arguments
- <MEMORY_FILE>: the memory dump file to load
Options
- --show/-s: show the memory dump
- --output/-o <IMAGE_TO_SAVE>: the name of the output file
- --width/-w <DISPLAY_WIDTH_IN_CHARACTERS>: the width of the window in chars (default: 128)
- --version: prints the version information
- --help/-h: prints the help screen
Examples
mem2png bb_hex_game.bin
Loads the memory dump “bb_hex_game.bin” and shows it.
mem2png -o bb_game.png bb_hex_game.bin
Loads the memory dump “bb_hex_game.bin”, renders it as an image and saves the image to “bb_game.png”. Shows the image, which may look as the following one:
When hovering over the image, the address information will show the memory address the mouse is currently over.
- Arguments and options
- Examples
Table of contents