c64tools

mem2png

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 and additionally, the character address, both in decimal as well as in hexadecimal number system. You may use this information for extracting a character set using “charset2png.py”.

Options

The tool has to be started with either one option — the memory dump to load — or the following ones:

  • --file/-f <MEMORY_DUMP_TO_LOAD>: the memory dump to load
  • --output/-o <IMAGE_TO_SAVE>: the file name to save the memory image to
  • --width/-w <DISPLAY_WIDTH_IN_CHARACTERS>: the width of the display in characters (the default is 128)

Examples

mem2png -f bb_hex_game.bin 

Loads the memory dump “bb_hex_game.bin” and shows it.

mem2png -f bb_hex_game.bin -o bb_game.png

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 folowing one:

mem2png example

When hovering over the image, the address information will show the memory address the mouse is currently over.