$include	(map.asm)
cseg
	org	startaddr
rst:
	ljmp	init
	org	rst+0bh
int_t0_ov:
	ajmp	isr_t0_ov
init:
$include	(init.asm)
	mov	s_timer1,#time_st1	;start soft timer1
	mov	s_timer2,#time_st2	;start soft timer2
mainloop:
	mov	a,s_timer1
	jnz	led2
	mov	s_timer1,#time_st1	;restart soft timer1
	mov	tmp2,port_v
	mov	a,tmp2
	cpl	a
	anl	a,#0fh
	xch	a,tmp2
	anl	a,#0f0h
	orl	a,tmp2
	mov	port_v,a
	movx	@dptr,a
led2:
	mov	a,s_timer2
	jnz	mainloop
	mov	s_timer2,#time_st2	;restart soft timer2	
	mov	tmp2,port_v
	mov	a,tmp2
	cpl	a
	anl	a,#0f0h
	xch	a,tmp2
	anl	a,#0fh
	orl	a,tmp2
	mov	port_v,a
	movx	@dptr,a
	sjmp	mainloop
$include	(timer.asm)
	end















