# Working with memory contents

Use the Memory pane to examine contents of variables and registers, and to change the memory contents.

You can use the lists in the Memory pane to select an address for which you want to see the memory contents or to specify the display format, byte size, and number of bytes displayed per line.

## Displaying the memory for addresses and variables

Use any of the following methods to display the memory for an address or variable:

- In the Memory pane:
  - Use the Address list to select a beginning address or type the beginning address of the memory that you want to display.
  - In the hexadecimal representation area, right-click the address that you want to use as the beginning address, then select Go To Memory or New Memory Window.
- In the Locals, Monitors, or GPR pane, right-click an entry and select Go to Memory or New Memory Window.

## Displaying contents of memory in assembly code

To display the assembly code instructions associated with a specified address, right-click the address and select Go To Disassembly. PASE Debugger displays the memory contents associated with that address in the assembly code area of the Source window.

## Copying data to the clipboard

To copy all the data from the pane to the clipboard, right-click in the pane and select Copy Panel.

## Changing contents of memory

When you are debugging a program written in C or C++, you can change the memory contents. To change the memory contents, complete the following steps:

1. Position the cursor in either the hexadecimal or character representation area.
2. Type the new contents for the memory.
3. Click Save to write the new contents into the active program memory. Click Cancel to make no changes to the current memory contents.

## Moving forward and backward through memory contents

Use the + and - buttons to move forward and backward through the memory contents.