Skip to content
Viza edited this page Jun 3, 2017 · 10 revisions

memset

memset addr val len

Parameters:

  • addr : any address of the 64k RAM byte you want to write
  • val : value you want write
  • len : the length of the memory block you want to set

Description:

This function allow to write a continuous block of the same value to the RAM memory of TIC. Address are in hexadecimal format, values are decimal.

Example memset

-- demo memset
function TIC()

-- alternative way to clear the screen
memset(0x0000, 0, 16320)

end
Clone this wiki locally