CmdMemSet
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Fill memory with a byte value. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <...")
(Created page with "= <span class="f_Header">Action</span> = Fill memory with a byte value. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <...")
Latest revision as of 19:21, 12 December 2014
Contents |
Action
Fill memory with a byte value.
Syntax
CmdMemSet ptr, value, num
Remarks
ptr |
Starting address of the memory block |
value |
Value to be written to memory |
num |
Number of bytes in the memory block |
The completion of this function is detected when the value of REG_CMD_READ is equal to REG_CMD_WRITE.
Example
' Pseudocode ' To write 0xff the first 1K of main memory CmdMemSet 0, 255, 1024
Languages | English |
---|