Init_OS ($F18B)

This routine is responsible for setting up the initial system state, each time the system is either reset or powered up. It will initialize the OS RAM area, initialize the VIA chip, and then clear all the registers on the sound chip.

 

EXIT:

DP = $D0

D-reg, X-reg trashed

 

Source