|
发表于 2012-5-7 16:23:16
|
显示全部楼层
汇编的:
int_ser:
bts0 ac_in
jmp @f
bset f_l
bts1 f_h
jmp int_ser20
bclr f_h
jmp int_ser10
@@:
bset f_h
bts1 f_l
jmp int_ser20
bclr f_l
int_ser10:
bclr f_open
clr time_delay
clr time_open
int_ser20:
bts0 f_open ;开可控硅标志
jmp int_ser60
incms time_delay
mov a,time_delay
sub a,delay_ref ;等多久才开
bts1 fc
jmp int_ser90
clr time_delay
int_ser70:
bclr out
bset f_open
jmp int_ser90
int_ser60:
incms time_open
mov a,time_open ;开多长时间
sub a,#10
bts1 fc
jmp int_ser90
clr time_open
int_ser80:
bset out
int_ser90:
pop
reti |
|