Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
memcpy toaddr fromaddr len
- toaddr : any address of the 64k RAM byte you want to write
- fromaddr : any address of the 64k RAM byte where you want to copy from
- len : the length of the memory block you want to copy
This function allow to copy a continuous block of the RAM memory of TIC to an another address. Address are in hexadecimal format, values are decimal.
-- demo memcpy function TIC() cls() -- draw something to the screen for y=1,16 do line(0,y,240,y,y-1) end -- copy the drawing to an another place a couple of times for i=1,4 do memcpy((i*28)*120, 0x0000, 2400) end end