Clear_x_256 ($F545)
This routine clears to 0 the block of memory starting at the address contained in the X register, and continuing for 256 bytes.
ENTRY:
X-reg points to the start of the RAM to be cleared.
EXIT:
D-reg = $FFFF
Source