Keil™, An ARM® Company

Technical Support

DSCOPE: FILLING MEMORY WITH A VALUE


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03
  • C251 Version 2.14
  • C51 Version 5.50
  • C51 Version 6.00 Beta
  • C51 Version 6.00

QUESTION

How do I fill memory with a value?

ANSWER

In the debugger, you may use the memset function to fill memory. In the command window, enter:

memset (d:0x40, d:0x7F, 'Z')

to fill memory from 0x40 to 0x7F with the character Z.

SEE ALSO

Last Reviewed: Wednesday, November 30, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure