Skip to content

title: "FillFast" description: TRSE built-in method (from IDE help)


FillFast

Systems: X16,C64, MEGA65, PLUS4, C128, VIC20, PET, NES, OK64, ATARI2600, APPLEII, SNES, ORIC, BBCM, ACORN, ATARI800,PX86
Parameters: a, b, b


FillFast( [address], [byte 1], [byte 2] );

  • [address] - address to fill from
  • [byte 1] - fill memory with this value
  • [byte 2] - number of bytes to fill. Must be lower than 127!

Description

Fills an area of memory with a value for the specified number of bytes. Faster than regular "fill", but can *only* fill lengths up to 127!

Example

fillfast( ^$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; fillfast( zp, 255, 8 );