.include "testing.s"

zp_res TIMER_LOW
zp_res SWEEP
zp_res DLCV
; zp_res TIMER_LOW

reset:
	sei
	cld
	ldx #$FF
	txs

	lda #$01
	sta SNDCHN
	lda #$BF ; Duty 2, LC halted, evelope enabled, volume = F
	sta PULSE_CH1_DLCV
	sta DLCV
	lda #$7F ; 
	sta PULSE_CH1_SWEEP
	sta SWEEP
	lda #$6F
	sta PULSE_CH1_TLOW
	sta TIMER_LOW
	lda #$F0
	sta PULSE_CH1_LCTH
	brk
loop:
	jmp loop

irq:
nmi:
	rti
