;04-06-09, Application Support, Reset to operating.pes
;This script resets the CMX865A and exits in powersave mode
;Change the GCR writes for 11.0592 or 12.288MHz on a CMX867A/8A.

;Reset C-Bus
	jsr GenReset
;Reset the core
;Reset=PowerUp=1
	copy $0180 *$E0
	delay 3
;Remove reset and powersave
	copy $0000 *$E0
;XTAL should be stopped
	stop

;*****General Reset*****
GenReset
	register 1 $01 0
	copy 0 *$01
	return

;*******