//by Jon Ripley, May 2011//\\ \\ It is useful sometimes to be able to list the contents of a block of memory to examine it. This may be to help debug a problem, examine binary data in memory or one of many other uses.\\ \\ The easiest way to achieve that is probably to use the supplied **Memory Monitor** [[/​Tools%20and%20Utilities|add-in utility]], which optionally displays the contents of a block of memory in hexadecimal and ANSI (commonly known as a //hex dump//).\\ \\ However if you want to achieve a similar effect in your own program you can use **PROCm_Dump** below; it accepts four parameters:​\\ ​

//by Jon Ripley, May 2011//\\ \\ It is useful sometimes to be able to list the contents of a block of memory to examine it. This may be to help debug a problem, examine binary data in memory or one of many other uses.\\ \\ The easiest way to achieve that is probably to use the supplied **Memory Monitor** [[/​Tools%20and%20Utilities|add-in utility]], which optionally displays the contents of a block of memory in hexadecimal and ANSI (commonly known as a //hex dump//).\\ \\ However if you want to achieve a similar effect in your own program you can use **PROCm_Dump** below; it accepts four parameters:​\\ ​

+

<code bb4w>

PROCm_dump(block%,​ size%, items%, verbose%)

PROCm_dump(block%,​ size%, items%, verbose%)

+

</​code>​

Here //block%// should point to the memory to list, //size%// is the size in bytes, //items%// is the number of bytes to display on each line -- typically 16 -- and verbose controls whether a header is printed.\\ \\ In the example below we reserve 16 bytes of memory, write a message into the memory and call **PROCm_dump** to display a hex dump of the memory:​\\ ​

Here //block%// should point to the memory to list, //size%// is the size in bytes, //items%// is the number of bytes to display on each line -- typically 16 -- and verbose controls whether a header is printed.\\ \\ In the example below we reserve 16 bytes of memory, write a message into the memory and call **PROCm_dump** to display a hex dump of the memory:​\\ ​