title: "Fill" description: TRSE built-in method (from IDE help)
Fill
Systems: Amiga, ATARI520ST
Parameters: a, l, l
Fill( [address], [byte 1], [byte 2] );
- [address] - address to fill from
- [byte 1] - fill memory with this value
- [byte 2] - number of bytes to fill
Description
Fills an area of memory with a value for the specified number of bytes.
Example
fill( ^$D800, 0, 40 ); // Fill 40 chars of zeroes (0, black) at the start of color ram $D800 (first row)
// zp is a pointer, point to a specific character in a charset and fill 8 bytes with value 255
zp := charset + ^@myCharVal;
fill( zp, 255, 8 );