Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

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

Link to this comparison view

memset [2019/07/10 14:22] – created neilsmemset [2019/07/10 14:26] (current) neils
Line 7: Line 7:
   memset <int source_address>, <int length>, <byte fill_value>   memset <int source_address>, <int length>, <byte fill_value>
  
-The ''MEMSET'' commands calls a built-in routine that sets //length// number of bytes in memory to //fill_value// starting from //source_address//. The same functionality can be achieved with ''[[fornext|FOR ... NEXT]]'' and ''[[poke|POKE]]'', but ''MEMSET'' is considerably faster.+The ''MEMSET'' command calls a built-in routine that sets //length// number of bytes in memory to //fill_value// starting from //source_address//. The same functionality can be achieved with ''[[fornext|FOR ... NEXT]]'' and ''[[poke|POKE]]'', but ''MEMSET'' is considerably faster.
  
 Example: Example:
Line 19: Line 19:
     poke n, 32     poke n, 32
   next n   next n
 +
 +**Note**: all parameters of this command can be either bytes or integers, implicit conversions will occur in case of type mismatch.