Init_OS_RAM ($F164)
This routine first clears the block of RAM in the range $C800 to $C87A, and then it initializes the dot dwell time, the refresh time, and the joystick enable flags.
EXIT:
DP = $C8 D-reg, X-reg trashed
DP = $C8
D-reg, X-reg trashed
Source