Differences

This shows you the differences between two versions of the page.


Previous revision
memset [2026/09/18 15:40] (current) – [Example] jjflash
Line 1: Line 1:
 +====== MEMSET ======
 +
 +[pet] [vic20] [c64] [c16] [cplus4] [c128] [x16] [m65]
 +===== Syntax: =====
 +
 +<code xcbasic>
 +MEMSET <source_address>, <length>, <fill_value>
 +</code>
 +
 +The ''MEMSET'' command calls a built-in routine that sets //length// number of bytes in memory to //fill_value// starting from //source_address//.
 +==== Example ====
 +
 +<code xcbasic>
 +' -- clear the screen
 +MEMSET 1024, 1000, 32
 +</code>
 +
 +<adm note>
 +''MEMSET'' uses fast Direct Memory Access (DMA) on the [m65].
 +</adm>
 +===== See also =====
 +
 +  * [[MEMCPY]]
 +  * [[MEMSHIFT]]