Clear_x_b ($F53F)

This routine clears to 0 the block of memory starting at the address contained in the X register, and continuing for the number of bytes specified by B+1.

 

ENTRY:

X-reg points to the start of the RAM to be cleared.

B-reg = number of bytes minus 1 to clear.

 

EXIT:

D-reg = $FFFF

Source