init_timer0:
	MOV	tmod,#02	;timer0 autoreload mode
	MOV	th0,#131	;256-131=125 ,125x0.5us=0.1ms
	MOV	tl0,#131
	SETB	et0	;timer0 interrupt enable
	SETB	ea	;global interrupt enable
	SETB	tr0	; start timer0
	ret
isr_t0_ov:
	push	psw
	push	acc
	mov	c,p1.0
	cpl	c
	mov	p1.0,c
	djnz	multiplicand,exit_st
	mov	multiplicand,#100
st1:
	mov	a,s_timer1
	jz	st2
	dec	a
	mov	s_timer1,a
st2:
	mov	a,s_timer2
	jz	exit_st
	dec	a
	mov	s_timer2,a
exit_st:
	pop	acc
	pop	psw
	reti






